nginx配置

https://blog.csdn.net/magerguo/article/details/72514813

 

https://www.lvtao.net/config/docker-nginx.html

 https://blog.csdn.net/wangfei0904306/article/details/77623400

 

 

docker run --name nginx1 -d -p 8091:80 -v /opt/docker/nginx/1/html:/usr/share/nginx/html -v /opt/docker/nginx/1/conf/nginx.conf:/etc/nginx/nginx.conf -v /opt/docker/nginx/1/conf/conf.d:/etc/nginx/conf.d nginx   


sudo docker cp 5ae:/etc/nginx/nginx.conf /opt/docker/nginx/1/conf/nginx.conf

sudo docker cp 5ae:/etc/nginx/conf.d /opt/docker/nginx/1/conf/conf.d

posted @ 2018-03-27 23:11  变换  阅读(126)  评论(0编辑  收藏  举报