Jrebel Remote Thermal Deployment Springboot Tutorial __java

Source: Internet
Author: User
Content Introduction

Jrebel has two very cool features, one is to support hot deployment, and the other is to support remote thermal deployment. See Jrebel characteristic specifically.

The content of this article is to record the setup process of my remote thermal deployment. Environment Description Server is CentOS 7 64 bits. The local computer is WIN10, IntelliJ Idea,jrebel has been installed and activated. There is a springboot project. Steps

To achieve a remote hot deployment, we need to do a few simple steps:
1. Install a jrebel on the server
2. Configure the local Jrebel
3. Start the project with Jrebel on the server
4. Local Add remote server install a jrebel on the server

Website Download the latest Jrebel, click the official website link

The latest version is 2018.1.0, click on the file name of the file column in the above image to download. The version here is standalone, which is independent, Jrebel currently has two versions, one is dependent on the IDE, one is independent, we need to install a stand-alone version of the server.

Unzip the download good zip
Unzip Jrebel-2018.1.0-nosetup.zip
If you are prompted to command not found, install unzip
Yum Install unzip
As shown in figure:

Activate Jrebel
I am here to use Activation code to activate, call the bin directory under the activate.sh to keep up with activation code can be.

Other activation methods Please check the official website, click to enter, as shown:

Set the server password
Java-jar Jrebel.jar-set-remote-password
Configure the local Jrebel

Set Jrebel startup to Run on a remote server or VM, as shown in figure:

View-> Tool Windows-> JRebel into the JRebel panel window , which will generate Rebel.xml and Rebel-remote.xml, as shown in figure:

Use the MAVEN Package command to package and generate Baba-0.0.1-snapshot.jar, as shown in figure:

Open the jar to see the jrebel generated Rebel.xml and Rebel-remote.xml

Upload jar to server to start Project with Jrebel on server

Go to the directory where the Jar is located, run the command startup project


Nohup java "-agentpath:/usr/common/jrebel/lib/libjrebel64.so"-drebel.remoting_plugin=true-jar Baba-0.0.1-snapshot.jar &

-agentpath:/usr/common/jrebel/lib/libjrebel64.so fragment of the/usr/common/jrebel for you to install the Jrebel path

PS: Detailed configuration content, click Visible

View the log file, as shown in the diagram shows successful operation

add a remote server locally

The port of the Server URL is a Web port, and clicking Test Connection shows Connection successfulas shown in the figure.

Next all configuration complete, try

Reference: http://manuals.zeroturnaround.com/jrebel/remoteserver/index.html

Above.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.