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       //将某服务添加到开机自启动

 

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