使用Nginx显示yum源

来源:互联网 发布:java程序设计试卷 编辑:程序博客网 时间:2024/06/05 20:55

Step 1:
进入Nginx所在的文件夹
执行命令:
cd /opt/apps/nginx/conf
这里写图片描述

Step 2:
编辑Nginx的配置文件
执行命令:vi nginx.conf
这里写图片描述

Step 3:
修改http里面的server属性
location / {
root /mnt/;
autoindex on;
}
这里写图片描述

Step 4:
执行命令:
./sbin/nginx

Step 5:
打开网页查看:http://192.168.80.11:80
这里写图片描述

0 0
原创粉丝点击