- 查询进程id
ps -ef | grep python
- 杀死进程
kill -9 进程id
- 添加权限
chmod 777 file
- 查看端口是否占用
netstat -tunlp | grep 8001
- 启动服务
nohup python manage.py runserver 192.168.8.75:8001 >> /home/project/nohup.out 2>&1 &
- 查看服务输出
tail -f nohup.out
ps -ef | grep python
kill -9 进程id
chmod 777 file
netstat -tunlp | grep 8001
nohup python manage.py runserver 192.168.8.75:8001 >> /home/project/nohup.out 2>&1 &
tail -f nohup.out
本文标题:记录Linux系统的一些常用命令
本文链接:https://www.haomeiwen.com/subject/cgkgihtx.html
网友评论