linux_一些踩过的坑

1、安装rz、sz指令

  在命令行输入 yum -y install lrzsz ,等待安装完成就能使用rz,sz指令了

2、在后台执行python脚本

  nohup python test.py &

  带上nohup,脚本会带后台运行,关闭CRT也不会影响到脚本

  带上&,脚本的输出会写到当前目录下的nohup.out文件中

3、关闭正在运行的python脚本

  a.先找到python进程id:ps -aux | grep “python”

  b.杀掉进程:kill -9 进程id

  

  

  

  

  

原文地址:https://www.cnblogs.com/dabaicai0703/p/11370142.html