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:

相关推荐

  1. MySQL使用问题记录

    2024-03-27 18:54:03       45 阅读
  2. MockServer简单使用记录

    2024-03-27 18:54:03       34 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-27 18:54:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-27 18:54:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-27 18:54:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-27 18:54:03       20 阅读

热门阅读

  1. 东方 - 分支(2) - 多分支

    2024-03-27 18:54:03       15 阅读
  2. python ch10 文件和异常

    2024-03-27 18:54:03       18 阅读
  3. node整理学习(三)

    2024-03-27 18:54:03       18 阅读
  4. 海思 Hi3403V100 简介

    2024-03-27 18:54:03       30 阅读
  5. Idea与DataGrip各版本通用破解码,无需脚本。

    2024-03-27 18:54:03       69 阅读
  6. 深入理解 LVS:配置与应用详解

    2024-03-27 18:54:03       21 阅读
  7. 单位里,永远要记住这些残忍的处事之道!

    2024-03-27 18:54:03       17 阅读
  8. Linux安装程序

    2024-03-27 18:54:03       19 阅读
  9. Linux UVC Gadget Driver开发

    2024-03-27 18:54:03       16 阅读
  10. c#委托案例

    2024-03-27 18:54:03       17 阅读