windows 中nginx奇葩报错 nginx: [emerg] unknown directive "#" in  nginx/conf/nginx.conf:3
windows 中nginx奇葩报错 nginx: [emerg] unknown directive "#" in  nginx/conf/nginx.conf:3
经过: 用记事本打开nginx.conf 配置文件,后来启动nginx就开始报错,报错内容如下
nginx: [emerg] unknown directive "#" in nginx/conf/nginx.conf:3
nginx: [emerg] unknown directive "#user" in nginx/conf/nginx.conf:1
解决办法,新建nginx.conf 保存为utf8格式文件
参考地址: nginx: [emerg] unknown directive "#"
nginx: [emerg] unknown directive "#"