Eddyer
发下工资正心凉,一紧张,码全忘。似曾相识,何用却不详。设计模式两茫茫,看代码,泪千行。步出小窝见同事,都一样,很受伤。如此工资,无颜见嫩娘。只待晚上交钱日,接绳套,系房梁。

一,图形界面,setup

二,修改文件

1,修改主机名字

vi /etc/sysconfig/network
NETWORKING=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=eddy01

2,修改IP地址

vi /etc/sysconfig/network-scripts/ifcfg-Auto_eth1
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.145.109
PREFIX=24
GATEWAY=192.168.145.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth1"
UUID=a1be413e-2e3e-4455-81d4-543ac5ccfdc1
ONBOOT=yes
HWADDR=00:0C:29:59:43:48
LAST_CONNECT=1454211374

3,修改ip和主机名的映射

vi /etc/hosts
192.168.145.109 eddy01
192.168.145.110 eddy02
192.168.145.111 eddy03
192.168.145.112 eddy04
192.168.145.113 eddy05
192.168.145.114 eddy06
192.168.145.115 eddy07
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
~

 

posted on 2017-03-06 21:25  Eddyer  阅读(3027)  评论(0编辑  收藏  举报