2020-04-23发表2022-04-28更新操作系统几秒读完 (大约102个字)centos7防火墙设置firewalld-cmd常用命令 1234567systemctl start firewalld # 启动systemctl stop firewalld # 停止systemctl enable firewalld # 启用自动启动systemctl disable firewalld # 禁用自动启动systemctl status firewalld # 查看状态 或者firewall-cmd --state #查看状态firewall-cmd --list-ports #查看端口开放列表阅读更多
2020-04-23发表2022-04-28更新操作系统几秒读完 (大约15个字)centos7设置hostname查看原名称1hostnamectl status 修改1hostnamectl set-hostname centos