docker run -d -p 8080:80 --name nginx \
-v $PWD/conf/:/etc/nginx/ \
-v $PWD/html/:/usr/share/nginx/html/ \
-v $PWD/logs/:/var/log/nginx/ \
-v /etc/localtime:/etc/localtime \
nginx
docker run -d -p 8080:80 --name nginx \
-v $PWD/conf/:/etc/nginx/ \
-v $PWD/html/:/usr/share/nginx/html/ \
-v $PWD/logs/:/var/log/nginx/ \
-v /etc/localtime:/etc/localtime \
nginx
本文标题:部署nginx
本文链接:https://www.haomeiwen.com/subject/mvbwdhtx.html
网友评论