Detailed steps for deploying Java Web project to alicloud server
Record the steps of deploying a web project to alicloud server
(using web project, alicloud server, xftp and xshell), please refer to and correct
1. Package the project to be deployed into war file format, which can be completed in MyEclipse and eclipse, as shown in the following figure:
2. Install xshell and xftp software
Briefly introduce the functions of these two software (please refer to Baidu related documents for details)
Xshell: connect to the remote server host through the network.
Xftp: it can transfer files between Linux, UNIX and windows.
3. Connect the remote host through xshell, as shown in the following figure
4. After the session is created, click Connect and the following information will be displayed, indicating that the connection is successful.
5. (xtfp does not need to log in. Just log in to xshell, find it in the second line of its directory, and create a new file transfer. The shortcut key is Carl + Alt + F)
The will be packed The war file and Tomcat are uploaded to the server. (note that Tomcat for Linux needs to be downloaded.),
And you need to The war file is placed in the webapps directory of Tomcat
6. Connect to the database and log in to the database successfully when the following contents appear (add the database and JDK customers, the specific operation is, and the information in this regard can be found on the Internet for reference)
7. The deployment is successful. Now start the login test
7.1 first, use the host IP: port number to test whether Tomcat is successfully installed.
7.2 then use (host IP: port number / project name) to check whether the project is successfully deployed.
If Tomcat is installed successfully but the project is not deployed successfully, please use the Linux command to enter the logs directory under Tomcat and use the command ll to view the directory,
Then use the command SZ Catalina Out generates a log file to check the error, as shown in the following figure
The author made an error here. The database name and password were entered incorrectly.
The above is the whole process of deploying the project. I hope it will help you in your study, and I also hope you can support programming tips.