1 2 3 4 | [root@localhost apache 2 ]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/ruby.conf: Cannot load /usr/ local /ruby/lib/ruby/gems/ 1.8 /gems/passenger -3.0 . 0 .pre 2 /ext/apache 2 /mod_passenger.so into server: /usr/ local /ruby/lib/ruby/gems/ 1.8 /gems /passenger -3.0 . 0 .pre 2 /ext/apache 2 /mod_passenger.so: failed to map segment from shared object: Permission denied
[FAILED]
|
执行:
?
1 | [root@localhost apache 2 ]# chcon -R -h -t httpd_sys_script_exec_t /usr/ local /ruby/lib/ruby/gems/ 1.8 /gems/passenger -3.0 . 0 .pre 2 /ext/apache 2 /mod_passenger.so
|
转载于:https://my.oschina.net/farces/blog/306461