Block
Are you looking to get certified in DevOps, SRE and DevSecOps?
DevOps
Get Certified!
SRE
Ahead from others!
DevSecOps
Security is Key
Kubernetes
Tomorow's Platform!

How to run php artisan queue:listen in background on Ubuntu or Linux machine

Steps:
1. Login to ubuntu machine using putty or any other ssh client
2. Run command: sudo -s
3. Run command: cd /opt/lamp/htdocs/<Laravel project directory name>
4. Run command: sudo vi start-laravel-project-name-queue.sh
5. Click “i” for insert mode
6. Type: php artisan queue:listen
7. Press ESC button to exit from insert mode
8. Press :wq
9. Now run command: nohup start-laravel-project-name-queue.sh /dev/null &

Now even if you logout from the ubuntu putty session the queue remains running

Chetan