This document describes how to enable services at startup for auto scale-out CVMs by modifying the /etc/rc.d/rc.local
file. Manual intervention is not expected throughout the scale-out process where auto scaling is used. Therefore, we recommend that you set the service to be started upon starting of the CVM to be automatically added. Such services include:
Note:
This document uses the scale-out CentOS CVMs as an example.
rc.local
file.vim /etc/rc.d/rc.local
service httpd start
service mysqld start
service php-fpm start
The result should be as follows:Restart the server (with the reboot
command, or through the console). After the server is restarted, refresh the page on the website without logging in to the server to check whether a response is returned. If yes, the configuration was successful.
You can create an image based on the instance and use this image when creating the launch configuration. For more information, see
Was this page helpful?