2

I have nginx installed on CentOS and now I need it to be disabled (including on reboot), but keep it installed for further use.

Should I only remove /etc/init.d/nginx file? Or is there more graceful way to do that?

1 Answer 1

5

sudo /etc/init.d/nginx stop

sudo chkconfig nginx off

then confirm with

chkconfig --list | grep nginx

3
  • 1
    no need to pipe to grep, chkconfig --list <daemon> will show you just that one line
    – Zypher
    Jul 15, 2011 at 1:24
  • 2
    good point. i pipe like it's a nervous tick.
    – MrTuttle
    Jul 15, 2011 at 1:35
  • 1
    You know you've got a problem when you cat | less
    – womble
    Jul 15, 2011 at 6:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.