- In the MySQL of the cloud server, create a database and a table. Use mysql -uroot to open the database client, and copy and execute the previously written db.sql.
- Fine-tune native code. The local database, port number, user name, and password may be different. The cloud server database has no password by default
- Packager. Use maven to package into a war package
- Copy the packaged war package to the web apps directory under tomcat under the cloud server. Remember to start the tomcat server [sh startup.sh in the bin directory]. You can use netstat to verify whether tomcat has started successfully
- Check the firewall/security group of the server, whether it is opened correctly
- Login authentication
- Go offline and run sh shutdown.sh or kill the pid of tomcat in the bin directory of tomcat
How to deploy a website to a cloud server
Guess you like
Origin blog.csdn.net/weixin_44431128/article/details/129910435
Recommended
Ranking