How to Install and Configure Supervisor on ubuntu 20.04

What is Supervisor

It is a client/server system that allows users to control several processes running on a UNIX-like operating system. It is a free and open-source process management system. However, It restarts the processes if it got crashes for any reason.

To know more about the supervisor and its various version releases Click here!

Step 1- Update all the packages

Step 2- Install Supervisor

By default supervisor package is present in the ubuntu 20.04 repository. Install it with the below-mentioned command

After installing it you can check its version by running the below command

Verify the status of the service by running the below command

Step 3- Manage the Nginx process with the supervisor

First, we need to install the nginx server with the below command

You must halt and disable the nginx service after installing it since we will use a supervisor to manage the nginx process.

You can stop and disable the nginx service with the following command:

Step 4- Create a conf file under the supervisor to serve nginx process

Now, for each service that you wish to manage, you must generate a separate configuration file. The following command will generate an nginx configuration file:

Add the following lines:

After adding the above lines to the file. Now save and close the file.

Next, tell the supervisor to know about the new config:

You should get below output

Next, tell the supervisor to update its configuration:

To verify whether the supervisor has started the nginx service or not run the below command

You should get the below output

To stop the nginx service run the below command

To start the nginx service run the below command

You can also verify the nginx process by the below command

For Magento 2 Elastic search, please follow the –

Our Cloudkul Blogs

Elasticsearch, Fluentd, and Kibana (EFK) 

Setting up Elasticsearch, Logstash, and Kibana for centralized logging

Managing and Monitoring Magento 2 logs with Kibana

Our store modules –

Magento 2 Elasticsearch

EFK Setup for Magento 2

You may also visit our Magento development services and quality  Magento 2 Extensions.

For further help or query, please contact us or raise a ticket.

Category(s) cloud ecommerce
. . .


Add Your Comment

Be the first to comment.

Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home