centos使用Docker部署Nginx做爲靜態資源服務器

一、在安裝了Docker的centos機器上使用如下命令拉取nginx鏡像php docker pull nginx   二、在主機根目錄下新建一個/etc/nginx/conf.d/目錄,在該目錄下新建一個default.conf文件,文件內容以下html server { listen 80; server_name localhost; #charse
相關文章
相關標籤/搜索