1 查找并杀死进程
pkill
-9 nginx
2 查看端口TCP连接
netstat
-an
|grep
'ESTABLISHED' |grep
-i
'27750' |wc
-l
3 查找日志 【关键字 Excep 与 ms 】
tail
-f
|egrep
-C
5 'Excep|ms' ./log
/nohup
.out
4 查看进程的当前线程数量
ps hH p
3805|wc
-l
5 常用工具安装
yum
-y install vim
&& yum
-y install lrzsz
&& yum
-y install gcc automake autoconf libtool make
&& yum install gcc gcc
-c
++
6 开机启动某个服务
systemctl enable nginx
转载请注明原文地址:https://ipadbbs.8miu.com/read-50835.html