Linux fully automated build, deployment management tools __linux

Source: Internet
Author: User
Overview

As a Java web Developer, it is time-consuming and laborious to manage a large number of Tomcat and Nginx instances of Linux on a purely manual, and an automated management software or script is essential.

Jenkins, as a convenient and powerful continuous integration tool, is being used by more and more development and testers, and it really improves the efficiency of our work. However, the power of Jenkins also brings a certain degree of problems, such as consuming a lot of CPU, memory, disk resources, inflexible and so on. Therefore, a lighter, cleaner, more targeted tool may be a better choice under limited resources.

This tool is completely written by the shell to solve the most common problems, suitable for all Linux platforms, almost no more resources, agile and fast. Permanent open Source Maintenance address: Https://github.com/zengnm/manager.git, welcome fork or Pat Bricks. first, the use of instructions function Characteristic:

Feature-rich, including automatic configuration, build, deployment, instance management, log management, war package backup, such as
centralized configuration, easy to manage
JDK, tomcat multiple version compatible
split build system, deployment system
support single Machine cluster deployment

In addition, all users can only interact with the manager two, before use 1. Install the necessary software software:

A. Install subversion or git so that svn and git can be executed at the current user. and configure the account password
    in CentOS using sudo yum install-y subversion git installation;
    Use sudo apt-get install-y subversion git installation in Ubuntu;
    Save the password after installation (such as Git in $HOME/.NETRC configuration), easy to follow up with.
B. When you build, you need

to install Jdk,maven C. When you deploy, you need to install Jdk,tomcat,nginx
2. Initialization configuration
A. Download script, Address: https://github.com/zengnm/manager/archive/master.zip, decompression.

B. Select or create a new user account such as admin (the script will be executed by that user and use the user to create the relevant document) and set to the username value in the manager;
  Adjust the value of variables such as Work,instance,source in the manager to set the location.

c. Switch to normal user such as admin, execute in script home directory:
    su Admin (may need to enter password)
    chmod u+x bin/manager
    bin/manager init (after initialization is completed, the $ HOME/.BASHRC file configuration path and automatic completion scripts.
d. Validation. In any directory, executing the manager, printing out the Help information indicates that the configuration is complete.
3. Application Configuration
Configure applications as required, including JDK, MAVEN, Tomcat environment variables, and application build, deployment configuration
Detailed requirements, you can refer to the template template.com
third, start to use
Manage automatic deployment, tomcat restart, log viewing, log deletion, and so on by using the following command:
    Manager [help|build|deploy|tomcat|logs|cleanlogs| ...]

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.