1、安装nginx
yum install nginx -y
2、启动
nginx
3、如果在外网访问不到
看下阿里云服务器的配置
云服务器ECS->网络与安全->安全组
4、把自己的本地文件上传到阿里云服务器
在本地
5、在阿里云服务上把dist.zip进行解压缩
unzip dist.zip
4、nginx 操作
whereis
whereis nginx
./nginx -s stop 关闭nginx
ps -ef|grep nginx
1、安装nginx
yum install nginx -y
2、启动
nginx
3、如果在外网访问不到
看下阿里云服务器的配置
云服务器ECS->网络与安全->安全组
4、把自己的本地文件上传到阿里云服务器
在本地
5、在阿里云服务上把dist.zip进行解压缩
unzip dist.zip
4、nginx 操作
whereis
whereis nginx
./nginx -s stop 关闭nginx
ps -ef|grep nginx