使用# yum insyall nginx 安装nginx cd nginx 进入 nginx目录下 在nginx目录下 输入 vim nginx.conf进行nginx.conf配置文件的编辑 按键盘insert按钮进行编写 修改location
location{
root: 对应绝对地址;
index: index.html index.html;
}
修改用户权限 user:nginx 为user:root #systemctl restart nginx.service