apache2不能重启

出现问题

1
2
3
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!

解决方案

经过测试卸载并清除软件包的配置即可解决

1
sudo apt-get purge apache2 
1
sudo apt-get install apache2