Software⏱️ 2 min read📅 2026-05-31
How to Fix: nginx - nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx error address already in use
Quick Answer: Check if another process is using port 80 and try to restart nginx with the -s reload option instead of -s stop.
📋 Table of Contents
All of a sudden, you're getting the below nginx error: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use). This occurs when another process is using port 80 and prevents nginx from starting.
🛑 Root Causes of the Error
- Another process is using port 80.
🛠️ Step-by-Step Verified Fixes
Method 1: Checking and Stopping Other Processes Using Port 80
- Step 1: Use the
netstat -tlnp | grep 80command to identify which process is using port 80.
Method 2: Stopping and Restarting Nginx
- Step 1: Stop the current nginx process by running
sudo service nginx stop(ornetstopon Windows).
Method 3: Using Systemd to Manage Nginx
- Step 1: Use the
sudo systemctl stop nginxcommand (on Linux) ornetstop(on Windows).
💡 Conclusion
By identifying and stopping the process using port 80, you should be able to resolve the error and get your nginx server up and running again.
❓ Frequently Asked Questions
Another process is using port 80.
Step 1: Use the netstat -tlnp | grep 80 command to identify which process is using port 80.
Step 1: Stop the current nginx process by running sudo service nginx stop (or netstop on Windows).
Step 1: Use the sudo systemctl stop nginx command (on Linux) or netstop (on Windows).
By identifying and stopping the process using port 80, you should be able to resolve the error and get your nginx server up and running again.
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat