Cloud server deployment web project super detailed steps Tencent Cloud Alibaba Cloud

  1. Purchase Alibaba Cloud server ECS, choose CentOS 7.6 operating system

  2. Schematic diagram of external users accessing instances in cloud servers

Insert picture description here

  1. Reset the password of the instance

Insert picture description here

  1. Set security group rules

Insert picture description here

  1. Create security groups and security group rules
    Insert picture description here

  2. Add an instance to the security group

Insert picture description here

Insert picture description here

  1. Use XShell and XFTP to connect to the remote instance

Insert picture description here

  1. Install JDK, MySQL, Tomcat, Nginx to the instance

Super detailed reference steps: Linux configuration JavaEE environment

  1. Package the project

Insert picture description here

Insert picture description here

Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here

  1. Pass http://[云服务器实例的ip地址]:8080/crud/, you can access the project from any location

  2. You can also upload the war directly to the cloud server and analyze it in Tomcat of the cloud server

  3. Use Nginx as a proxy server to access Tomcat projects

(1) Proxy configuration in Nginx configuration file,vim /usr/local/nginx/conf/nginx.conf

Insert picture description here

(2) Hot deployment of Nginx server,/usr/local/nginx/sbin/nginx -s reload

(3) Pass http://[云服务器实例的ip地址]/crud, you can access the project from any location

Guess you like

Origin blog.csdn.net/weixin_49343190/article/details/111657178