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服务器安全