- Community Home
- >
- HPE Community, China
- >
- 服务器
- >
- Alpha 服务器
- >
- Tru64 UNIX5.1B Changing the Host Name Permanently
类别
Company
Local Language
论坛
讨论平台
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
论坛
博客
- 将帖子标记为未读
- 加注书签
- 订阅
- 禁止
- 订阅此主题的 RSS 提要
- 高亮显示此帖
- 打印此帖
- 报告不当内容
修改时间 09-25-2013 08:53 PM
修改时间 09-25-2013 08:53 PM
Tru64 UNIX5.1B Changing the Host Name Permanently
1. Be sure that you have answered all the questions in
Be Prepared to
Answer These Questions
.
2. Log in as root.
3. Make a backup copy of the
/etc/rc.config file.
cp /etc/rc.config /etc/rc.config.BACKUP
4. Edit the
HOSTNAME entry in the /etc/rc.config file, changing the
entry for
oldname to newname.
Before:
HOSTNAME="
oldname.aaa.bbb.ccc"
After:
HOSTNAME="
newname.aaa.bbb.ccc"
5. Make a backup copy of the
/etc/hosts file.
cp /etc/hosts /etc/hosts.BACKUP
6. Edit the
/etc/hosts file , changing the entry for oldname to
newname
.
Before:
IPaddress oldname.aaa.bbb.ccc oldname
After:
IPaddress newname.aaa.bbb.ccc newname
7. Optionally edit and change the file name of the file corresponding to
oldname
(it may be in uppercase characters) in the /usr/sys/conf
directory; this example shows one method for doing this.
#
cd /usr/sys/conf
#
ls
GENERIC
...
OLDNAME
#
sed -e "s/OLDNAME/NEWNAME/" OLDNAME > NEWNAME
#
rm OLDNAME
8. Reboot the system with the
shutdown -r command.
Be sure to warn users and give them adequate time to save their files,
exit their applications, and log off.
The following is an example that reboots the system in one hour and
displays a message.
#
/usr/sbin/shutdown -r +60 \
System going down in 1 hour! Save your files and log out!
9. Edit the root
.profile, .kshrc, .login, .cshrc, and .rhosts files
as needed to reference the new system name; pay particular attention
to the setting of the
DISPLAY and PS environment variables.
10. Inform other users of the system name change; they may need to
edit their
.profile, .kshrc, .login, .cshrc, and .rhosts files
accordingly.