尝试使用以下命令从终端重新启动apache:
sudo service apache2 restart
执行该命令时出现以下错误:
Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xe" for details.
在执行“ systemctl status apache2.service”时得到以下输出
apache2.service - (null)
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Sat 2015-05-30 02:22:41 IST; 12s ago
Docs: man:systemd-sysv-generator(8)
Process: 4866 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
apache error.log
AH00489: Apache/2.4.12 (Unix) configured -- resuming normal operations
AH00094: Command line: '/usr/local/apache2/bin/httpd'
/var/log/apache2/error.log
sudo journalctl -xe
该代码可以使您对发生的事情有更好的了解。如果您仍有理解的问题。将结果发布在这里。