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 //將某服務添加到開機自啓動