使用docker 安装nginx及配置volume目录及负载均衡(win10)
1.第一步 先拉取镜像
docker pull nginx:latest
2. nginx 容器内部一般地址配置如下:
日志位置:/var/log/nginx/ 配置文件位置:/etc/nginx/ 项目位置:/usr/share/nginx/html
我们对应映射路径到windows10的目录地址如下:
3.创建配置文件:
a.在conf中添加nginx.conf 内容如下:
user nginx;
worker_processes 1;
error_log /var.
原创
2021-01-13 17:09:11 ·
2533 阅读 ·
2 评论