2017-08-08 72 views
1

的服務這些都是後續的輸出流的時候,我給命令重新啓動Apache無法啓動Apache2

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 Tue 2017-08-08 11:14:56 IST; 42s ago 
Docs: man:systemd-sysv-generator(8) 
Process: 3568 ExecStart=/etc/init.d/apache2 start (code=exited, status=2) 

Aug 08 11:14:56 Lab2-73 systemd[1]: Starting LSB: Apache2 web server... 
Aug 08 11:14:56 Lab2-73 apache2[3568]: /etc/init.d/apache2: 46: .: Can't open /e 
Aug 08 11:14:56 Lab2-73 apache2[3568]: /etc/init.d/apache2: 57: .: Can't open /e 
Aug 08 11:14:56 Lab2-73 apache2[3568]: ERROR: APACHE_PID_FILE needs to be define 
Aug 08 11:14:56 Lab2-73 systemd[1]: apache2.service: Control process exited, cod 
Aug 08 11:14:56 Lab2-73 systemd[1]: Failed to start LSB: Apache2 web server. 
Aug 08 11:14:56 Lab2-73 systemd[1]: apache2.service: Unit entered failed state. 
Aug 08 11:14:56 Lab2-73 systemd[1]: apache2.service: Failed with result 'exit-co 
+0

這可能是你的配置。編輯/ etc/apache2/bin/envvars並設置所需的變量 –

+0

可能會感興趣https://askubuntu.com/questions/629995/apache-not-able-to-restart – RamRaider

回答