Linux常用命令

查看端口占用

1
2
lsof -i:[端口号]
# lsof -i:8000

查看进程

1
ps aux|grep uwsgi

杀掉端口进程:kill [PID]

搜索文本||查看日志

1
cat [文件名] | grep '[文本]'