why nginx worker process listen in port 80, not master process?
Zhengyu Pan
zhengyupann at 163.com
Fri Jul 24 13:27:01 UTC 2020
In my node, Every network namespace has own nginx process.
when i use netstat command to get which nginx process are listening in port 80? I found that some nginx worker process are listening 80 port. Some nginx master process are listening port 80. In my understanding ,it should be that nginx master process will listen port 80? Why happens that worker process listen port 80? Is it about reload?
[root at node2 ~]# for i in `ip netns |grep lbaas| awk '{print $1}'`; do ip netns exec $i netstat -atnp |grep nginx;done
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22253/nginx: worker
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 21968/nginx: worker
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22622/nginx: worker
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17499/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 15567/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17568/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 18643/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 18736/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17328/nginx: master
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17766/nginx: master
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200724/90904622/attachment.htm>
More information about the nginx
mailing list