-
-
Save thiagomarini/7341b676baf9f22f96a614f87d468835 to your computer and use it in GitHub Desktop.
# Install it as a yum package instead of throgh pip (will save you from lots of hassle) | |
# first get epel | |
sudo amazon-linux-extras install epel | |
# then install supervisor | |
sudo yum install supervisor |
Or if you want to install Epel:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo rpm -ihv --nodeps ./epel-release-latest-8.noarch.rpm
but Amazon Docs recommend using pip
, though there's no Doc for certbot.
pip install supervisor
this worked
how to start supervisor service after pip install supervisor? I did pip install but none of the supervisorctl commands are working.
how to start supervisor service after pip install supervisor? I did pip install but none of the supervisorctl commands are working.
Be sure you have activated your virtual environment venv
I'm running lamp on linux 2023, the instructions here are more complete, they focus on beanstalk but aside from file path it worked like a charm:
https://5paceman.dev/aws-elastic-beanstalk-supervisor/
on this commands:
sudo cp .platform/files/supervisor.conf /etc/supervisord.conf
sudo cp .platform/files/supervisord.service /lib/systemd/system/supervisord.service
i just made the files on the folder /home/ec2-user/files, instead of .platform.
Yes, Amazon Linux 2023 is removed amazon-linux-extras. Instead use pip:
pip install supervisor
Don't forget to activate your venv 😄!