Showing posts with label nginx. Show all posts
Showing posts with label nginx. Show all posts

23 May 2025

Debian Nginx Port 80 Already in Use Problem and Solution

 In Debian operation system, when using nginx web server, we can get port 80 already in use error.

And this prevents system restart.

Solution is to list all processes that use port 80 and kill each of them.

Connect to your server via SSH.

And they the command below:

sudo netstat -tulpn

This command will list 

sudo netstat

And kill each process with the PID number on the right with using the command below:

sudo kill -2 <PID>

And restart the nginx

sudo service nginx restart

Now your webserver will work as usual.



29 August 2016

Update Nginx Commands

Nginx is the fastest web server which is started to used widely.
Several cloud platforms let us to install and manage nginx on cloud virtual machines.
Sometimes important security updates are published.
We need to update our web server to stay up to date.
Here is the simple commands to update nginx on cloud platforms.

sudo apt-get update         # Fetch the list of available updates
sudo apt-get dist-upgrade   # Install the updates


Than a restart may required.

sudo service nginx restart