nginx erreur it didn't openSSH from external network refusedNew Server - apache will not serve outside LANIf you can send emails from server, but cannot configure desktop client, can you say SMTP is working?How to get access from nginx on host OS to files inside lxc-container?How to open ports?Apache can't start on UbuntuUnable to access remotely (LAMP issue)Apache2 error no listening sockets avaliableApache, problem Failed to start LSB: Apache2 web serverhow to login a remote host using SSH without a password?
Go Pregnant or Go Home
Modify casing of marked letters
apt-get update is failing in debian
How can I use the arrow sign in my bash prompt?
Generic lambda vs generic function give different behaviour
Increase performance creating Mandelbrot set in python
Is this Spell Mimic feat balanced?
Greatest common substring
Personal Teleportation as a Weapon
Is the destination of a commercial flight important for the pilot?
Will it be accepted, if there is no ''Main Character" stereotype?
What would be the benefits of having both a state and local currencies?
The plural of 'stomach"
Opposite of a diet
Applicability of Single Responsibility Principle
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
What is the oldest known work of fiction?
Why Were Madagascar and New Zealand Discovered So Late?
How does residential electricity work?
Teaching indefinite integrals that require special-casing
Products and sum of cubes in Fibonacci
Failed to fetch jessie backports repository
Bash method for viewing beginning and end of file
Efficiently merge handle parallel feature branches in SFDX
nginx erreur it didn't open
SSH from external network refusedNew Server - apache will not serve outside LANIf you can send emails from server, but cannot configure desktop client, can you say SMTP is working?How to get access from nginx on host OS to files inside lxc-container?How to open ports?Apache can't start on UbuntuUnable to access remotely (LAMP issue)Apache2 error no listening sockets avaliableApache, problem Failed to start LSB: Apache2 web serverhow to login a remote host using SSH without a password?
please nginx in my server did start please follow me
root@s45-****:/home/arabico# nmap 45.****
PORT STATE SERVICE
22/tcp open ssh
5/tcp open smtp
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-****:/home/arabico# sudo service apache2 stop
* Stopping web server apache2 *
root@s45-****:/home/arabico# nmap 45.****
Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-05 19:33 MST
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-***:/home/arabico# sudo service nginx restart
* Restarting nginx nginx
[fail]
root@s45-***:/home/arabico# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
root@s45***:/home/arabico# sudo nginx
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
how to let it start please
networking server ssh apache2 nginx
add a comment |
please nginx in my server did start please follow me
root@s45-****:/home/arabico# nmap 45.****
PORT STATE SERVICE
22/tcp open ssh
5/tcp open smtp
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-****:/home/arabico# sudo service apache2 stop
* Stopping web server apache2 *
root@s45-****:/home/arabico# nmap 45.****
Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-05 19:33 MST
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-***:/home/arabico# sudo service nginx restart
* Restarting nginx nginx
[fail]
root@s45-***:/home/arabico# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
root@s45***:/home/arabico# sudo nginx
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
how to let it start please
networking server ssh apache2 nginx
What exactly are you asking?
– spacegeek224
Jun 6 '15 at 3:05
it didn'y work how to let it start
– user14576
Jun 6 '15 at 3:19
add a comment |
please nginx in my server did start please follow me
root@s45-****:/home/arabico# nmap 45.****
PORT STATE SERVICE
22/tcp open ssh
5/tcp open smtp
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-****:/home/arabico# sudo service apache2 stop
* Stopping web server apache2 *
root@s45-****:/home/arabico# nmap 45.****
Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-05 19:33 MST
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-***:/home/arabico# sudo service nginx restart
* Restarting nginx nginx
[fail]
root@s45-***:/home/arabico# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
root@s45***:/home/arabico# sudo nginx
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
how to let it start please
networking server ssh apache2 nginx
please nginx in my server did start please follow me
root@s45-****:/home/arabico# nmap 45.****
PORT STATE SERVICE
22/tcp open ssh
5/tcp open smtp
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-****:/home/arabico# sudo service apache2 stop
* Stopping web server apache2 *
root@s45-****:/home/arabico# nmap 45.****
Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-05 19:33 MST
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
root@s45-***:/home/arabico# sudo service nginx restart
* Restarting nginx nginx
[fail]
root@s45-***:/home/arabico# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed
root@s45***:/home/arabico# sudo nginx
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
how to let it start please
networking server ssh apache2 nginx
networking server ssh apache2 nginx
edited Jun 6 '15 at 3:55
user14576
asked Jun 6 '15 at 2:42
user14576user14576
101118
101118
What exactly are you asking?
– spacegeek224
Jun 6 '15 at 3:05
it didn'y work how to let it start
– user14576
Jun 6 '15 at 3:19
add a comment |
What exactly are you asking?
– spacegeek224
Jun 6 '15 at 3:05
it didn'y work how to let it start
– user14576
Jun 6 '15 at 3:19
What exactly are you asking?
– spacegeek224
Jun 6 '15 at 3:05
What exactly are you asking?
– spacegeek224
Jun 6 '15 at 3:05
it didn'y work how to let it start
– user14576
Jun 6 '15 at 3:19
it didn'y work how to let it start
– user14576
Jun 6 '15 at 3:19
add a comment |
3 Answers
3
active
oldest
votes
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
From the error message this seems ipv6 is disabled on your server.
Edit nginx default server configuration and changed it to listen on ipv4 only or enable ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
add a comment |
just i deleted this line
listen [::]:80 default_server ipv6only=on;
from
/etc/nginx/sites-available/default
and it works :D
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
add a comment |
Thanks for mentioning ipv6.
In my case, I got a line in nginx conf of
proxy_pass http://localhost:3028/;
The problem happened when I disable ipv6 in the kernel config. Reenabling ipv6 can solve the problem, but it is not what I want.
the solution is delete
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
in /etc/hosts
.
so the localhost will alway follow the default ipv4 target, which is 127.0.0.1
.
Just deleting the ::1
line could be enough. Since ipv6 is totally disabled, I would delete all of them.
Changing the localhost
in nginx config to 127.0.0.1
may solve this problem as well.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f632874%2fnginx-erreur-it-didnt-open%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
From the error message this seems ipv6 is disabled on your server.
Edit nginx default server configuration and changed it to listen on ipv4 only or enable ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
add a comment |
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
From the error message this seems ipv6 is disabled on your server.
Edit nginx default server configuration and changed it to listen on ipv4 only or enable ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
add a comment |
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
From the error message this seems ipv6 is disabled on your server.
Edit nginx default server configuration and changed it to listen on ipv4 only or enable ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
From the error message this seems ipv6 is disabled on your server.
Edit nginx default server configuration and changed it to listen on ipv4 only or enable ipv6.
listen 80 default_server;
# comment to disable ipv6
# listen [::]:80 default_server;
answered Jun 6 '15 at 4:23
moonstruckmoonstruck
30127
30127
add a comment |
add a comment |
just i deleted this line
listen [::]:80 default_server ipv6only=on;
from
/etc/nginx/sites-available/default
and it works :D
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
add a comment |
just i deleted this line
listen [::]:80 default_server ipv6only=on;
from
/etc/nginx/sites-available/default
and it works :D
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
add a comment |
just i deleted this line
listen [::]:80 default_server ipv6only=on;
from
/etc/nginx/sites-available/default
and it works :D
just i deleted this line
listen [::]:80 default_server ipv6only=on;
from
/etc/nginx/sites-available/default
and it works :D
edited Jun 6 '15 at 14:34
answered Jun 6 '15 at 12:57
user14576user14576
101118
101118
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
add a comment |
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
I did the same and it also works. But can anyone explain why the default config did not work?
– Loredra L
Nov 16 '18 at 13:08
add a comment |
Thanks for mentioning ipv6.
In my case, I got a line in nginx conf of
proxy_pass http://localhost:3028/;
The problem happened when I disable ipv6 in the kernel config. Reenabling ipv6 can solve the problem, but it is not what I want.
the solution is delete
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
in /etc/hosts
.
so the localhost will alway follow the default ipv4 target, which is 127.0.0.1
.
Just deleting the ::1
line could be enough. Since ipv6 is totally disabled, I would delete all of them.
Changing the localhost
in nginx config to 127.0.0.1
may solve this problem as well.
add a comment |
Thanks for mentioning ipv6.
In my case, I got a line in nginx conf of
proxy_pass http://localhost:3028/;
The problem happened when I disable ipv6 in the kernel config. Reenabling ipv6 can solve the problem, but it is not what I want.
the solution is delete
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
in /etc/hosts
.
so the localhost will alway follow the default ipv4 target, which is 127.0.0.1
.
Just deleting the ::1
line could be enough. Since ipv6 is totally disabled, I would delete all of them.
Changing the localhost
in nginx config to 127.0.0.1
may solve this problem as well.
add a comment |
Thanks for mentioning ipv6.
In my case, I got a line in nginx conf of
proxy_pass http://localhost:3028/;
The problem happened when I disable ipv6 in the kernel config. Reenabling ipv6 can solve the problem, but it is not what I want.
the solution is delete
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
in /etc/hosts
.
so the localhost will alway follow the default ipv4 target, which is 127.0.0.1
.
Just deleting the ::1
line could be enough. Since ipv6 is totally disabled, I would delete all of them.
Changing the localhost
in nginx config to 127.0.0.1
may solve this problem as well.
Thanks for mentioning ipv6.
In my case, I got a line in nginx conf of
proxy_pass http://localhost:3028/;
The problem happened when I disable ipv6 in the kernel config. Reenabling ipv6 can solve the problem, but it is not what I want.
the solution is delete
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
in /etc/hosts
.
so the localhost will alway follow the default ipv4 target, which is 127.0.0.1
.
Just deleting the ::1
line could be enough. Since ipv6 is totally disabled, I would delete all of them.
Changing the localhost
in nginx config to 127.0.0.1
may solve this problem as well.
edited 2 mins ago
answered 7 mins ago
aGueguaGuegu
1011
1011
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f632874%2fnginx-erreur-it-didnt-open%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What exactly are you asking?
– spacegeek224
Jun 6 '15 at 3:05
it didn'y work how to let it start
– user14576
Jun 6 '15 at 3:19