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

How to fix the width of table in ie8 and chrome

When the above settings are used in IE8 and Chrome...

JavaScript functional programming basics

Table of contents 1. Introduction 2. What is func...

30 excellent examples of color matching in web design

Today, this article has collected 30 excellent cas...

The process of using vxe-table to make editable tables in vue

There is a table in the project that needs to be ...

How MySQL handles implicit default values

Some students said that they encountered the prob...

HTML+CSS to implement the sample code of the navigation bar drop-down menu

Effect The pictures in the code can be changed by...

Tutorial on how to remotely connect to MySQL database under Linux system

Preface I recently encountered this requirement a...

Install Windows Server 2019 on VMware Workstation (Graphic Tutorial)

If prompted to enter a key, select [I don’t have ...

9 Practical CSS Properties Web Front-end Developers Must Know

1. Rounded Corners Today's web designs are con...

How to load Flash in HTML (2 implementation methods)

First method : CSS code: Copy code The code is as ...

Detailed explanation of mysql basic operation statement commands

1. Connect to MySQL Format: mysql -h host address...

How to detect Ubuntu version using command line

Method 1: Use the lsb_release utility The lsb_rel...

HTML tag marquee realizes various scrolling effects (without JS control)

The automatic scrolling effect of the page can be...