简体   繁体   English

Apache 服务器不工作(ubuntu 16.04,灯服务器)

[英]Apache server no working (ubuntu 16.04, lamp server)

sudo /etc/init.d/apache2 restart
     [....] Restarting 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!
     techadon@techadon-M68MT-D3:~$ sudo systemctl status apache2.service

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: failed (Result: exit-code) since Sat 2016-10-01 11:48:31 SAST;  
     1min 3
     Docs: man:systemd-sysv-generator(8)
     Process: 4128 ExecStop=/etc/init.d/apache2 stop (code=exited, 
     status=0/SUCCESS
     Process: 636 ExecReload=/etc/init.d/apache2 reload (code=exited, 
     status=0/SUCC
     Process: 4154 ExecStart=/etc/init.d/apache2 start (code=exited,   
     status=1/FAILU

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]:  *
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]:  * The apache2 configtest faile

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: Output of config test was:
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: apache2: Syntax error on line 2

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: Action 'configtest' failed.
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: The Apache error log may have m

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Control process e

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: Failed to start LSB: Apache2 web s

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Unit entered fail

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Failed with resul
lines 1-20/20 (END)

Your apache configuration is wrong.您的 apache 配置错误。 Check it and restart apache.检查它并重新启动apache。

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

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