修改主机名称:
vim /etc/hostname
linux7.0
hostname
配置网卡名称:
cd /etc/sysconfig/network-scripts
vim ifcfg-eno16777736
TYPE=Ethernet
BOOTPROTO=static
NAME=eno16777736
ONBOOT=yes
IPADDR=192.168.10.10
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
DNS1=192.168.10.1
systemctl restart network
ping 192.168.10.10
配置Yum软件仓库:
cd /etc/yum.repos.d/
vim rhel7.repo
[rhel7]
name=rhel7
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0
mkdir -p /media/cdrom
mount /dev/cdrom /media/cdrom
vim /etc/fstab
/dev/cdrom /media/cdrom iso9660 defaults 0 0
测试:
yum install httpd