错误是什么?请给我完整的解决方案!谢谢)
sudo service apache2 status
apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead) since Бс 2018-04-05 16:53:39 +06; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 5334 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 5317 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Сәу 05 16:53:39 moldir systemd[1]: Starting LSB: Apache2 web server...
Сәу 05 16:53:39 moldir apache2[5317]: * Starting Apache httpd web server apache2
Сәу 05 16:53:39 moldir apache2[5317]: Segmentation fault (core dumped)
Сәу 05 16:53:39 moldir apache2[5317]: Action 'start' failed.
Сәу 05 16:53:39 moldir apache2[5317]: The Apache error log may have more information.
Сәу 05 16:53:39 moldir apache2[5334]: * Stopping Apache httpd web server apache2
Сәу 05 16:53:39 moldir apache2[5334]: *
Сәу 05 16:53:39 moldir systemd[1]: Started LSB: Apache2 web server.发布于 2018-04-05 11:45:06
这可能不是一个完整的答案(虽然作为评论发布太长),因为您所得到的错误是分段错误,如果没有更多的信息,很难找出问题。
但是,我过去遇到这个问题的所有时候都是由于一些模块之间的冲突而导致的。
通过运行以下命令,可以检查在Apache上启用了哪些模块:
apache2ctl -M但是,这个命令很可能会中断,并给出以下输出:
Segmentation fault (core dumped)
Action '-M' failed.
The Apache error log may have more information.如果是这样,则需要使用以下命令:
ls /etc/apache2/mods-enabled/确保没有会相互冲突的mods,例如php5.6和php7.0,或者mpm_event和mpm_prefork。
若要禁用它们,请使用a2dismod <module_name>命令。例如:
sudo a2dismod php5.6https://askubuntu.com/questions/1022229
复制相似问题