Just installed nginx and now having bind error - address already in use
Look either into
- your
nginx.conf
file - or any of the sites in
sites-enabled
(usually under thenginx
directory)
and search the server
part, listen
server { listen 80;
here you can change the port for 81 for instance instead of 80.
Notes:
- you may also have the
server { listen }
part within yournginx.conf
directly - if you are under Linux, the configuration is usually in
/etc/nginx
(nginx.conf) andsites-enabled
is below that directory. - regarding Apache (Linux), using either
service apache stop
orservice httpd stop
or/etc/init.d/apache stop
(or httpd) should work to stop the process, or trykillall httpd
orkillall apache
(or apache2) to stop Apache.