1.安装
yum install nginx
2.查看配置位置
nginx -t
3.查看nginx.conf,找到默认html配置路径
vi /etc/nginx/nginx.conf
cd /usr/share/nginx/html
4.修改默认html
5.启动
nginx
本地文件上传到vps
scp -P port /Users/xirtam/Downloads/moc.zip root@ip:/usr/share/nginx/html