简体   繁体   English

apache2无法重新启动:操作“启动”失败

[英]apache2 cannot be restarted :Action 'start' failed

I have a linux server that contains many websites under vhosts, once I deleted an alt site the apache2 coud not be restarted indecating this message in the error log: 我有一个Linux服务器,其中包含许多位于vhosts下的网站,一旦删除了alt站点,apache2不会重启,并在错误日志中显示此消息:

  #eror log
(2)No such file or directory: apache2: could not open error log file /var/www/vhosts/deleted_Site/logs/error.log.
Unable to open logs

How can I stop that so I can start my apache2 如何停止该操作,以便启动我的apache2

您应该修改apache配置,例如在conf.d /中,所有与您的旧网站相关的配置,尤其是对于错误日志(请在conf文件apache2.conf,httpd中的某个位置查找访问日志和错误日志指令规范)。 conf,启用站点的功能,mods或它的位置/位置)。

To resolve this error, you need to stop other process using same port. 要解决此错误,您需要使用同一端口停止其他进程。 In some of cases it is nginx. 在某些情况下是nginx。 you can stop it 你可以阻止它

sudo /etc/init.d/nginx stop sudo /etc/init.d/nginx停止

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

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