aws使用记录

数据传输(S3)

安装命令行

安装awscli:

https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions

直到 aws configure list 可以运行

身份验证:

运行:

aws configure

输入access_key 和 secrete

这里告诉你这俩东西怎么找到:

https://docs.aws.amazon.com/zh_tw/IAM/latest/UserGuide/id_credentials_access-keys.html

Region 输入的是s3 桶的 region比如 us-east-1

(我们的key发在视觉算法群里, 搜索 access_key )

access_key(accesskey): AKIAQ****

secrete: RvCey****

region: us-east-1

命令行使用

本地服务器复制到AWS

常用的两个:

罗列s3里文件夹内容:

aws s3 ls s3://test-guo/

同步文件夹 (可以加 --delete 参数):

aws s3 sync /path/to/dir/ s3://test-guo/path/to/dir/

复制文件:

aws s3 cp /path/to/file.tar s3://test-guo/path/to/dir/

aws s3 cp /path/to/file.tar s3://test-guo/path/to/dir/new_name.tar

更多详见文档:

https://docs.aws.amazon.com/zh_cn/cli/latest/userguide/cli-services-s3-commands.html#using-s3-commands-listing-buckets

从S3 复制到EC2

Aws confugure

然后输入4个key:access_key,secrete,region

然后成功显示

现在可以复制了

Aws s3 cp s3://.................. ./current_folder

EC2解压数据Nohup :

Nohup unzip ***.zip &

挂在后台解压很快,不如print很多数据,从美国传输到中国,需要时间,会耗费大量时间在print

EC2 多GPU后台挂载训练 tmux:

nohup只适合单GPU训练,多GPU会报错,所以使用tmux这个工具

https://zhuanlan.zhihu.com/p/98384704 教程百度即可

常用命令:

Tmux ls

Tmux new -s name

Tmux detach

Tmux attach -t name

Tmux kil-sesseion -t name

Tmux switch -t session-name

Lauch 一个实例

https://us-east-1.console.aws.amazon.com/ec2/home?region=us-east-1#Instances:![](https://file.jishuzhan.net/article/1774331452813479938/2b4ffc8c13f3458ebefc0d0099334d84.webp)

相关推荐
是乐谷1 天前
阿里云杭州 AI 产品法务岗位信息分享(2025 年 8 月)
java·人工智能·阿里云·面试·职场和发展·机器人·云计算
青岛佰优联创新科技有限公司1 天前
移动板房的网络化建设
服务器·人工智能·云计算·智慧城市
夕阳与风馨1 天前
三分钟搞懂云计算三大模型:SaaS、PaaS、IaaS 是怎么在业务中“各司其职”的?
后端·云计算
weixin_307779131 天前
AWS Lambda解压缩S3 ZIP文件流程
python·算法·云计算·aws
运维行者_2 天前
使用Applications Manager进行 Apache Solr 监控
运维·网络·数据库·网络安全·云计算·apache·solr
Britz_Kevin3 天前
从零开始的云计算生活——激流勇进,kubernetes模块之Pod资源对象
kubernetes·云计算·生活·#pod
阿湯哥4 天前
Cloud Computing(云计算)和Sky Computing(天空计算)
云计算
数据智能老司机4 天前
基于 Kubernetes 的平台工程——Kubernetes 上的平台化浪潮
kubernetes·云计算·devops
数据智能老司机4 天前
图算法趣味学——桥和割点
数据结构·算法·云计算
数据智能老司机4 天前
图算法趣味学——图遍历
数据结构·算法·云计算