Usually encountered linux command

1, View fpm process
ps -auc|grep fpm

2, empty the contents of the file
echo "" < errorLog.txt

3, see the port number
netstat -anp | grep 端口号

4, view the process
ps aft | grep tcp.php

5, view the process dependencies
ps aft | grep http_server

6, view the process tree
pstree -p 进程号

Reproduced in: https: //www.jianshu.com/p/733380145bc2

Guess you like

Origin blog.csdn.net/weixin_34088583/article/details/91068354