Welcome! Log In Create A New Profile

Advanced

RE: Can someone explain me why "curl: (7) Failed to connect to 127.0.0.1 port 2000: Connection refused" ?

Reinis Rozitis
May 13, 2020 08:04AM
> Subject: Can someone explain me why "curl: (7) Failed to connect to
> 127.0.0.1 port 2000: Connection refused" ?
>
> Hi!,
>
> I do not understand why it says "curl: (7) Failed to connect to 127.0.0.1 port
> 2000: Connection refused" :
> curl -X POST -F 'first_name=pinco' -F 'last_name=pallo' -F
> 'company_name=Company' -F 'email=pinco.pallo@company.com' -F
> 'tel=111111111'
> 127.0.0.1:2000/puser/add curl: (7) Failed to connect to 127.0.0.1 port 2000:
> Connection refused.
>
> In server-gorillamux.go : CONN_PORT = "2000"


Is the go application/server running?


Since the nginx doesn't listen on 2000 port (and only proxies the connections to backend) it's important that the backend is up.

rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

RE: Can someone explain me why "curl: (7) Failed to connect to 127.0.0.1 port 2000: Connection refused" ?

Reinis Rozitis May 13, 2020 08:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready