/etc/init.d/nginx: 2: /etc/init.d/nginx: Syntax error: newline unexpected
这是什么原因?
查看你的nginx.conf配置文件,一般语法错误。