Nginx builds a web service LAN to access local folders
1. Nginx installation
Refer to Nginx introduction and installation ;
2. Modify configuration parameters
- Revise
user
# 修改配置文件 第一句
#user nobody;
user root;
- modify access folder
Set the local path of the LAN access folder;localhost:8099/result/
location /result/ {
root /home/ubuntu/hdd/MTDVision/ ; # 设置访问文件夹
autoindex on; #开启目录浏览功能
}
Nginx
full profile/etc