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
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-1
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-2
Latest posts by Chetan (see all)
- MyHospitalNow.com – PROD | Clean all patient user and related quote, bid and file data - March 21, 2020
- Sending Email with attachments in Laravel 5.5 using and PHP & JQuery - February 20, 2020
- How to run php artisan queue:listen in background on Ubuntu or Linux machine - February 6, 2020