testing Selinux state

、/usr/sbin/sestatus -v ## If SELinux status Parameter is enabled Is the open state 
SELinux status: enabled
、getenforce ## You can also use this command to check

How to close SeLinux
1、 Fast closing SElinux, Just use the following command :

/usr/sbin/setenforce Shut down immediately SELINUX
/usr/sbin/setenforce Start now SELINUX

2、 Add it to the system default boot

echo "/usr/sbin/setenforce 0" >> /etc/rc.local

3、 You can edit the configuration file for the same purpose

vi /etc/selinux/conf
set SELINUX=disabled

SELinux Close and open more related articles

  1. SELinux The closing and opening of

    SELinux It's the implementation of mandatory access control by the national security agency , yes NSA stay Linux An access control system developed with the help of the community , therefore SELinux It can be seen as security enhanced Linux Subsystem , It's similar to a firewall , One of the functions is to ensure that ...

  2. CentOS SELinux Service shut down and on

    see SElinux Open or not   Check to see if it's on SELinux, If it is not turned on, it is diabled,enforcing(enforce Word segmentation , In the process of execution ), Indicates that it is on   #getenforce  Temporarily Closed S ...

  3. linux Optimize it SElinux close

    see selinux state : # getenforce   notes :Enforcing Open for indication ,Permissive Disable Turn off or on temporarily selinux: # setenforce  [1|0]   notes :1 yes ...

  4. close IIS Turn on self starting

    close IIS Turn on self starting win+R Input services.msc Find a service named World Wide Web Publishing Service Double click to stop , Right click to disable

  5. [Linux] The firewall is turned off and on

    The firewall is turned off and on System environment :ubuntu16.04 Tools :xshell Test whether the port of the remote host is open telnet 192.168.xx.xx 80 Firewall OFF / Turn on / restart # Firewall OFF sudo u ...

  6. Turn it off or on apache Browse the directory of

    It needs to be turned off or on for safety or convenience apache Browse the directory of   Turn off directory browsing     modify http.conf file     Options Indexes FollowSymLinks     Change it to       ...

  7. Linux System directory structure ,Shell Script ; Turn the firewall off and on

    Linux System directory structure Catalog describe remarks /bin a. Store the most frequently used commands b. Executable file , User command c. The commands needed to build the smallest system /boot a. Kernel and boot files b. System startup related files c. start-up L ...

  8. Linux Turn it off and on IPv6 Methods

    confirm IPV6 Open or not stay Linux Confirm IPv6 Whether it has been enabled , It can be determined from three aspects . 1. Use ifconfig Check out your IP Does the address contain IPv6 Address . eth0 Link encap:Ethernet ...

  9. How to view , Close and open selinux

    Here's an introduction to SELinux Related tools /usr/bin/setenforce modify SELinux Real time running mode of setenforce 1 Set up SELinux Become enforcing Pattern setenforce ...

Random recommendation

  1. Ubuntu Next SVN To configure

    I wrote a script this morning , And remember what I'm writing now R Script , It is often changed directly in the process of analysis . I still feel that there are hidden dangers , Thinking about svn Deployment should not be too difficult , So I went straight to work . I spent the whole morning , It feels like it took a little bit of time . Here's an article b ...

  2. Number plate recognition with Tensorflow

    2015 year 5 month   Here,   http://matthewearl.github.io/2016/05/06/cnn-anpr/#rd Find out Use TenserFlow License plate number recognition of technology . It feels necessary ...

  3. ORacle Elementary questions

    One . choice ( Each question 1 branch , common 15 branch ) 1. stay linux In the system , You can view the kernel version with the following command (). * A.who B.hostname C.uname -r D.release 2. Log in linux After the system , ...

  4. position:absolute and float It's going to change implicitly display type

    position:absolute and float It's going to change implicitly display type , No matter what type of element it was before (display:none With the exception of ), As long as it's set position:absolute or float, Can make ...

  5. Java Object-oriented overview

    One . What is object-oriented ? In the real world , One of the things that can be seen everywhere is the object , The object is the entity of things , Like human beings . desk . Computer . Tall buildings, etc . The way human beings solve problems is to simplify the complicated things , So I think about what parts these objects are made up of ...

  6. Mir2 Source detailed explanation of the server - choice ( role ) gateway (SelGate)

    Actually ,SelGate That is to say LoginGate, Its source code implementation is exactly the same . There's no need to doubt , That's what people do on the market ~! Here's a separate article , It's just to illustrate that !

  7. Open source CMS Fans of ——We7

    When it comes to open source CMS The word , First of all, let's talk about open source , Because many people may have a misunderstanding , Open source means free use , It's not . Open source products , Professionals in software development know that , Open source is to develop source code , It is the technical structure of a software development process , ...

  8. struts2 The framework passes jQuery Realization AJAX application

    as everyone knows , stay web2.0 Time , Which one? web If the frame doesn't follow AJAX A little bit of edge , I'm sorry to say how much my framework is NB, Of course struts No exception , from struts1 From the beginning to the present struts2 All right AJAX Have a support .A ...

  9. Excellent open source software learning series ( One )—— Learning from scratch Spring4 And sharing learning methods

    One . Purpose 1. master Spring4 How to use , In order to use this framework as a skill of your own .2. master Spring How does the official website introduce its products , In the heart of Spring There are the most official . The most intuitive understanding . stay Spring The related fields of , To know how to ...

  10. jdk Download and configure

    http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html