安装screen
screen
用于后台运行程序
先升级包管理工具
sudo apt-get update
安装screen
sudo apt-get install screen
创建screen
screen -U -S erl
安装解压工具
对上传到服务器的文件进行解压
安装
sudo apt-get update
sudo apt-get install unzip
解压
unzip xxx.zip
安装python环境
安装python3.7
conda create -n my_env python=3.7 -y
切换至所安装的环境
conda activate my_env
安装程序所需要的依赖包
生成requirements.txt
文件
pip freeze > requirements.txt
或者
pip install pipreqs
pipreqs . --encoding=utf-8 --force
安装依赖包
注意这里加了阿里云镜像加速
pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
镜像附录
清华大学镜像
https://pypi.tuna.tsinghua.edu.cn/simple
阿里云镜像
https://mirrors.aliyun.com/pypi/simple/
网易镜像
https://mirrors.163.com/pypi/simple/
豆瓣镜像
https://pypi.douban.com/simple/
百度云镜像
https://mirror.baidu.com/pypi/simple/
中科大镜像
https://pypi.mirrors.ustc.edu.cn/simple/
华为云镜像
https://mirrors.huaweicloud.com/repository/pypi/simple/
腾讯云镜像
https://mirrors.cloud.tencent.com/pypi/simple/
拉取项目
安装git
sudo apt install -y git #ubantu
sudo yum install -y git #centos
查看git
版本
git --version
初始化仓库
git init
添加仓库地址
git remote add origin "你的码云或coding项目地址(ssh或https)"
例如:git remote add origin https://gitee.com/niusongcun/convlab2-erl.git
拉取代码
git pull origin master
解决screen中文乱码问题
创建utf8编码模式的新会话
screen -U -S new_screen_test
查看当前会话
screen -ls
切换会话(utf8编码查看)
screen -U -r new_screen_test