常用命令
开机自启命令
systemctl enable docker服务名
防火墙开启不启动
关闭防火墙并开机不启动
sudo setenforce 0
sudo sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
systemctl enable docker服务名
关闭防火墙并开机不启动
sudo setenforce 0
sudo sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service