nginx重启 failed (33889: Address already in use)

一,查看端口

netstat -ntpl

[root@p_d_ope_001 vhost]# netstat -ntpl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                e       PID/Program name
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LIST                                                EN      2622/rpcbind
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LIST                                                EN      2781/cupsd
tcp        0      0 0.0.0.0:33889               0.0.0.0:*                   LIST                                                EN      3114/sshd
tcp        0      0 0.0.0.0:41123               0.0.0.0:*                   LIST                                                EN      2640/rpc.statd
tcp        0      0 :::111                      :::*                        LIST                                                EN      2622/rpcbind
tcp        0      0 :::54483                    :::*                        LIST                                                EN      2640/rpc.statd
tcp        0      0 ::1:631                     :::*                        LIST                                                EN      2781/cupsd
tcp        0      0 :::33889                    :::*                        LIST                                                EN      3114/sshd
tcp        0      0 :::7780                     :::*                        LIST                                                EN      26557/java
tcp        0      0 :::7781                     :::*                        LIST                                                EN      26722/java
tcp        0      0 ::ffff:127.0.0.1:8005       :::*                        LIST                                                EN      26557/java
tcp        0      0 ::ffff:127.0.0.1:8006       :::*                        LIST                                                EN      26722/java
tcp        0      0 :::8009                     :::*                        LIST                                                EN      26557/java
tcp        0      0 :::8010                     :::*                        LIST


二,干掉占用程序

1,kill 3114

2,再检查下 端口使用情况


三,重启nginx

service nginx restart


评论0条