更新时间:2022-08-21 12:04:34
登陆云服务器ECS,查看ssh服务及其端口号(ssh默认端口号:22),确认无误后,即可登陆连接。
ps -ef | grep sshd
netstat -nltp | grep ssh
连接MySQL需要先安装MySQL客户端,注意:安装MySQL客户端时需注意ECS系统类型及版本,如Windows、Ubuntu、Centos7、Centos8等。
如下安装命令,适用于Centos7:
wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
rpm -ivh https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
yum search mysql-community
yum install mysql-community-client.x86_64
mysql -uroot -h[内网IP地址] -P3306 -p