RHEL 7 Environment Configuration

Source: Internet
Author: User
Tags symlink

RHEL7 Basic Understanding

Red Hat Company officially released the Enterprise Linux 7 release on June 11, 2014, which has been enhanced in bare servers, virtual machines, IaaS and PaaS, and more reliable and more robust data center environments to meet a variety of business requirements. RHEL 7 provides enterprises with a cohesive, unified infrastructure architecture and the latest service environments, including Linux containers, big data, and hybrid cloud platforms across physical systems, virtual machines, and the cloud.

Update: 1. Significantly improved Docker compatibility; 2. The default file system changes from EXT4 to xfs;3. System management is further simplified; 4. New version of Kernel 3.10 provides more file system support; 5 supports more than 2TB HDD as system boot disk

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

If not, start manually

[Email protected] ~]# systemctl restart NetworkManager

Modify IP Address

[Email protected] ~]# Nmtui-edit eno16777736

Activating network Configuration

[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 boot auto-off

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 #临时关闭

Power-on auto-shutdown:

[Email protected]~]# sed-i ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/config

Four, set the CD-ROM automatic mount (ignore)

[[email protected] ~]# echo "/dev/sr0/mnt iso9660 defaults 0 0" >>/etc/fstab

V. Configuring local YUM Sources

[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 (Network: http://mirrors.ustc.edu.cn/centos/7/os/x86_64/)

> enabled=1

> gpgcheck=0

> EOF

[email protected] ~]# Yum Clean all #清空yum缓存

[email protected] ~]# Yum list #生成缓存列表

RHEL 7 Environment Configuration

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.