Step-by-step study of RHEL7 environment construction

Source: Internet
Author: User
Tags symlink

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.