天天看点

ECS服务器新手训练第六天

用系统自带的工具登录

ECS服务器新手训练第六天

ubuntu系统指令安装

sudo apt-get install apache2

打开防火墙80端口

sudo ufw allow 'Apache Full'

端口80(正常,未加密的Web流量)和端口443(TLS / SSL加密流量)如果无法ping通去阿里云安全组手动添加80端口即可

然后网页输入公网ip即可查看

ECS服务器新手训练第六天

安装myseql

命令1

sudo apt-get update

命令2

sudo apt-get install mysql-server

ECS服务器新手训练第六天