zoukankan      html  css  js  c++  java
  • nginx 部署前期一定要关闭selinux

    nginx 报错: 1389#1389: *40 "/home/data1/index.html" is forbidden (13: Permission denied), client: 192.168.10.145, server: localo, request: "GET / HTTP/1.1", host: "192.168.10.145"

    1.nginx 部署前期一定要关闭selinux 

    临时关闭

    setenforce 0

    查看selinux状态

    getenforce

    永久关闭

    sed -i "sSELINUX=enforcingSELINUX=disabledg"  /etc/selinux/config

    2.权限问题,如果nginx没有web目录的操作权限,也会出现403错误

    3.缺少index.html或者index.php文件,就是配置文件中index index.html index.htm这行中的指定的文件。

  • 相关阅读:
    练习题
    作业2.6-2.15 两次作业
    11.13(2)
    11.13
    11.6
    10.30
    10.15
    10.9
    9.25号作业
    9.18号
  • 原文地址:https://www.cnblogs.com/zoulixiang/p/9208265.html
Copyright © 2011-2022 走看看