In Linux, how does one modify the host name? in Linux, how does one modify the host name?
Step 1:
Host name after modification
Step 2:
Modify the hostname in/etc/sysconfig/network
Step 3:
Modify the/etc/hosts file
Example:
The current host name of my machine is pc. to change it to target_pc:
1: Use the hostname command
2: Modify the/etc/sysconfig/network File
3: Modify the hostname in the/etc/hosts file
4: reboot
-- This article reference from the computer boutique tutorial Network: http://www.ititgo.cn
How can I change the linux host name?
Many people use the hostname to modify the host name. In fact, this is only for the moment. After restarting, it will be restored to the original name.
Many people say that the host name in the/etc/hosts file is only provided for dns resolution. if you cannot use dns, you only need to modify the host name.
In fact, it is to modify the host name in the file etc/sysconfig/network.
NETWORKING = yes
HOSTNAME = Host Name
------------------------------------------------------------------------
Remember to restart !!!
------------------------------------------------------------------------
Complete:
Step 1:
# Hostname oratest
Step 2:
Modify the hostname in/etc/sysconfig/network
Step 3:
Modify the/etc/hosts file
Www.ititgo.com
Reference: www.ititgo.cn/news_view.asp? Newsid= 562
How can I change the linux host name?
Many people use the hostname to modify the host name. In fact, this is only for the moment. After restarting, it will be restored to the original name.
Many people say that the host name in the/etc/hosts file is only provided for dns resolution. if you cannot use dns, you only need to modify the host name.
In fact, it is to modify the host name in the file etc/sysconfig/network.
NETWORKING = yes
HOSTNAME = Host Name
------------------------------------------------------------------------
Remember to restart !!!
------------------------------------------------------------------------
Complete:
Step 1:
# Hostname oratest
Step 2:
Modify the hostname in/etc/sysconfig/network
Step 3:
Modify the/etc/hosts file
Www.ititgo.com
Reference: www.ititgo.cn/news_view.asp? Newsid= 562