After the chmod command is installed, the php application prompt file is still not writable

Rpm system must remember setenforce 0, temporarily close selinux and then test

 

  1. First we can use the command to view the status of selinux

    The getenforce    command can view the status of selinux, which is currently closed.

    How to turn off selinux in Linux?
  2. 2

    There is also a command to view the status of selinux.

    sestatus -v

    How to turn off selinux in Linux?
  3. 3

    There is also a setenforce command to set the state of selinux,

    For details, see  man 8 setenforce

    How to turn off selinux in Linux?
  4. 4

    Assuming selinux is running, we can use the setenforce command to set a temporary shutdown without rebooting.

    setenforce 0

    How to turn off selinux in Linux?
  5. 5

    We can also make the shutdown take effect by editing the file and then restarting.

    vi /etc/sysconfig/selinux

    Change the line inside to

    SELINUX=disabled

     

    Save the changes and then restart.

    How to turn off selinux in Linux?
  6. 6

    After the modification, the content of the file is as follows

     

    setenforce 0  can be temporarily closed, but it will still be in the original state after restarting.

    It can be permanently disabled by modifying the /etc/sysconfig/selinux file.

    How to turn off selinux in Linux?
  7.  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326790878&siteId=291194637