Skip to content

Instantly share code, notes, and snippets.

@sun4lower
Created February 28, 2018 08:57
Show Gist options
  • Save sun4lower/93bc1ae91dced5af4a445a89450b3176 to your computer and use it in GitHub Desktop.
Save sun4lower/93bc1ae91dced5af4a445a89450b3176 to your computer and use it in GitHub Desktop.
nginx: [error] invalid PID number "" in "/var/run/nginx.pid"
pkill -9 nginx
nginx -c /etc/nginx/nginx.conf
nginx -s reload
@mortasoft
Copy link

Thanks!

@fizzrepo
Copy link

fizzrepo commented Oct 4, 2022

amazing 👍

@rodyx
Copy link

rodyx commented Oct 7, 2022

thx

@bjzkm
Copy link

bjzkm commented Jan 9, 2023

thank you

@jerrylau91
Copy link

thank you

@BerkayCalmaz
Copy link

Thanks!

@VladimirPlatun
Copy link

hello, can you help me with this issue?
root@Vlad:~# nginx -c /etc/nginx/nginx.conf
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

@cxytomo
Copy link

cxytomo commented Feb 5, 2024

hello, can you help me with this issue? root@Vlad:~# nginx -c /etc/nginx/nginx.conf nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

I got the same situation. But this time I run nginx -s reload successfully

@jeanComputerEngineer
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment