Skip to content

Instantly share code, notes, and snippets.

@sofish
Created July 2, 2012 14:41
Show Gist options
  • Save sofish/3033570 to your computer and use it in GitHub Desktop.
Save sofish/3033570 to your computer and use it in GitHub Desktop.
nginx -s stop
~  nginx
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] still could not bind()
➜  ~  sudo nginx -s stop
Password:
➜  ~  curl http://localhost:8080
<html>
<head>
<title>Welcome to nginx!</title>
</head>
<body bgcolor="white" text="black">
<center><h1>Welcome to nginx!</h1></center>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment