host file location

1. The application is deployed in the linux test environment, cannot be captured, java.net.UnknownHostException, but can be accessed locally,

It is not accessible under linux itself, you can directly write the ip address or modify the mapping of the host file

2.windows, host file location  C:\Windows\System32\drivers\etc\hosts 

  linux, file location /etc/hosts

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326768289&siteId=291194637