April 13, 2021

How to install and configure supervisor on Centos 7 to run Laravel Queue

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. It is used to control processes related to a project.

In this article, we would explain you how to configure supervisor daemon to run laravel queue. So let start with the installation process:-

Step 1:- Install the easy_install dependencies on your system.

easy_install supervisor

Step 2:- Enter the following command to install the supervisor on your system.

yum install supervisor

Now you have successfully installed supervisor on your centos 7 System.

Step 3:- Edit the supervisor configuration file which is located in the following directory.

vi /etc/supervisord.conf
command=php /path/to/app.com/artisan queue:work 
     command = path of the project queue work.
     stdout_logfile = path of the log directory where supervisor log files is created.

Step 4: To autorun on system bootup, enter the command as follows:-

systemctl enable supervisord

To restart the supervisord service run the following command:-

systemctl restart supervisord

Congrats, now you have successfully configured the supervisor daemon with laravel queue.

Vedant Singh

Linux System Administrator | Entrepreneur | Founder Techmion. I have started my career as a Linux system Administrator after that quit my job to start something new that excites me and started a Tech Company in order to provide the best technology to my clients. My Company website link: https://www.techmion.com/ For Bulk, SMS-Marketing follows the link : https://www.pingsms.in/

View all posts by Vedant Singh →

2 thoughts on “How to install and configure supervisor on Centos 7 to run Laravel Queue

Leave a Reply

Your email address will not be published. Required fields are marked *