centos使用Docker部署Nginx做为静态资源服务器

一、在安装了Docker的centos机器上使用如下命令拉取nginx镜像php docker pull nginx   二、在主机根目录下新建一个/etc/nginx/conf.d/目录,在该目录下新建一个default.conf文件,文件内容以下html server { listen 80; server_name localhost; #charse
相关文章
相关标签/搜索