因业务需要,同事以某个虚拟机为模板,复制出其他的CentOS虚拟机时,发现原系统内的开机自启动的nginx,不能再自启动了。

好吧,那就重新注册一下 nginx 的开机自启动:

# 先删除原来的注册:

chkconfig --del nginx

# 重新注册:

chkconfig --add nginx
chkconfig --level 2345 nginx on
chkconfig --list nginx

# 重新启动下虚拟机,看看有没有开机自启动:

init 6
service nginx status

相关文章:

  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-12-06
  • 2021-12-09
  • 2021-11-20
相关资源
相似解决方案