mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
Update 20161130 Install Security Patches or Updates Automatically on CentOS and RHEL.md
This commit is contained in:
parent
2dcda602db
commit
930890c4aa
@ -1,24 +1,26 @@
|
||||
ucasFL translating
|
||||
Install Security Patches or Updates Automatically on CentOS and RHEL
|
||||
在 CentOS 和 RHEL 上安装或自动更新安全补丁
|
||||
============================================================
|
||||
|
||||
One of the serious needs of a Linux system is to be kept up to date regularly with the latest security patches or updates available for the corresponding distribution.
|
||||
|
||||
在 Linux 系统上,其中一个最重要的需求就是保持定期更新最新的安全补丁,或者为相应的 Linux 版本更新可用的安全补丁。
|
||||
In a previous article, we’ve explained how to [configure automatic security update in Debian/Ubuntu][1], in this article we will explain how to set up your CentOS/RHEL 7/6 distribution to auto update essential security packages when needed.
|
||||
|
||||
在之前的文章中,我们分享了[如何在 Debian/Ubuntu 上配置和自动更新安全补丁][1],在这篇文章中,我们将分享如何在 CentOS/RHEL 7/6 版本中设置自动更新重要的安全补丁,当你需要这样做的时候。
|
||||
Other Linux distributions in the same families (Fedora or Scientific Linux) can be configured similarly.
|
||||
|
||||
在相同家族的其他 Linux 版本(Fedora 或 Scientific Linux)中可以用类似的方法进行配置。
|
||||
### Configure Automatic Security Updates on CentOS/RHEL Systems
|
||||
|
||||
### 在 CentOS/RHEL 系统上配置自动更新安全补丁
|
||||
On CentOS/RHEL 7/6, you will need to install the following package:
|
||||
|
||||
在 CentOS/RHEL 7/6 系统上,你需要安装下面的安装包:
|
||||
```
|
||||
# yum update -y && yum install yum-cron -y
|
||||
```
|
||||
|
||||
#### Enable Automatic Security Updates on CentOS/RHEL 7
|
||||
|
||||
#### 在 CentOS/RHEL 7 系统上启用自动更新安全补丁
|
||||
Once the installation is complete, open /etc/yum/yum-cron.conf and locate these lines – you will have to make sure that the values matches those listed here:
|
||||
安装完成以后,打开 /etc/yum/yum-cron.conf,然后找到下面这些行内容,你必须确保它们的值和下面展示的一样
|
||||
|
||||
```
|
||||
update_cmd = security
|
||||
@ -28,6 +30,7 @@ apply_updates = yes
|
||||
```
|
||||
|
||||
The first line indicates that the unattended update command will be:
|
||||
第一行表明自动更新命令行应该是这样:
|
||||
|
||||
```
|
||||
# yum --security upgrade
|
||||
|
Loading…
Reference in New Issue
Block a user