Nginx can't change ip.

when you start nginx directly, it shows listening 0.0.0.0server_name 80
and then I change it to the ip, of the server at server_name and the result shows: failed (99: Cannot assign requested address)

what is the problem? thank you

Mar.03,2021

the IP set must be native. You can find all the IP of the machine by using the following command

ip address
Menu