Modify the Linux host name to make it permanent

888u

Last update at :2024-04-26,Edit by888u

The Linux host name needs to be changed when installing virtual machines such as KVM. The following is to modify the default host name.

1. Modify the /etc/sysconfig/network configuration file.

vi /etc/sysconfig/network

Change localhost.localdomain to your domain name, such as us.com

2. Modify /etc/hosts

vi /etc/hosts

Change the localhost in the yellow part to your host name, like ours

3. Restart

reboot

Recommended site searches: icp registration query system, domain name registration query, Hong Kong server purchase Ministry of Industry and Information Technology website registration system, legendary server rental, website registration and cancellation, domain name space registration, cm domain name, registration-free cdn, asp host space,

Modify the Linux host name to make it permanent

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码