Analysis of the project process in idea packaging and uploading to cloud service

Analysis of the project process in idea packaging and uploading to cloud service

one. First of all, you have to package it in idea.

I am using the springboot framework project

1. Start your own project first

There is a border on the far right of idea, click Maven

If the project has been packaged before, you can click clean to clean the previous cache, and then click package to package the project.

two. After packaging, we need our own cloud server

You can use SecureCRT or XShell plug-in to operate our Alibaba Cloud server.
Here I use XShell,
Before this, we need to have a good cloud service environment, a Java JDK environment, a MySQL database, and a Tomcat environment. Only after these environments are set up can we proceed to the next step of project deployment.

three. Before configuring the war package, idea packages the jar package for us.

Let's talk about the jar package first

We need to use the uploaded plugin on our cloud server using the command: yum install -y lrzsz
After downloading, use the command: rz Then find the jar or war package you want to deploy in the file and put it in the current directory and use: java -jar jar package name For example: java -jar cms111.jar
After compiling once, enter the port number set by our idea again to get the front-end web page, but we can't use it once to compile the background once, so we can create a file to store the compilation so that it will be automatically compiled every time we visit it. At this time, we need to use ps -ef | grep java
Let's check our compilation process.

There is a five-digit number after your user name before the jar process, which is its process number. Then use kill -9 process number to forcefully close the process. Use ps -ef | grep java again to confirm that the jar process does not exist, and then use nohup java -jar jar package name & command to create the nohup.out file to store the compilation file log! ! ! ! Do not drop the & in this command. At this time, our jar package is successfully deployed to the server

In the case of 3-2 war package, go to the webapps directory under your tomcat path and use yum install -y lrzsz to download the plug-in first.

Then rz select your war package file. After uploading successfully, the server will automatically compile it. That is success.

Summarize

This is the end of this article about the process analysis of idea packaging and uploading to cloud service projects. For more related idea packaging and uploading to cloud service content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install and configure GitLab on Ubuntu 20.04
  • Detailed tutorial on building Gitlab server on CentOS8.1
  • Solution to Gitlab Volume Permission Issues When Installing Windows Docker
  • How to quickly deploy Gitlab using Docker
  • How to install Gitlab with Docker
  • Centos7 uses docker to build gitlab server
  • How to upload a local idea project to GitHub (recommended)
  • A brief analysis of SpringBoot packaging and uploading to docker and implementing multi-instance deployment (IDEA version)
  • Illustration of the process of uploading IDEA project code to gitlab remote warehouse

<<:  react-beautiful-dnd implements component drag and drop function

>>:  How to add default time to a field in MySQL

Recommend

Graphical tutorial on installing CentOS 7.3 on VMWare

Illustrated CentOS 7.3 installation steps for you...

JavaScript to achieve digital clock effect

This article example shares the specific code of ...

Detailed explanation of Docker usage under CentOS8

1. Installation of Docker under CentOS8 curl http...

Use of docker system command set

Table of contents docker system df docker system ...

How to use jconsole to monitor remote Tomcat services

What is JConsole JConsole was introduced in Java ...

How to deploy tomcat in batches with ansible

1.1 Building the Directory Structure This operati...

Comparative Analysis of High Availability Solutions of Oracle and MySQL

Regarding the high availability solutions for Ora...

WeChat applet implements sorting function based on date and time

I recently took over a small program project, and...

Vue+js click arrow to switch pictures

This article example shares the specific code of ...

How to implement hot deployment and hot start in Eclipse/tomcat

1. Hot deployment: It means redeploying the entir...

What is em? Introduction and conversion method of em and px

What is em? em refers to the font height, and the ...

Detailed explanation of mysql integrity constraints example

This article describes the MySQL integrity constr...