selinux的狀態查看及關閉
查看SELinux狀態:
1、/usr/sbin/sestatus -v ##如果SELinux status參數為enabled即為開啟狀態 SELinux status: enabled 2、getenforce ##也可以用這個命令檢查
關閉SELinux:
1、臨時關閉(不用重啟機器):
setenforce 0 ##設置SELinux 成為permissive模式 setenforce 1 設置SELinux 成為enforcing模式
2、修改配置文件需要重啟機器:
修改/etc/selinux/config 文件 將SELINUX=enforcing改為SELINUX=disabled
重啟機器即可
本文出自 “藍葉子_架構” 博客,請務必保留此出處http://dellinger.blog.51cto.com/12445009/1965483
selinux的狀態查看及關閉
相關推薦
selinux的狀態查看及關閉
selinux查看SELinux狀態:1、/usr/sbin/sestatus -v ##如果SELinux status參數為enabled即為開啟狀態 SELinux status: enabled 2、getenforce ##也
MSSQL死鎖進程查看及關閉
tab kill sql int rom 鎖表 arc ted soc select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_
centos6.9 上docker 的安裝 及啟動 和運行狀態查看
docker安裝dockeryum install docker-io yum install device-mapper-event-libsyum upgrade device-mapper-libs 啟動docker/etc/init.d/docker restart 查看docker的運行狀態/et
Linux下查看、關閉及開啟防火墻命令
star firewall 永久 NPU accept 查看 說明 linu -s Linux下查看、關閉及開啟防火墻命令 1)永久性生效,重啟後不會復原 開啟: chkconfig iptables on 關閉: chkconfig iptables off 2)即時生效
linux文件權限查看及修改-chmod ------入門的一些常識
子目錄 以及 利用 動作 兩個 oot 屬性 詳細 chown 查看Linux文件的權限:ls -l 文件名稱查看linux文件夾的權限:ls -ld 文件夾名稱(所在目錄)修改文件及文件夾權限:sudo chmod -(代表類型)×××(所有者)×××(組用戶)×××(其
Linux命令 查看及修改文件屬性
若是 有用 -s 工作組 文件類型 大牛 tro 命令執行 建立 chmod [功能說明] 改變文件的訪問權限 #Linux中訪問權限分為:文件屬主(文件的創建者)文件組屬主(創建者所處的組)和其他(其他用戶) [語法格式] Chmod[參數]mode[文件名或目錄名]
xshell --- 查看和關閉 進程
ima 技術 grep .com 分享圖片 apn 圖片 div log netstat -apn | grep 80 kill -l PID 關閉進程xshell --- 查看和關閉 進程
Linux之常用文本查看及處理工具
wc cut sort uniq diff wc:word count wc [OPTION]... [FILE]... -l:lines -w:words -c:bytes cut: 文本截取工具
Linux菜鳥——常見命令一 查看及創建目錄文件等命令
相對路徑 時間 源文件 權限 保存 pro 目錄 ctr 文檔 命令行提示符 [root@localhost ~]# [當前用戶名@主機名 當前所在目錄]$ linux 超級用戶 root window 超級用戶 administartor # 超級用戶 $ 普
tomcat 登錄時用戶名和密碼的查看及設置
tomcat admin manager 用戶名 密碼 tomcat的登陸用戶名和密碼設置: 1、找到tomcat安裝目錄,在conf目錄下可以找到tomcat-users.xml文件,用記事本打開tomcat-users.xml文件。找到如下內容:<?xml version=&q
AIX系統中網卡的查看及配置命令
AIX系統中網卡的查看及配置命令[導讀]AIX系統中網卡的查看及配置命令 在AIX中,網卡是用ent開頭來表示的,一個網卡在系統中實際上可以看到兩個設備接口,en開頭的是Ethernet II標準的,et開頭的是IEEE 802.3標準的。以太網的幀有兩種標準:Ethernet II(或者叫Standard
查看及檢索文件
統計 DG 一行 當前目錄 win 進入 at命令 messages linux系統中 1、查看及檢索文件 1.cd命令詳解 切換 所在目錄(相對於Windows中鼠標雙擊進入某個目錄,直接查看目錄下內容) 相對路徑喝絕對路徑 ? 相對路徑:從當前路徑開始表示位置;./
21.1-21.4 memcached介紹,安裝使用,狀態查看
hash ptime 對象 images 內部 使用命令 serve 什麽是 max NoSQL21.1 什麽是NoSQL非關系型數據庫就是NoSQL,關系型數據庫代表MySQL對於關系型數據庫來說,是需要把數據存儲到庫、表、行、字段裏,查詢的時候根據條件一行一行地去匹配,
系統狀態查看工具
文件 鏡像 改變 總量 用戶 lda 歷史記錄 大小 存儲 w查看系統負載 第一列信息:啟動的時間(運行時長) ,登錄用戶數量,平均負載:1分鐘,5分鐘,15分鐘的CPU平均負載1分鐘內有多少個進程等待cpu排隊處理,小數點位之前的表示一個進程,查看/proc/cpupro
linux系統下文件夾以及文件的權限查看及修改;以及文件和文件夾刪除 rm -rf 命令的使用
系統 chang html 更改 修改文件 art 文件名 mage 管理命令 1、直接查看文件或者文件夾的權限命令: >>ll 或者 >>ls -l r代表讀取權限,w寫權限,x代表執行權限 第一個代表文件類型,-代表是普通文件,d代表是文
系統運行狀態查看和抓包工具的使用
輸出顯示 inux 系統時間 iotop request deb 指定 sock tcp 監控io性能 iostat 命令iostat 數值 #一秒輸出結果一次動態顯示 [root@localhost ~]# iostat 1 Linux 3.10.0-514.el
進程、線程運行狀態查看包括線程在cpu上運行情況
ack 信息 stack 時間 art 進程 進程id star 開始 1,查看指定進程運行開始時間 ps -eo pid,lstart | grep 進程ID號 2,查看指定進程上的線程在cpu 運行情況 ps -eLo pid,lwp,pcpu | grep 進
TCP狀態查看以及故障的排查
splay acc sta isp 跳轉 lose 能夠 程序 accept TCP三次握手過程中的服務端和客戶端的各種狀態: TCP四次握手釋放過程中的主動關閉端和被動關閉端的各種狀態: 下圖的兩端可以是服務端也可以是客戶端。 四次握手釋放過程中,主動關閉這一端會處於TI
Elasticsearch集群狀態查看命令
eal 格式化 格式 表示 verbose bsp lds index sha _cat$ curl localhost:9200/_cat=^.^=/_cat/allocation/_cat/shards/_cat/shards/{index}/_cat/master/_
nohup和&後臺運行,進程查看及終止 詳解
padding https ava logs awk nod 占用 定時 htm nohup 和重定向 功能一樣,可用於定時啟動 1.nohup 用途:不掛斷地運行命令。 語法:nohup Command [ Arg … ] [ & ] 無論是否將 noh