Would like to ask you a question, I in the deployment SpringBoot applied to ali cloud server, mysql and why yml file redis not fill localhost and 127.0.0.1, must fill in this instance only public IP connection, mysql and redis is installed in this instance
CodePudding user response:
Problems setting up the system, cannot parse localhost
CodePudding user response:
refer to the original poster realheyu response: would like to ask you a question, I'm in the deployment SpringBoot applied to ali cloud server, mysql and why yml file redis not fill localhost and 127.0.0.1, must fill in this instance only public IP connection, mysql and redis is installed in this instance Localhost or 127.0.0.1 are local unless you again ali directly open the browser on the server, otherwise you have to enter the server address, CodePudding user response:
Look at the DNS file CodePudding user response:
refer to the second floor qq_39936465 response: Quote: refer to the original poster realheyu response: would like to ask you a question, I'm in the deployment SpringBoot applied to ali cloud server, mysql and why yml file redis not fill localhost and 127.0.0.1, must fill in this instance only public IP connection, mysql and redis is installed in this instance Localhost or 127.0.0.1 are local unless you again ali directly open the browser on the server, otherwise you have to enter the server address, I mean, SpringBoot jars and mysql is running on the server in the same ali cloud, it should be the same environment, so yml file inside the database link fill localhost or 127.0.0.1, program should be able to connect on mysql, but the problem is to fill up public IP to connect CodePudding user response:
reference 4 floor realheyu response: I mean, SpringBoot jars and mysql is running on the server in the same ali cloud, it should be the same environment, so the database links inside the yml file fill localhost or 127.0.0.1, program should be able to connect on mysql, but the problem is to fill up public IP to connect Localhost is pointing in the direction you are using PC itself, if you use the PC request localhost will point you request of PC, so the localhost is variable, 127.0.0.1 is also in the same way, so of course you use other PC request localhost will automatically become your PC's IP, this request will fail, localhost can't literally, CodePudding user response:
Is this your DNS server configuration information has a problem, can't resolve CodePudding user response:
The host change try CodePudding user response:
Mysql driver problem, 127.0.0.1 compared commonly insurance,