为何下面这种方法不能启动:

[admin@knet-beta-server-20 conf]$ /sbin/service httpd start
Starting httpd: httpd: Syntax error on line 1068 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /usr/lib64/httpd/modules/mod_jk.so into server: /usr/lib64/httpd/modules/mod_jk.so: cannot open shared object file: Permission denied
                                                           [FAILED]
[admin@knet-beta-server-20 conf]$ sudo /sbin/service httpd start
[sudo] password for admin:
Starting httpd: httpd: Syntax error on line 1068 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /usr/lib64/httpd/modules/mod_jk.so into server: /usr/lib64/httpd/modules/mod_jk.so: cannot open shared object file: Permission denied
                                                           [FAILED]

为何下面这种方法可以启动?

[admin@knet-beta-server-20 conf]$
sudo /usr/sbin/httpd -k stop
sudo /usr/sbin/httpd -k start


Published

27 May 2013