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?













7















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










share|improve this question
























  • 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















7















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










share|improve this question
























  • 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













7












7








7


1






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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










3 Answers
3






active

oldest

votes


















9














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;





share|improve this answer






























    6














    just i deleted this line



    listen [::]:80 default_server ipv6only=on;



    from



    /etc/nginx/sites-available/default
    and it works :D






    share|improve this answer

























    • 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


















    0














    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.





    share
























      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
      );



      );













      draft saved

      draft discarded


















      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









      9














      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;





      share|improve this answer



























        9














        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;





        share|improve this answer

























          9












          9








          9







          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;





          share|improve this answer













          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;






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 6 '15 at 4:23









          moonstruckmoonstruck

          30127




          30127























              6














              just i deleted this line



              listen [::]:80 default_server ipv6only=on;



              from



              /etc/nginx/sites-available/default
              and it works :D






              share|improve this answer

























              • 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















              6














              just i deleted this line



              listen [::]:80 default_server ipv6only=on;



              from



              /etc/nginx/sites-available/default
              and it works :D






              share|improve this answer

























              • 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













              6












              6








              6







              just i deleted this line



              listen [::]:80 default_server ipv6only=on;



              from



              /etc/nginx/sites-available/default
              and it works :D






              share|improve this answer















              just i deleted this line



              listen [::]:80 default_server ipv6only=on;



              from



              /etc/nginx/sites-available/default
              and it works :D







              share|improve this answer














              share|improve this answer



              share|improve this answer








              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

















              • 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











              0














              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.





              share





























                0














                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.





                share



























                  0












                  0








                  0







                  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.





                  share















                  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.






                  share













                  share


                  share








                  edited 2 mins ago

























                  answered 7 mins ago









                  aGueguaGuegu

                  1011




                  1011



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                      Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                      Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»