Different Versions of centos 7.0 and earlier versions

Source: Internet
Author: User

In the afternoon, I had nothing to do. I installed centos 7.0 on a machine and tried it. I found that it was quite different from the previous version.

Installation

First, during installation, all the previously RHEL-series (including centos and Fedora) packages can be selected, but now only one option can be selected, with repeated sub-options; when the selected partition is installed, the recommended partition for centos7 is XFS, instead of the previous ext (2, 3, 4) series. The installation is roughly the same.

Start

After the host is installed, the system interface is changed when the system is started. At first glance, it seems that there are two kernels. One is the rescue option, and after pressing E, all grub will be found. the conf information is complete, so it is hard to find the kernel to start, write a 1 (to enter the single user mode), and then enter the rescue mode.

Character Interface

After entering the system, it is a graphical interface. To enter the character interface, find the/etc/inittab and find that it is almost an empty file. If the file prompts you to change the runlevel, you can set/lib/systemd/system/runlevel *. target is soft connected to/etc/systemd/system/default.tar get (of course, You can overwrite it). After trying it, you can change it to runlevel3 on the Character interface.

Configure the network and Host Name

Then, if you want to configure the network, go to/etc/sysconfig/network-script/and check that the NIC has changed its name to enp1s5. This is interesting. After configuring the network, change the host name, change the name to/etc/sysconfig/network and find that the file is empty. Modify the file according to the previous version 6. It will not work after restart. Man has a hostname, in the case of 7, you need to change the name to/etc/hostname.

Local Yum source mounting

Next, you want to configure a local Yum source, and then you need to mount the CD, manually mount it, And then directly echo "Mount ...... "To RC. local. After all, the script is started and executed. After the restart, the script is not mounted. Go to RC. in local, I saw that chmod + x RC should be manually executed in 7. local: Yes. You need to manually add the execution permission. Do you have to manually add the execution permission in the systems I installed before 6 !!!! Of course, after the permission is added, the mount command of RC. Local is started after the instance is started.

LVM and XFS

Later, I wanted to dress up with an LVM for fun, so I tried partitioning and formatting (specially formatted as XFS), PV, VG, and LV step by step. It was okay, so I wanted to zoom in and out, when resize2fs is executed, how does one always report a superblock error? What is the problem? Man resize2fs then finds that this command only supports ext file systems, then how is the installation of the system LVM? I have not solved this problem yet. There should be a solution.

DHCP and services

Next, I want to dress a DHCP game. I was surprised to find that after packaging all DHCP, I couldn't start service DHCPD, and then found/etc/init. d/does not have a DHCP similar thing. After all, there were DHCPD, dhcpd6, and dhcrelay before 6, and then we found that/sbin/DHCPD had a STARTUP file. Isn't it, if you want to enable services in the future, do you have to manually compile them? Wrong, it is in/usr/lib/systemd/system/DHCPD. Service, there are still many modifications, and then add permissions to execute service restart/stop ...... Yes, but it points to the systemctl restart/start/stop service. Service

Iptables

I also found that iptables is not a service in/etc/init. d/this time, but under/sbin;

Then, there will be no more. Maybe, it is true or not. discover new things and update them on this log. It is true or not.

By the way, I also found that/etc/sysctl. conf is empty, and all route forwarding requests to/proc/sys/net are required.


Related Article

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.