简体   繁体   中英

added user-data script is not working after editing , but found working user-data while lauching a fresh EC2 instance

My user-data script for installing Nginx was found to be working on a new launch of the EC2 instance. After launching the ec2 instance, I further added a PHP installation script by editing the user-data, which doesn't work for me.I am using ubuntu ubutu-20 lts image. what may cause my problem? (I have attached elastic IP to the instance )

You can reflect your modified script by removing the below file and then reboot the instance:

/var/lib/cloud/instance/sem/config_scripts_user 

command to remove:

rm /var/lib/cloud/instance/sem/config_scripts_user

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM