centos7常用命令筆記

cat /etc/redhat-release    //查看linux版本

systemctl stop firewalld    //關閉防火牆

systemctl disable firewalld  //禁止開機啓動

getenforce      //查看selinux狀態,如果是開啓的可以用下面命令關閉

vim /etc/selinux/config    //將SELINUX設置爲disabled

 

systemctl start  xxx      //啓動某服務

systemctl enable  xxx       //將某服務添加到開機自啓動

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章