笔记
访问我的
创建密钥对,会自动下载
绑定密钥对
https://free.aliyun.com/购买esc阿里云服务器
chmod 400 ecs.pem 修改这个密钥对的权限
ssh -i ecs.pem root@替换成你的公网地址,通过密钥对登录远程服务器
apt update 在服务器上执行,更新软件源
apt updateapt install nginxpt update 安装nginx
index.html 在本地创建一个HTML页面
scp -i ecs.pem index.html root@你的公网地址:/var/www/html/ 把本地HTML上传到远程服务器/var/www/html/