[闲聊] NAS大师请进

楼主: kerycheng (kk)   2023-01-31 16:01:31
在NAS上弄了个docker要拿来跑网站
用docker创了个nginx的映像档
在修改nginx.conf里的参数时好像没修改好,导致现在我这个nginx打不开
日志里面报错显示的是这些
/docker-entrypoint.sh: Configuration complete; ready for start up
[emerg] 1#1: "charset" directive is not allowed here in /etc/nginx/nginx.conf:8
nginx: [emerg] "charset" directive is not allowed here in /etc/nginx/nginx.conf:8
看起来就是在说我改的那个参数有问题,导致无法启动
但我如果要修改这个参数的话就必须先启动nginx,才能在terminal去修改
有什么方法可以从别的地方去修改?
作者: twosheep0603 (两羊)   2023-01-31 16:03:00
都用Docker了 干脆重新来一次啊
作者: surimodo (好吃棉花糖)   2023-01-31 16:05:00
不是跟你说了 config 第八行出错一般应该有方法从外部开启档案

Links booklink

Contact Us: admin [ a t ] ucptt.com