search

Home  >  Q&A  >  body text

nginx reports Syntax error: newline unexpected?

sudo service nginx start
/etc/init.d/nginx: 2: /etc/init.d/nginx: Syntax error: newline unexpected

How to deal with it?

習慣沉默習慣沉默2754 days ago1317

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 17:27:05

    Have you modified the file /etc/init.d/nginx?

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 17:27:05

    Post the /etc/init.d/nginx file content. There are grammatical errors.

    reply
    0
  • Cancelreply