错误如下:
nginx: [emerg] unknown directive in /etc/nginx/conf.d/test.conf:4
错误原因是在配置文件第四行出现了tab,编辑该配置文件,将tab换成空格这个错误就消失了。