Saturday, October 1, 2016

Installing, Configuring, Starting, & Stopping Supervisord on Amazon EC2 Server For Laravel

First of all, login into your amazon account by opening "https://aws.amazon.com/console" as shown below :

Then put your username and password... :D.... After logging, open service, choose EC2 :

Hit on "Instances" link :

On this page, you see all of your available EC2 service, then choose one of them to install supersord and then copy it's public DNS to be used for loggin in putty... :D

Next... Open putty.exe

Then open "Auth" as pointen green arrow above, then put your amazon private key :
Okiee... After that back to main putty screen, just hit "Open" button

After successfully login with putty, you'll gonna see a main screen like this :
Then let's install supervisor by using this command :
"sudo easy_install supervisor"
After that go to /usr/local/bin, open "echo_supervisord_conf" with this command :
"./echo_supervisord_conf"
Copy the content of echo_supervisord_conf, then create another file on /etc/ directory, this file called for example "laravel-worker-supervisor.conf"... mmm... for copying the content of echo_supervisord_conf, mark these lines :


then hit "SHIFT + CTRL + C" on your keyboard for copying the content and then type "sudo nano /etc/laravel-worker-supervisor.conf" for creating a new file and opening the file. After type hit "CTRL + V" for saving our copied text before from echo_supervisord_conf. Now our laravel-worker-supervisor.conf should be looked like this :

Okiee... Save this file "CTRL + X" then type "y"....

Go to the next Part...

No comments:

Post a Comment