责任链模式
2012-06-19 21:53
169 查看
如何修改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
====================================================================
4)reboot network
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
====================================================================
4)reboot network
/etc/sysconfig/network文件 改了以后要重启网络 /etc/init.d/network restart service network restart |
相关文章推荐
- 责任链模式(Chain of Responsibility Pattern)
- 责任链模式(一)
- 设计模式 Design Parttern ——责任链模式Chain of Responsibility
- 《java与模式》学习系列——责任链模式
- 大话设计模式之责任链模式(Chain of Responsibility Pattern)
- C语言和设计模式(责任链模式)
- 【设计模式】之责任链模式
- 深入浅出设计模式笔记之十一:责任链模式
- 责任链模式在网站参数传递、存取的应用
- [设计模式]责任链模式(Chain of Resposibilty)
- 责任链模式
- [重构到模式-Chain of Responsibility Pattern]把Fizz Buzz招式重构到责任链模式
- 6.设计模式之责任链模式
- 责任链模式
- 分分钟搞定责任链模式(Chain of Responsibility)
- [设计模式-行为型]责任链模式(Chain of Responsibility)
- Java设计模式(九)责任链模式 命令模式
- 设计模式_责任链模式
- 责任链模式随记
- 责任链模式