Linux 常用命令

  1. 查找进程
ps -ef|grep nginx

2杀死进程

killall -9 nginx

1. centos下

如果出现: -bash: killall: command not found

yum install psmisc -y 
  • 1

2. debian、ubuntu系统下

apt-get install psmisc

压缩
tar -zcvf error.tar error.log
 
原文地址:https://www.cnblogs.com/cxd4321/p/13857818.html