【linux命令】设置hostname
更改hostname
命令
hostnamectl set-hostname your-new-hostname
参考资料
1. How to Set or Change Hostname in CentOS/RHEL 7/8
命令
hostnamectl set-hostname your-new-hostname
1. How to Set or Change Hostname in CentOS/RHEL 7/8