nginx启动报错:unknown directive “ worker_processes”

错误信息:unknown directive “worker_processes” in E:\Program
Files\nginx-1.19.10/conf/nginx.conf:1

提示的已经很清楚了在,nginx.conf的第一行worker_processes有问题
之前都是用记事本打开,
nginx启动报错:unknown directive “ worker_processes”_第1张图片
翻阅了无数的资料说可能是编码有问题,遂下了个notpad++,果不其然还真是编码问题(如下所示)
nginx启动报错:unknown directive “ worker_processes”_第2张图片
把编码格式改成UTF-8之后,问题解决
nginx启动报错:unknown directive “ worker_processes”_第3张图片
进程可以看到,nice!!
nginx启动报错:unknown directive “ worker_processes”_第4张图片
参看链接:https://blog.csdn.net/JackRen_Developer/article/details/84994609

你可能感兴趣的:(解决问题,nginx,linux)