在此步骤中,咱们将为服务器配置更新。安全
保持咱们的服务器始终保持最新和安全是很重要的。 所以,咱们首先经过运行如下命令升级系统中的全部软件包。bash
sudo apt-get update sudo apt-get upgrade
而后,咱们打开Ubuntu的无人值守安全升级。 为此,咱们首先须要安装必要的软件包。 服务器
sudo apt-get install unattended-upgrades
When you ran apt-get upgrade, where there any "not upgraded"?ui
Eg: Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Looking at 0 not upgraded.spa
If there were ones that were not upgraded, runcode
apt-get dist-upgrade