2020
09-24
09-24
基于docker搭建nginx文件服务器的方法步骤
1.在本机新建配置文件docker_nginx.confserver{listen7070;server_namelocalhost;charsetutf-8;location/files{#在docker内nginx的目录alias/home/files;expires1d;allowall;autoindexon;}2.启动命令dockerrun--namenginx-d-p7070:7070-vD:\dev\nginx-1.13.6\conf\docker_nginx.conf:/etc/nginx/nginx.conf-vD:\tools\files:/home/filesnginx说明:D:\dev\nginx-1.13.6\c...
继续阅读 >