How to deploy a website to a cloud server

  1. 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.
  2. 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
  3. Packager. Use maven to package into a war package
  4. 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
  5. Check the firewall/security group of the server, whether it is opened correctly
  6. Login authentication
  7. Go offline and run sh shutdown.sh or kill the pid of tomcat in the bin directory of tomcat

Guess you like

Origin blog.csdn.net/weixin_44431128/article/details/129910435