465   Linux RedHat

1, vim /etc/hosts

2, insert

10.123.100.230 v0A-123-100-230
10.123.179.247 db1-vip
10.123.179.248 db2-vip
10.123.179.245 db1
10.123.179.246 db2

3, vim /etc/sysconfig/network

HOSTNAME=v0A-123-100-230

4, save //一般会立即生效,如果没有进入下一步

5, hostname  v0A-123-100-230 // 使其生效

6, uname -a // 检查

Linux v0A-123-100-230 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

 




Leave a Reply

Your email address will not be published. Required fields are marked *