ubuntu服务器安全_如何在Ubuntu服务器上启用自动安全更新

ubuntu服务器安全

ubuntu服务器安全

There’s nothing more tedious as a system administrator than running security updates on a dozen servers every single day. Luckily Ubuntu will let you automate stable security updates so you’re never at risk.

作为系统管理员,没有什么比每天在十几台服务器上运行安全更新更为乏味了。 幸运的是,Ubuntu将使您能够自动化稳定的安全更新,因此您永远不会面临风险。

All you need to do is run this one single command on your server:

您需要做的就是在服务器上运行以下单个命令:

sudo dpkg-reconfigure -plow unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades

If you get an error about the package not being installed, run this first:

如果您收到关于未安装软件包的错误,请首先运行以下命令:

sudo apt install unattended-upgrades

If you are logged in as root you can skip the sudo, of course.

如果您以root用户身份登录,则可以跳过sudo。

Once you run the command you’ll be presented with a very pink screen that might prompt you to say Ok.

一旦运行命令,系统将显示一个非常粉红色的屏幕,提示您说“确定”。

If your terminal was a little wider you probably would see it all on a single page, but either way you’ll be asked if you want to automatically download and install stable updates. Select Yes.

如果您的终端稍宽一点,则可能会在单个页面上看到所有内容,但是无论哪种方式,系统都会询问您是否要自动下载并安装稳定的更新。 选择是。

The utility will write out the necessary configuration files, and security updates should become automated. Note that by default it’s going to wait to check once a day, so it’s not like any pending security updates will be instantly installed once you change this setting, but you shouldn’t have to install security updates ever again.

该实用程序将写出必要的配置文件,并且安全更新应该自动化。 请注意,默认情况下它将每天等待检查一次,因此,一旦更改此设置,就不会立即安装任何待处理的安全更新,但您不必再次安装安全更新。

翻译自: https://www.howtogeek.com/204796/how-to-enable-automatic-security-updates-on-ubuntu-server/

ubuntu服务器安全

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值