对象存储(OSS/S3)
# AWS S3上传文件
import boto3
s3 = boto3.client('s3')
s3.upload_file('local.txt', 'mybucket', 'remote.txt')块存储与文件存储
- • 块存储:适合数据库、虚拟机磁盘
- • 文件存储:适合共享文件、NFS
云数据库(RDS/NoSQL)
# 连接云数据库
import pymysql
conn = pymysql.connect(host='rds.aliyuncs.com', user='root', password='***')