如何修改linux计算机名
来源:互联网 发布:知乎live入口 编辑:程序博客网 时间:2024/05/16 18:13
如何修改linux计算机名
1)open a shell, tpye the command below:
[root@kcn-110]#hostname kcn-110mw
2)edit the file:/etc/sysconfig/network, change the value of 'HOSTNAME':
[root@kcn-110]#vi /etc/sysconfig/network
=======================================================================
NETWORKING=yes
HOSTNAME=kcn-110mw
=======================================================================
3)edit the file:/etc/hosts, change the ip address and your hostname
[root@kcn-110]#vi /etc/hosts
====================================================================
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
192.168.0.110 kcn-110mw kcn-110mw
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
192.168.0.110 kcn-110mw kcn-110mw
====================================================================
4)reboot network
/etc/sysconfig/network文件
改了以后要重启网络
/etc/init.d/network restart
改了以后要重启网络
/etc/init.d/network restart
service network restart
- 如何修改linux计算机名
- linux修改计算机名
- 修改linux计算机名
- Ubuntu如何修改计算机名
- ubuntu如何修改计算机名
- 如何修改计算机名而不用重新启动
- 如何修改计算机名:localhost.localdomain
- 修改Linux计算机名的方法
- 如何修改linux网卡名
- 禁止修改计算机名
- 修改计算机名
- winxp修改计算机名
- Oracle修改计算机名
- 修改计算机名
- Ubuntu修改计算机名
- ubuntu修改计算机名
- Ubuntu修改计算机名
- Ubuntu 修改计算机名
- 喊英语是一件非常快乐的事!
- 真人表述:一个技术支持人员的兼职创业实战案例
- Volatile
- 中文是世界上最纯正的语言
- PHP - Manual手册 - XXXIII. Error Handling and Logging Functions错误处理和日志函数 - 概述
- 如何修改linux计算机名
- 意志的赞歌
- php确认码图片
- Spring.net&Nhibernate小结
- 解决Java程序在MOTO E680i中声音文件播放
- 我的誓言My Oath[含音频]
- 2008年硕士招生专业目录
- SQL还原数据库时发生错误,"因为数据库正在使用,所以未能获得对数据库的排它访问权。"解决方法。
- C# 自定义格式字符串随笔(IFormattable,IFormatProvider,ICustomFormatter三接口的实现)