Docker安裝nginx並掛載外部配置

第一步:拉取nginx鏡像 docker pull nginx 第二步:自定義配置文件 創建目錄 mkdir /root/nginx/{conf,logs,www} -p 自定義nginx.conf vim conf/nginx.conf 配置如下 user root; worker_processes 1; #error_log logs/error.log; #error_log l
相關文章
相關標籤/搜索