Skip to content

Instantly share code, notes, and snippets.

@thiagomarini
Created October 29, 2018 16:10
Show Gist options
  • Select an option

  • Save thiagomarini/7341b676baf9f22f96a614f87d468835 to your computer and use it in GitHub Desktop.

Select an option

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
@ifirdavs

ifirdavs commented Sep 4, 2023 •

Copy link
Copy Markdown

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
Copy Markdown

pip install supervisor
this worked

@sivatarunp

Copy link
Copy Markdown

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

@ifirdavs

Copy link
Copy Markdown

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

luisalonsobr commented Oct 23, 2023 •

Copy link
Copy Markdown

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