在此步驟中,咱們將爲服務器配置更新。安全
保持咱們的服務器始終保持最新和安全是很重要的。 所以,咱們首先經過運行如下命令升級系統中的全部軟件包。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