![Amazon Linux 上的 update-rc.d](https://linux22.com/image/571314/Amazon%20Linux%20%E4%B8%8A%E7%9A%84%20update-rc.d.png)
我对系统管理还很陌生,我只是想确保 nginx 在我的 Amazon EC2 实例(运行 Amazon Linux)启动时运行
我已将脚本放在 /etc/init.d 中,但 Amazon Linux 似乎没有附带 update-rc.d 命令。那么如何确保脚本在启动时运行?
答案1
相当于 Amazon Linux(本质上是 CentOS,本质上是 Red Hat)的update-rc.d
是chkconfig
。http://www.cyberciti.biz/faq/rhel5-update-rcd-command/
chkconfig --add nginx
chkconfig nginx on