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?

Pavel Koryagin
  • 255
  • 1
  • 3
  • 8

1 Answers1

5

sudo /etc/init.d/nginx stop

sudo chkconfig nginx off

then confirm with

chkconfig --list | grep nginx

MrTuttle
  • 1,176
  • 5
  • 5