Linux deploys the WebService service and starts the error bindexception: cannot assign requested address
code
Question
The windows local test is normal. When it is deployed to the Linux server, an error is reported when it is started: BindException: Cannot assign requested address
Cause of problem
There is a problem with the IP in the URL. If Alibaba cloud and other cloud servers are used, you need to check the address of the network card eth0, and then change the IP in the URL to the IP of eth0
if not, check whether the IP of eth0 is configured or not in /etc/hosts. If not, add: IP + hostname
if you do not know the hostname, you can use the hostname command to check. If not, vim /etc/hosts, and then insert the data: IP hostname. Note that there is a space in the middle
Finally, when accessing WebService, the service can be accessed through public IP
Read More:
- Linux: Configure Network address through Netplan
- [Solved] Win10 and Linux address reading format is different (CV2. Error: opencv (4.2.0)/Io/opencv…)
- Linux Error: bind error: Address already in use [How to Solve]
- linux(aarch64): How to Fix kettle Startup Error Issue
- [Solved] Linux startup jar package error: Communications link failure
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- [Solved] Linux virtual machine startup error: operating system not found
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- How to set fixed IP address for Raspberry Pie
- How to Solve Oracle startup monitoring error
- [Solved] configure: error: udev support requested but libudev header not installed
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- [Solved] Linux ECDSA key Error: Host key verification failed
- [Nginx] Solve the problem of being blocked by CORS policy: No’Access-Control-Allow-Origin’ header is present on the requested resource.
- Git Push Error: error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
- [Solved] SSH Error: ECDSA host key for xxx has changed and you have requested strict checking.
- Solution of device eth0 does not see to be present, delaying initialization. Error in network card under Linux
- [Solved] Error: listen EADDRINUSE: address already in use :::5000
- Linux: How to Solve Rabbitmq Plug-in Install Error