守护进程

最后更新于:2022-04-02 03:48:39

[TOC] ## 查找进程 `ps -ef | grep colin115` ## 查询进程ID ``` pgrep 查找进程 ``` 实例 ``` > ps -ef | grep Up im_user 11112 1 0 09:26 pts/0 00:00:00 ./UpRelayServer >pgrep ./UpRelayServer //无输出 > pgrep UpRelayServer 11112 ``` 实例2 ``` > ps -ef | grep demo.php im_user 4198 4086 0 15:11 pts/0 00:00:00 php demo.php 123 231 > pgrep php demo.php //无输出 > pgrep php 4198 ``` ### -l 模糊查询 ``` > pgrep -l re 2 kthreadd 28 ecryptfs-kthrea 29515 redis-server ``` ## lsof
';