linux升级python3.6相关命令

sudo apt-get install python3.6

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 150


nohup your_command & #(符号&使程序在后台运行)
exit #(退出nohup模式)

启动后,会将程序运行输出记录在当前目录下的nohup.out文件下,如果当前目录不可写,则会被记录在Home目录下的nohup.out文件中

nohup your_command > my_nohup.log 2>&1 &

ps -ef|grep "your_command" #(查找运行该命令的进程)
kill -9 your_command_pid #(根据进程号关闭程

posted on 2018-03-07 21:13  跑跑兔  阅读(271)  评论(0编辑  收藏  举报

导航