Site deployment in the Linux environment, called The Weather Forecast URL page function, the intranet can be normal display, but the external network cable deployment after the lack of display, re-set Nginx view Tomcat, replace the new project package, can not solve its problems, will iptable off after debugging, still no fruit.
The program calls its domain name, presumably guessing the configuration problem ....
Ping www.webxml.com.cn its domain name under Linux, resulting in a problem. Reported Ping Uknown host www.webxml.com.cn, originally the Linux domain name setting problem. At first I never thought of this. Always look for problems from your program code.
vi/etc/hosts, added 127.0.0.1 www.webxml.com.cn in the inside, No. Compared to other servers, no content is blank in/etc/resolv.conf, adding
NameServer 221.7.92.98
NameServer 221.5.203.98
Search Localdomain
and remove/etc/hosts 127.0.0.1 www.webxml.com.cn.
Linux cannot automatically resolve domain names. or my domain name server is not set. Not related to Nginx and Tomcat configurations and programs
Search the web for Linux domain name server settings:
From: http://www.linuxidc.com/Linux/2007-03/2669.htm
Located in the/etc directory are:
Hosts,host.conf,resolv.conf,named.boot,named.conf.
1, "hosts" file, defines the hostname and IP address of the corresponding, there will be running DNS this computer's IP address and host name. Content:
127.0.0.1 localhost.localdomain localhost
2, "host.conf" file [Boban Note: Originally mistakenly written hosts.conf], "order hosts bind" statement, specifies the host name of the resolution sequence is first to find in the hosts, and then to the DNS server records to find. "Multi on" allows a host name to correspond to multiple IP addresses. Content:
Order hosts, bind
Multi on
Nospoof on
3, "resolv.conf" file, "nameserver *.*.*.*" specifies the address of the DNS server. Note that this file is essential for normal non-DNS server computers (non-Windows systems; Windows systems are set in "Network Properties"). You must specify the address of a DNS server if you are not setting up this machine as a DNS server and you are able to resolve the domain name again. You can write up to three addresses as a candidate DNS server for the previous failure. File contents:
Set the resovl.conf file to:
Unicom
Search Localdomain
NameServer 221.7.92.98
NameServer 221.5.203.98
Telecom
Search Localdomain
NameServer 61.128.128.68
NameServer 8.8.8.8
http://blog.csdn.Net/tangmin0719/article/details/4066054
Http://blog.163.com/[email protected]/blog/static/150309229201110395052163/
Http://www.linuxidc.com/Linux/2007-03/2669.htm
http://blog.csdn.net/chen3888015/article/details/7692150
This article is from the cloud blog, so be sure to keep this source http://weimouren.blog.51cto.com/7299347/1874967
Self-built web site calls to other partner domain name resolution problem handling