nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@kkkkk src]# /root/run.sh
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: still could not bind()

网上发现是80端口被占用。尝试了。

[root@kkkkk ~]# killall -9 nginx
nginx: no process killed
提示这个。

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1464/sendmail: acce
tcp 0 0 :::22 :::* LISTEN 1608/sshd
tcp 0 0 :::80 :::* LISTEN 1554/httpd
tcp 0 592 ::ffff:74.63.233.37:22 ::ffff:74.66.128.10:51839 ESTABLISHED 1425/0
tcp 0 0 ::ffff:74.63.233.37:22 ::ffff:74.66.128.10:51840 ESTABLISHED 1446/sshd: root@not
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ] DGRAM 22533905 1112/udevd @/org/kernel/udev/udevd
unix 2 [ ACC ] STREAM LISTENING 22557321 1571/saslauthd /var/run/saslauthd/mux
unix 8 [ ] DGRAM 22534306 1375/syslogd /dev/log
unix 2 [ ] DGRAM 22557320 1571/saslauthd
unix 2 [ ] DGRAM 22557299 1563/crond
unix 2 [ ] DGRAM 22549642 1544/clientmqueue
unix 2 [ ] DGRAM 22543169 1464/sendmail: acce
unix 2 [ ] STREAM CONNECTED 22537158 1448/sftp-server
unix 3 [ ] STREAM CONNECTED 22537157 1446/sshd: root@not
unix 3 [ ] STREAM CONNECTED 22537156 1448/sftp-server
unix 2 [ ] DGRAM 22535458 1425/0
unix 2 [ ] DGRAM 22534543 1410/xinetd

咋解决啊。。