美文网首页我爱编程
AWS Tensorflow 常用指令

AWS Tensorflow 常用指令

作者: SilentSummer | 来源:发表于2018-03-12 23:47 被阅读19次
  • Login:
ssh -i ~/Downloads/key.pem ec2-user@public_ip_address
  • Jupyter Notebook:
ssh -i ~/Downloads/key.pem -L 8157:127.0.0.1:8888 ec2-user@public_ip_address
  • Tensorboard:
ssh -i ~/Downloads/key.pem -L 16006:127.0.0.1:6006 ec2-user@public_ip_address
tensorboard --logdir=dir_to_logfile --port=6006
# login localhost:16006
127.0.0.1:16006
  • Upload:
scp -i ~/Downloads/key.pem -r ~/source ec2-user@public_ip_address:~/destination  
  • Download:
scp -i ~/Downloads/key.pem -r ec2-user@public_ip_address:/source/filename  ~/destination
  • Tar:
tar -zcvf name_of_archive_file.tar.gz name_of_directory_to_tar
  • Untar:
tar xvzf file.tar.gz
  • Disk Space
    • check disk usage with: df -lh
    • check folder usage: du -sh file_path

相关文章

网友评论

    本文标题:AWS Tensorflow 常用指令

    本文链接:https://www.haomeiwen.com/subject/gqkafftx.html