网络配置与Linux防火墙指南
1. 网络配置基础
在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
超级会员免费看
订阅专栏 解锁全文
1711

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



