1.2 Rhel 7 Basic 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

Start-level switching

[[email protected] ~]# Systemctl isolate multi-user.target or Systemctl isolate runlevel3.target switch to level three

[Email protected] ~]# Systemctl isolate graphical.target or Systemctl isolate Runlevel5.target

Set the default startup level:

[Email protected] ~]# Systemctl set-default multi-user.target

[Email protected] ~]# Systemctl set-default graphical.target

To view the current default boot level:

[Email protected] ~]# Systemctl Get-default

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 ( can be ignored, according to the actual situation to deal with )

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

V. Configuring the network Yum

[Email protected] ~]# rm-rf/etc/yum.repos.d/*

[email protected] ~]# cat >/etc/yum.repos.d/rhel7.repo <<eof

> [Rhel7-source]

> Name=rhel-source

> baseurl=http://mirrors.ustc.edu.cn/centos/7/os/x86_64/( Local configuration: File:///mnt)

> enabled=1

> gpgcheck=0

> EOF

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

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

1.2 Rhel 7 Basic 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.