Centos7 Configure Automatic Update installation security patches

Source: Internet
Author: User

First, we open the CENTOS7 system and ensure that the system can connect to the extranet, in this article, "Ping Www.baidu" for testing, concrete display as shown in the following figure. 2

Then execute the command "Yum update-y" to update the system manually, as shown in the following figure. 3

After the system has been updated, we execute the command "Yum install yum-cron-y" To install the software, as shown in the following figure. 4

Then we use VI to open/etc/yum/yum-cron.conf. Modify the following to the following values:

Update_cmd = Security

Update_messages = yes

Download_updates = yes

Apply_updates = yes

The details are shown in the following figure. Save after the modification is complete. 5

Then we execute the command "systemctl start Yum-cron" and start the Yum-cron. The following figure shows the exact operation. 6

Finally, we will add Yum-cron to boot automatically. Executes the command "Systemctl enable Yum-cron". The following figure shows the exact operation.

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.