mkdir -p nginx/conf mkdir -p nginx/html mkdir -p nginx/log docker run -it -d --name mynginx -p 80:80 -v /nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v /nginx/html:/usr/share/nginx/html -v /nginx/log:/var/log/nginx nginx
#开放端口 firewall-cmd --zone=public --add-port=80/tcp --permanent