🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[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