Welcome! Log In Create A New Profile

Advanced

Re: nginx reload fails with [emerg] host not found in upstream

December 07, 2012 12:33AM
12/07 05:31[root@proxy2-prod-ue1 ~]# cat gethostbyname.c
#include <stdio.h>
#include <netdb.h>

int main(int argc, char *argv[])
{
if (argc != 2) {
printf("usage: %s [hostname]\n", argv[0]);
return 1;
}

struct hostent *lh = gethostbyname(argv[1]);

if (lh) {
puts(lh->h_name);
return 0;
} else {
herror("gethostbyname");
return 1;
}
}
12/07 05:31[root@proxy2-prod-ue1 ~]# gcc -o gethostbyname gethostbyname.c
12/07 05:31[root@proxy2-prod-ue1 ~]# ./gethostbyname webapp02c
webapp02c.prod.romeovoid.com
12/07 05:31[root@proxy2-prod-ue1 ~]# ./gethostbyname webapp02c.prod.romeovoid.com
webapp02c.prod.romeovoid.com
SubjectAuthorPosted

nginx reload fails with [emerg] host not found in upstream

groknautDecember 06, 2012 09:37PM

Re: nginx reload fails with [emerg] host not found in upstream

姚伟斌December 06, 2012 11:26PM

Re: nginx reload fails with [emerg] host not found in upstream

groknautDecember 07, 2012 12:33AM

Re: nginx reload fails with [emerg] host not found in upstream

groknautDecember 07, 2012 01:22AM

Re: nginx reload fails with [emerg] host not found in upstream

Ruslan ErmilovDecember 07, 2012 02:24AM

Re: nginx reload fails with [emerg] host not found in upstream

groknautDecember 07, 2012 05:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 156 on March 20, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready