Home > Back-end >  Help: web project deployment to the cloud server problem... Strives for the bosses
Help: web project deployment to the cloud server problem... Strives for the bosses

Time:09-29

Rent a tencent domain and cloud servers, want to do your own web project launch, at present I don't have local tomcat project operation problem, but the war file copy to the cloud server tomcat - webapp, at 500, my judgment is not connected to the database, there are a few problems would like to ask:
1, configure a JDBC: bd. The properties of localhost in the url is in the war play packages before public IP will be changed?
2, the sources said the cloud server the tomcat server. The XML to all the localhost except the last one to public IP, whether really need?
3, the war file to the server release tomcat this what should pay attention to the pit? At first, I also met a maven project after war file no. XML and. The properties of the problem,
4, the browser on the screenshots paid, I currently use localhost, into a public IP cannot display completely, I once suspected to be a cloud server database access is not enough, I use of database roles and root, the host where I changed to %, this should be any IP,

Also a great god, please help me to answer, showed several links to myself is also good,
New, still in learning, to code, but the IDEA of education account just out of a problem,

CodePudding user response:

Localhost access is the machine, do you still use localhost deployed to the server where unless it's database is deployed on the server, so the url you use deployed database which server IP or domain name

CodePudding user response:

First of all, the database connection address is correct, if you use localhost is the connection, then you are database project deployment server?
If the above link address is correct, and that is screening the database account password if there is a problem

CodePudding user response:

Cloud server service is linx system or Windows, see how the address you entered is localhost, you have the domain name, made the nginx proxy, you deploy the project on mapping path, through the domain name to go,

CodePudding user response:


Database address should be no problem, because I'm on the run is no problem, plane mysql connector - Java - 8.0.16 mysql8, cloud server version are consistent,
Cloud server is winserver2016, my understanding is this: I'm on cloud server database, whether it's no use localhost, now only need to map the path of the deployment project can, bd. Don't have to change the properties of localhost in the url?

CodePudding user response:

Spring the boot is not support profile, you can make a few properties file, have a plenty of the dev, some prod, you up the project and launch parameters specify the corresponding profile

CodePudding user response:

Just as wrong, bd. The properties of localhost in the url, or to change
  • Related