军哥帮看看这是什么问题呢?
Usage: /root/lnmp {start|stop|reload|restart|kill|status}=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
/root/lnmp: line 67: kill: (1723) - No such process
Nginx program is reloding!
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!
Shutting down php_fpm /usr/local/php/sbin/php-fpm: line 69: kill: (3141) - No such process
................................... failed
Starting php_fpm . done ========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
/root/lnmp: line 56: kill: (1723) - No such process
Nginx program is reloding!
SUCCESS! Reloading service MySQL
Reload service php-fpmdone
#/usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
# top
top - 09:37:59 up 22:38,1 user,load average: 0.06, 0.05, 0.01
Tasks:25 total, 2 running,23 sleeping, 0 stopped, 0 zombie
Cpu(s):0.0%us,0.0%sy,0.0%ni,100.0%id,0.0%wa,0.0%hi,0.0%si,0.0%st
Mem: 524800k total, 62260k used, 462540k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PRNIVIRTRESSHR S %CPU %MEM TIME+COMMAND
1 root 18 02156660572 S0.00.1 0:16.73 init
1124 root 15-42248552344 S0.00.1 0:00.00 udevd
1491 root 15 01812556472 S0.00.1 0:00.15 syslogd
1510 root 15 07192 1060660 S0.00.2 0:00.01 sshd
1523 root 18 02832872704 S0.00.2 0:00.00 xinetd
1658 root 18 09300 1888808 S0.00.4 0:16.47 sendmail
1666 smmsp 15 08248 1508640 S0.00.3 0:00.00 sendmail
1675 root 15 04492 1112568 S0.00.2 0:00.44 crond
1697 xfs 18 03256948732 S0.00.2 0:00.00 xfs
1705 root 18 05676708432 S0.00.1 0:00.00 saslauthd
1706 root 18 05676440164 S0.00.1 0:00.00 saslauthd
12223 root 15 0 10004 2780 2244 R0.00.5 0:00.04 sshd
12225 root 16 03712 1492 1248 S0.00.3 0:00.01 bash
13336 root 25 03660 1248 1072 S0.00.2 0:00.01 mysqld_safe
13439 mysql 18 0 36644 5816 3092 S0.01.1 0:00.00 mysqld
13579 root 18 0 22776 4164 1076 S0.00.8 0:00.05 php-cgi
# /root/lnmp reload
=========================================================================
Manager for LNMP V0.5,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org
Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
/root/lnmp: line 56: kill: (1723) - No such process
Nginx program is reloding!
SUCCESS! Reloading service MySQL
Reload service php-fpmdone
# /usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
# /usr/local/nginx/sbin/nginx
# /usr/local/nginx/sbin/nginx
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: still could not bind()
# /usr/local/php/sbin/php-fpm start
Starting php_fpmdone
#
重载几次都是这个问题啊,是不是一定要重启VPS呢?以前也经常出现过这个情况,进84的VPS后台重启才好的 nginx已经运行,你在运行 /usr/local/nginx/sbin/nginx 肯定是提示80被占用
可以先看killall nginx在 /usr/local/nginx/sbin/nginx
页:
[1]