简体   繁体   English

Httpd无法在Debian上重新启动

[英]Httpd cannot restart on Debian

Good morning! 早上好!

This morning i got a email from a college. 今天早上,我收到了大学的电子邮件。 He said that he can't restart httpd trough directadmin. 他说他无法通过directadmin重新启动httpd。 Directadmin only gives : "An error has occurred". Directadmin仅给出:“发生错误”。

I tried to search the logs and i found this in the errortaskq.log 我试图搜索日志,并在errortaskq.log中找到了它

2014:04:18-00:10:01: Unable to find the pid file: /var/run/httpd.pid 2014:04:18-00:10:01:找不到pid文件:/var/run/httpd.pid

2014:04:18-00:11:42: Error restarting service httpd : uid 0 gid 0 : /etc/init.d/httpd restart >>/dev/null 2>>/dev/null 2014:04:18-00:11:42:重新启动服务httpd时出错:uid 0 gid 0:/etc/init.d/httpd restart >> / dev / null 2 >> / dev / null

When i try to run 当我尝试跑步

sudo /etc/init.d/httpd restart sudo /etc/init.d/httpd重新启动

I get 我懂了

Remaining processes: 2230 19413 19584 20328 23504 23505 23553 23636 24036 24063 24064 Stopping httpd: 其余进程:2230 19413 19584 20328 23504 23505 23553 23636 24036 24063 24064正在停止httpd:

Remaining processes: 2230 19413 19584 20328 23504 23505 23553 23636 24036 24063 24064 Stopping httpd: 其余进程:2230 19413 19584 20328 23504 23505 23553 23636 24036 24063 24064正在停止httpd:

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs 开始httpd:(98)地址已在使用中:make_sock:无法绑定到地址[::]:80(98)地址已在使用中:make_sock:无法绑定到地址0.0.0.0:80没有可用的侦听套接字,正在关闭无法打开日志

What is going wrong here? 这是怎么了?

"Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use " suggest that something all ready running 80 port. “正在启动httpd:(98)地址已在使用中:make_sock:无法绑定到地址[::]:80(98)地址已在使用中”表示已准备好运行80端口。 Find out which service is running on 80 port. 找出哪个服务正在80端口上运行。

Well, a little bit radical, but you could try to kill the httpd proccesses, and then restart it. 好吧,这有点激进,但是您可以尝试杀死httpd过程,然后重新启动它。 It happens sometimes to me with php-cgi. 有时候我用php-cgi会发生这种情况。 A restart does not work, i have to kill the processes manually in order to be able to start it again. 重新启动不起作用,我必须手动终止进程才能重新启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM