- 论坛徽章:
- 0
|
俺做的是Solaris9的系统,改变主机名涉及的文件有:
(1) /etc/hosts (change to the new hostname)
(2) /etc/nodename (change to the new hostname)
(3) /etc/hostname. (where is the name of the primary
interface for this system, i.e hostname.hme0 or hostname.le0.
Change to the new hostname.)
(4) /etc/net/ticlts/hosts (change both columns to the new hostname)
(5) /etc/net/ticots/hosts (change both coluums to the new hostname)
(6) /etc/net/ticotsord/hosts (change both columns to the new hostname)
改完上述文件之后推荐重起一下机器。——俺实际操作过的!
系统部署情况不一样,所以有的修改了第(2)项就好了,但是我试过只修改第(2)项出现重启起不来的情况,据说好像是因为机器是多网卡配置,只修改了第(2)项是不行的,机器不能正常识别。第(1)(2)(3)都修改后就正常了。但是俺推荐大家(1)——(6)都做一下,毕竟这个是比较标准的操作。——俺胆子小,做事力求谨慎。
至于第(4)(5)(6)是做什么用的,俺也不懂,俺也是个菜鸟。看这个帖子这么热,还希望能有大侠给详细解释一下。还有zhuchun的办法,最好新手不要轻易试。再有类似的情况,请不要这么教新手,会出人命的哦!! |
|