免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: xiongshoufen
打印 上一主题 下一主题

机器改名 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-06-17 15:01 |只看该作者

机器改名

如何修改主机名(hostname)?\r\n\r\n1).需要修改如下文件\r\n/etc/hosts\r\n/etc/hostname.<interface>;\r\n/etc/nodename\r\n/etc/net/*/hosts (3 files, man -s 7D ticotsord)\r\n2).如果你运行在VxVM下,则应该\r\n\r\n# vxdctl hostid <new_name>;\r\n# vxdctl init <new_name>;

论坛徽章:
0
12 [报告]
发表于 2003-06-17 15:03 |只看该作者

机器改名

Maintenance Commands                                 setuname(1M)\r\n\r\nNAME\r\n     setuname - change machine information\r\n\r\nSYNOPSIS\r\n     setuname [ -t ]  [ -n node ]  [ -s name ]\r\n\r\nDESCRIPTION\r\n     The setuname utility changes the  parameter  value  for  the\r\n     system  name  and  node  name. Each parameter can be changed\r\n     using setuname and the  appropriate option.\r\n\r\n     Either or both the -s and -n  options  must  be  given  when\r\n     invoking setuname.\r\n\r\n     The system architecture may place requirements on  the  size\r\n     of  the system and network node name. The command will issue\r\n     a fatal warning message and an error  message  if  the  name\r\n     entered is incompatible with the system requirements.\r\n\r\nOPTIONS\r\n The following options are supported:\r\n\r\n     -t    Temporary change. No attempt will be made to create  a\r\n           permanent change.\r\n\r\n     -n node\r\n           Changes the node name. node specifies the new  network\r\n           node  name  and can consist of alphanumeric characters\r\n           and the special characters dash, underbar, and  dollar\r\n           sign.\r\n\r\n     -s name\r\n           Changes the system name. name  specifies  new   system\r\n           name  and  can  consist of alphanumeric characters and\r\n           the special  characters  dash,  underbar,  and  dollar\r\n           sign.\r\n\r\nsetuname我没有用过  

论坛徽章:
0
13 [报告]
发表于 2003-06-17 15:04 |只看该作者

机器改名

[quote]原帖由 \"tangrui\"]为什么不用sys-unconfig改呢?[/quote 发表:\n     \r\n\r\n同意

论坛徽章:
0
14 [报告]
发表于 2003-06-17 15:05 |只看该作者

机器改名

sys-unconfig 什么意思?

论坛徽章:
0
15 [报告]
发表于 2003-06-17 15:06 |只看该作者

机器改名

为什么不用sys-unconfig改呢? \r\n\r\n\r\n同意\r\n^^^^^^^^^^^^^^^^^^^^^^^\r\n大炮打蚊子

论坛徽章:
0
16 [报告]
发表于 2003-06-17 15:13 |只看该作者

机器改名

把hostname.*内容也改为205\r\n还有/etc/hosts也要把原先的修改为205

论坛徽章:
0
17 [报告]
发表于 2003-06-17 15:13 |只看该作者

机器改名

终于不往沟里带了,嘿嘿……

论坛徽章:
0
18 [报告]
发表于 2003-06-17 16:02 |只看该作者

机器改名

vi /etc/nodename\r\nreboot\r\n\r\nonly these two steps

论坛徽章:
0
19 [报告]
发表于 2003-06-18 13:17 |只看该作者

机器改名

sys-uncongfig是一个命令吗?我机子怎么没有这条命令啊,谁能告诉我怎么用sys-uncongfig怎么用啊,谢谢拉!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP