First, configure the IP address
The function of Setup is weakened in RHEL7, the function of network service is weakened, and the network management is mainly through NetworkManager.
RHEL7 modifying the network configuration via Nmtui (RHEL7 default installation, if you need to turn on Networkmanager.service to use)
First, make sure that the NetworkManager service is running correctly
[[email protected] ~] #systemctl status NetworkManager
networkmanager.service-network Manager
Loaded:loaded (/usr/lib/systemd/system/networkmanager.service;enabled; vendor preset:enabled)
active:active (running)since two 2016-01-26 20:05:49cst; 43min ago
if not, start manually
[[email protected] ~] #systemctl restart NetworkManager
View IP Address
[[Email protected] ~] #ifconfig
Modify IP address
[[Email protected] ~] #nmtui-edit eno16777735
Activating network Configuration
[[Email protected] ~] #nmtui
Or
[[Email protected] ~] #systemctl Restart Network
Second, turn off the firewall and set the power off automatically
[[Email protected] ~] #systemctl Stop FIREWALLD
[[Email protected] ~] #systemctl Disable FIREWALLD
Removed Symlink/etc/systemd/system/dbus-org.fedoraproject.firewalld1.service.
Removed Symlink/etc/systemd/system/basic.target.wants/firewalld.service.
Third, turn off SELinux and set the power off automatically
[[email protected] ~] #setenforce 0 # temporarily closed
Power-on auto-shutdown:
[Email protected] ~]# sed-i ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/config
Four, set the CD-ROM automatic mount
[[Email protected] ~] #echo "/dev/sr0/mnt iso9660 defaults 0 0" >>/etc/fstab
Five, configure the local Yum source.
[Email protected] ~]# rm-rf/etc/yum.repos.d/*
[Email protected] ~]# cat>/etc/yum.repos.d/rhel7.repo <<eof
> [Rhel7-source]
> Name=rhel-source
>baseurl=file:///mnt
> enabled=1
> gpgcheck=0
> EOF
[email protected] ~]# Yumclean all # emptying the yum cache
[email protected] ~]# Yumlist # Generate Cache list
This article from the "Primary Color Sky" blog, reproduced please contact the author!
Step-by-step study of RHEL7 environment construction