问题
When i logged into my remote system (Amazon Linux) after executing apache2 recipe, the httpd service was running, i checked it by using service httpd status
, then i wrote service httpd restart
after that service stopped but didnt restart. It gives me following error.
[root@java-app1 webapps]# sudo service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Syntax error on line 106 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/mods-enabled/systemd.load: Cannot load /usr/lib64/httpd/modules/mod_systemd.so into server: /usr/lib64/httpd/modules/mod_systemd.so: cannot open shared object file: No such file or directory
[FAILED]
来源:https://stackoverflow.com/questions/27222925/tomcat-not-restarting-syntax-error-on-line-106-of-etc-httpd-conf-httpd-conf