Created
October 30, 2014 06:01
-
-
Save laozhu/db8c802f95d0beb8ab1d to your computer and use it in GitHub Desktop.
列出nginx进程,包括主(master)进程和工作(worker)进程。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo lsof -nP -i | grep LISTEN | |
... | |
nginx 1330 root 6u IPv4 11055 0t0 TCP *:80 (LISTEN) | |
nginx 1331 www-data 6u IPv4 11055 0t0 TCP *:80 (LISTEN) | |
nginx 1332 www-data 6u IPv4 11055 0t0 TCP *:80 (LISTEN) | |
nginx 1333 www-data 6u IPv4 11055 0t0 TCP *:80 (LISTEN) | |
nginx 1334 www-data 6u IPv4 11055 0t0 TCP *:80 (LISTEN) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment