1 回答
- 最新
- 投票最多
- 评论最多
1
Hostname can be made permanent with below steps:
- Set hostname $ sudo hostnamectl set-hostname new-hostname
$ sudo vi /etc/hosts
Find the localhost string and append the new hostname.
127.0.0.1 localhost webserver.mydomain.com
Save and exit
- Confirm the change in hostname:
$ hostnamectl
Please refer: https://repost.aws/knowledge-center/linux-static-hostname-suse
已回答 4 个月前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 4 年前
- AWS 官方已更新 9 个月前