dochost ADMIN


เข้าร่วมเมื่อ: 22/10/2009 ตอบ: 23
|
ตอบ: 22/10/2009 12:56 pm ชื่อกระทู้: Check and change hostname in RHEL and Centos |
|
|
1. check your host name
#hostname -l
2. If it's not in FQDN format (name.domain.com ) you will have trouble with some mail system , change it
3. Change the ^HOSTNAME line in /etc/sysconfig/network
4. Change the hostname (FQDN and alias) in /etc/hosts
5. Run /bin/hostname new_hostname for the hostname change to take effect immediately.
6. Run /sbin/service syslog restart for syslog to log using the new hostname.
A reboot is not required to change the system hostname. |
|