Java Web project is deployed to Ali cloud server (ECS)

  Benpian essays just record bloggers for the first time to deploy their Java project to process approximately Ali cloud server details also refer to other blog posts.

  I. Project Description

  I am doing the project using maven project build tools to build code-share management system framework based SSM, the main function is to publish Bowen, of Bowen CRUD operations. . . So it can be considered entry-SSM project.

  Second, the domain name and ECS

  Because you want to publish their projects to the public Internet, so the first thought is to buy a domain name, then to the Ali cloud the official website to buy a domain name million net, the process is relatively simple: First registration Ali cloud account and related real name certification, real-name authentication information template console, of course, certification and it will not soon may take a day or two. ip address with the domain name after we want to resolve domain names, and domain name resolution requires two important things, one is the need for Ali cloud server (also may be a virtual host, lightweight application server), you need to Ali cloud server the recorded value of the domain name resolution, and the second is the need for filing service number, because we want to carry out public internet access with a country domain name (Hong Kong, overseas do not need), you need ICP record. The ICP record number required service record, service record number of more than three months need to have Ali cloud server application (so to receive one month of free soft son Ali cloud server with nothing), but here are mostly students party, Ali Clouds wing program, students party servers will be relatively much cheaper to buy. Ali cloud server purchase you need to consider configuration and operating system servers, in general we have chosen to do the development of Linux as the operating system (security, stability), under Linux there are many different systems (CentOS, Ubuntu), and so on, buy Ali cloud server after completing our view accordingly (public network ip, instance ID), etc. and record relevant information. Then the console is to configure your instance and configure security group rules, to reset the password. Finally, we can try to connect to a remote server cloud Ali, the connection through SSH, first connection note to remember a password. Then the next command is related to Linux, you can refer to other blog posts.

  Third, the configuration of Linux systems (JDK, Tomcat, Mysql)

  The three first thing to do is download the appropriate version under Linux system, and then transmitted through the archive software, I use Filezilla to upload files, using Xshell operate on the Linux system. Of course there are two functions integrated with software, such as MobaXterm, but the free version of this software is relatively unstable, the process appears more than once I disconnect and use file upload failure phenomenon. After the file upload is the solution for file compression, copied to the appropriate folder after decompression, then is to configure the environment variables, JDK and Tomcat need to configure the environment variables, and then unpacked Mysql the need for user groups and add users, mainly to feed safety, specifically management (usually named mysql) with a user for the file in the folder mysql, other safety systems to ensure as far as possible in the case of database security can not be fully guaranteed. After the project is finished configuring mysql deployed, I use maven, using maven install command to package the project into war after war package with filezilla to upload the package under the tomcat webapps folder, it will automatically unzip war, after which you can by the public network to test the connection. Mysql test after a successful connection can be connected with navicat mysql, of course, there are many details. . . I can not say here.

  IV Summary

  Probably because of the need before and after the domain name for the record two weeks, it can first be tested can be directly through the ip address. (I use is free month Ali cloud connectivity successful hhh). Finally, I do not know where Comments are welcome. Slip.

 

Guess you like

Origin www.cnblogs.com/ring2/p/11100137.html