首先,我们应该登录新买的服务器。下面我们就登录。在本地设备中打开
终端
或者Xshell
等终端模拟软件,执行ssh命令,登录服务器。记住,要把下面的IP地址换成你的服务器使用的IP地址。
ssh root@123.456.78.90
这个命令可能会让你确认新服务器的可靠性,此时输入yes再按回车键即可:
The authenticity of host '123.456.78.90 (123.456.78.90)' can't be established.
RSA key fingerprint is 11:eb:57:f3:a5:c3:e0:77:47:c4:15:3a:3c:df:6c:d2.
Are you sure you want to continue connecting (yes/no)?
接下来会要求你输入根用户的密码。直接输入密码,然后按回车键:
root@123.456.78.90's password:
现在已经登录你的新服务器了!下面是作者演示的:
Last failed login: Wed Sep 26 11:54:22 CST 2018 from 218.75.67.58 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Sep 26 11:46:17 2018 from 218.75.67.58
Welcome to Alibaba Cloud Elastic Compute Service !
紧接着,我们可以执行 lsb_release -a
命令,查看系统版本信息
[root@localhost ~]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.2.1511 (Core)
Release: 7.2.1511
Codename: Core