我已经在我的 AWS EC2 实例上设置了 apache、mysql 和 php,但是如何在 EC2 启动时启动这些服务?我找到了chkconfig -a mysql命令,但这只是给出了一个错误,如option -a not found.
chkconfig -a mysql
option -a not found
mysql start amazon-web-services apache-2.2
amazon-web-services ×1
apache-2.2 ×1
mysql ×1
start ×1