KILL 80 PORT ON SERVER

How to kill 80 port on server:-

Run :-

       lsof -wni TCP:80

Then kill ps :-

       kill -9 ...

Or 
       sudo kill `sudo lsof -t -i:80`



When getting error :-

bind() to 0.0.0.0:80 failed (98: Address already in use)

Run that command on server for killing the port 80:    sudo fuser -k 80/tcp

When getting 404 error on server :-

        location / {
           root /var/deploy/pdm_expert/pdm/public;
        }


Popular posts from this blog

CARRIERWAVE - UPLOAD ANY MEDIA (AUDIO , VIDEO AND IMAGE ) FILE IN RAILS

SELECT COUNTRY WITH STATE AND IT'S CITIES RAILS

RAILS: UPLOADING PHOTOS VIA AMAZON S3 AND PAPERCLIP (UPLOADING FILES TO S3 IN RUBY WITH PAPERCLIP)

UNINITIALIZED CONSTANT PAPERCLIP::STORAGE::S3::AWS

CREATE API FOR USER SIGN UP, LOGIN AND CREATE PUBLISHER WITH CURRENT USER

HOW TO CALL RAILS API FROM SIMPLE HTML PAGE.

DEPLOYING PROJECT USING CAPISTRANO (CAPISTRANO IN RAILS)