Ububtu EC2 AMI 上的 sudo do-release-upgrade 显示以下警告消息,继续是否可以安全或什么是首选程序。
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"
Reading cache
Checking package manager
Continue running under SSH?
This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.
If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?
Continue [yN] N
答案1
可以安全地继续,这将在端口 1022 上打开第二个 SSH 守护程序,以防 SSH 在升级期间发生故障/崩溃,如果需要修复,您可以通过 ssh 登录到端口 1022。(出现 ssh 故障的可能性非常低)