Skip to content

Instantly share code, notes, and snippets.

@thiagomarini
Created October 29, 2018 16:10
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save thiagomarini/7341b676baf9f22f96a614f87d468835 to your computer and use it in GitHub Desktop.
Save thiagomarini/7341b676baf9f22f96a614f87d468835 to your computer and use it in GitHub Desktop.
How to install supervisor on Amazon Linux
# 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
@dave-arnold
Copy link

this doesn't work

@luiszaelot
Copy link

Worked like a charm! Thanks

@siamak-pk
Copy link

Thank you, it works on my ec2 Linux instanse

@tauseedzaman
Copy link

sudo: amazon-linux-extras: command not found

i got this error
any idea guys?

@bazucompany
Copy link

@tauseedzaman Amazon Linux 2023 doesn't have amazon-linux-extras. https://cloudkatha.com/amazon-linux-extras-in-2023/

@ifirdavs
Copy link

ifirdavs commented Sep 2, 2023

Yes, Amazon Linux 2023 is removed amazon-linux-extras. Instead use pip:
pip install supervisor
Don't forget to activate your venv 😄!

@ifirdavs
Copy link

ifirdavs commented Sep 4, 2023

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.

@davidumoren
Copy link

pip install supervisor
this worked

@sivatarunp
Copy link

how to start supervisor service after pip install supervisor? I did pip install but none of the supervisorctl commands are working.

@ifirdavs
Copy link

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

@luisalonsobr
Copy link

luisalonsobr commented Oct 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment