当我尝试启动Apache时,出现以下错误。
实际上,Apache日志中没有更多的信息。
端口80上没有任何东西,但我仍然无法重新启动。
root@server11362:~# sudo /etc/init.d/apache2 restart
Restarting web server apache2 (98)Address already in use:
make_sock: could not bind to address 111.90.150.93:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
实际上,Apache日志中没有更多的信息。
netstat -tulpn
返回以下内容。Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1098/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1414/redis-server
tcp 0 0 111.90.150.93:53 0.0.0.0:* LISTEN 1068/named
tcp 0 0 111.90.150.92:53 0.0.0.0:* LISTEN 1068/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1068/named
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1194/postgres
tcp 0 0 0.0.0.0:44888 0.0.0.0:* LISTEN 845/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1395/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 1068/named
tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 1435/varnishd
tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 1434/varnishd
tcp6 0 0 :::53 :::* LISTEN 1068/named
tcp6 0 0 :::44888 :::* LISTEN 845/sshd
tcp6 0 0 :::25 :::* LISTEN 1395/master
tcp6 0 0 ::1:953 :::* LISTEN 1068/named
tcp6 0 0 :::6081 :::* LISTEN 1435/varnishd
udp 0 0 111.90.150.93:53 0.0.0.0:* 1068/named
udp 0 0 111.90.150.92:53 0.0.0.0:* 1068/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 1068/named
udp6 0 0 :::53
端口80上没有任何东西,但我仍然无法重新启动。
/var/log/apache2/error.log
这个文件? - user224465Listen
值。它们可能会重叠,但最好创建单独的虚拟主机文件以避免这种情况。在查找了这个问题之后,我的Apache又重新运行起来了。谢谢。 - m3nda