安装RHEL6.3
hostname为FQDN形式 cdh0.localdomain
"""
hyper-v由于默认无法识别网卡驱动,需要等安装CI后手动设置,参见下一步说明
"""
#1
安装Hyper-V CI
设置eth0
检查···/etc/sysconfig/network-scripts/ifcfg-eth0···,如不存在则创建
静态配置
```
DEVICE=eth0
BOOTPROTO=static
BROADCAST=255.255.255.255 #广播地址(可不要)
IPADDR=192.168.1.103
NETMASK=255.255.255.0
NETWORK=192.168.1.0 #网络地址(可不要)
HWADDR=00:0C:29:01:98:27 #MAC地址
GATEWAY=192.168.1.1 #网关地址
ONBOOT=yes
```
DHCP
```
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
```
检查hostname
```bash
vim /etc/sysconfig/network
```
NETWORKING=yes
HOSTNAME=localhost.localdomain
激活eth0
```bash
ifconfig eth0 up
dhclient eth0
```
设置开机激活eth0
```bash
echo "ifconfig eth0 up" >> /etc/rc.local
echo "dhclient eth0" >> /etc/rc.local
```
重启网络服务进行测试
```
/etc/init.d/network restart
ifconfig
```
重启系统,使hostname生效(?)
设置hosts
echo "$IP $hostname" >> /etc/hosts
#2
关闭selinux
vim /etc/selinux/conf
设置为disabled
关闭iptables
chkconfig iptables off
service chkconfig stop
设置RHEL6.3DVD镜像源
vim /etc/yum.repos.d/rhel-63-dvd.repo
[RHEL]
name=rhel6.3
baseurl=http://192.168.16.100/RHEL/RHEL63/
gpgcheck=1
gpgkey=http://192.168.16.100/RHEL/RHEL63/RPM-GPG-KEY-redhat-release.gpg
enabled=1
#3
# 安装postgresql
…