访问Nginx出现异常
界面报403 Forbidden
日志文件为
[error] 33014#33014: *4 open() "/opt/deploy/web/web-manage" failed (13: Permission denied), client: 10.115.133.13, server: localhost, request: "GET /web-manage HTTP/1.1", host: "192.168.26.8"
解决方案:
修改配置文件selinux
vi /etc/sysconfig/selinux
修改为:
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted