Nginx 实践(一):修改端口
修改default.conf
docker cp web:/etc/nginx/conf.d/default.conf
修改default.conf 的端口
docker cp default.conf web:/etc/nginx/conf.d/default.conf
- 重启配置
nginx -s reload
docker cp web:/etc/nginx/conf.d/default.conf
docker cp default.conf web:/etc/nginx/conf.d/default.conf
nginx -s reload