Including the old Chiang usually installed in the VPS host a certain environment, because of the different server IP problems, even the same service provider with a computer room, the IP address is different, at the same time wget a file when some of them will not download files. Or when we install a file program, the download speed is very slow through the wget.
There are two possible problems encountered, the first is our server DNS problem, connected to the need to download the file source impassability; The second is the source data problem, the server to our local very slow. The most direct way to meet this solution is to modify the current VPS server DNS, such as the old Chiang today in a server to install the volume of files, there are several can not get the file.
1, check the current server DNS
The code is as follows |
Copy Code |
/etc/resolv.conf
|
Looking at the current file, we might see something like this:
The code is as follows |
Copy Code |
NameServer 8.8.8.8
NameServer 8.8.4.4
|
We sometimes may not be this DNS, can be modified into this, if still not, the old Chiang on the use of Google DNS does not, then continue to find public DNS modification.
The code is as follows |
Copy Code |
Ali Public dns:223.5.5.5/223.6.6.6
Baidu Public dns:180.76.76.76
|
We can replace and execute the file download and compile according to our actual needs. Here I replaced the above Baidu public DNS to solve the problem.