變更hostname(不用reboot可生效)

RHEL
回覆文章
schumi
Site Admin
文章: 696
註冊時間: 2004-04-15 14:30:34

變更hostname(不用reboot可生效)

文章 schumi »

http://www.brandonhutchinson.com/Changi ... _RHEL.html

1. Change the ^HOSTNAME line in /etc/sysconfig/network
2. Change the hostname (FQDN and alias) in /etc/hosts
3. Run /bin/hostname new_hostname for the hostname change to take effect immediately.
4. Run /sbin/service syslog restart for syslog to log using the new hostname.

A reboot is not required to change the system hostname.
回覆文章

回到「Red Hat Enterprise Linux」