Linux网络配置与防火墙指南
1. 网络配置
在基于systemd运行的Red Hat类系统(如Fedora)中,可使用 hostnamectl 命令来管理主机名。以下是具体操作:
- 查看临时主机名 :
[root@fedora-server ~]# hostnamectl status --transient
- 查看美化主机名 :
[root@fedora-server ~]# hostnamectl status --pretty
- 设置静态主机名 :
[root@fedora-server ~]# hostnamectl set-hostname "fedora-server-01" --static
- 设置临时主机名 :
[root@fedora-server ~]# hostnamectl set-hostname "fedora-server-01- temporary" --transient
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



