hostnamectl set-hostname service001 # 使用这个命令会立即生效且重启也生效
hostname # 查看hostname
yum install lrzsz # 安装rzsz
service network restart # 重启网络服务
systemctl start/status/disable/stop firewalld #启动/查看状态/禁用/停止防火墙
原文:https://www.cnblogs.com/jayhou/p/12262312.html