我按照网上的方法修改计算机名,可是到修改/etc/hosts时遇到了困难,请大家指教一.下.。虚拟主机
edit the .file:/etc/hosts, change the i.p address and your hostname 鲜花
[.root@kcn-11.0]#vi /etc/hosts 电子
# Do not remove. the following line, or various p.rograms 女人
# that .require network funct.ionality will fail.电影
#127.0.0.1 localh.ost.localdomain localhos.t.
192.16.8.0.110 kcn-.110mw kcn-110mw<性病>
以上是网上的教程,可是我是路由器上网的,. 外汇
运行"ifconfig"时,
“eth0 Link encap:Ethernet HWaddr 00:2.2.:15:A4:F0:C0 电影
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255..2.55.0 乙肝
. inet6 addr: fe80::222:15ff:fea4:f0c0/64 Scope:Lin.k域名
UP BROADCAST RUNNING MULTICAST MTU:150.0 Metric.:1( 游戏 )
RX pac.kets:5.5807 errors:0 dropped:0 overruns:0 frame:0投资
TX packets:47001 errors:0 d.ro.pped:0 overruns:0 carrier:0 电子
. collisions:0 txqueu.elen:1000 虚拟主机
RX. bytes:60388101 (57.5 MiB) TX bytes:7980283 (7.6 .MiB)(广告)
. Interrupt:18 杀毒
lo .. Link encap:Local Loopback 电子
. . inet addr:127.0.0.1 Mask:255.0.0.0 汽车
inet6 addr.: ::1/128 Sco.pe:Host健康
UP LO..OPBACK RUNNING MTU:16436 Metric:1 婚庆
R.X packets:10 errors:0 dropped:0 ove.rruns:0 frame:0.
TX. packets:10 errors:0 dropped:0 overruns:.0 carrier:0.
coll.isions:0 txqu.euelen:0 婚庆
RX bytes:.580 (580.0 b) TX by.tes:580 (580.0 b)
virbr0 Link encap:Ethernet. HWaddr CA:24:.EE:5A:93:07 婚庆
i.net addr.:192.168.1.22.1 Bcast:192.168.122.255 Mask:255.255.255.0 电子
. UP BROAD.CAST RUNNING MULTICAST MTU:1500 Metric:1.
RX packets:0 errors:.0 .dropped:0 overruns:0 frame:0 美容
TX packets:30 errors:0 dropped:0 overruns:0 carr.ier:.0.
. collisions:0 txque.uelen:0 鲜花
. RX bytes:0 (0.0 .b) TX bytes:4630 (4.5 KiB).
哪个是我的IP地址呢?
另外
127.0.0.1 localhost. localhost.l.ocaldomain localhost4 localhos.t4.localdomain4<性病>
::1. localhost localhost.localdomain localhost6 localhost6.loca.ldo.main6 健康
这是我的hosts文件,请问我该怎.么修改文件呢?(广告)