Linux: Multi-Tomcat service, uniform installation and deployment of uniydeploy0.2, hadoop installation and deployment

Source: Internet
Author: User

Linux: Multi-Tomcat service, uniform installation and deployment of uniydeploy0.2, hadoop installation and deployment

: UnifyDeploy0.1

UnifyDeploy0.2

 

1 Introduction

With the increasing number of services for JAVA-based development projects, configuration files are even more dazzled. I don't know how much time is wasted due to configuration problems, or how many problems have occurred due to configuration problems. Multiple servers are switched back and forth. If the service needs to be dependent, the startup is even more problematic.

1.1 Purpose

One-time modification and uniform installation; simple operation, practical and efficient.

Range: 1.2

The scope of use of this project includes:

  • JAVA-based development project
  • Wide range of project-related services
  • Service Startup dependency

1.3 readers

Readers of this requirement specification or other stakeholders include the platform Director, product manager, Project Director, Project Manager, developer, tester, and user experience designer.

2. Overall project description

2.1 Overall system function framework

2.2 System Function list

No.

Module

Function

Description

UnifyDeploy_0.1

Exec

Build trust and initial commands

Initial

UnifyDeploy_0.2

Tools

Service provision and service list

Scan the list of provided services to obtain configuration information

UnifyDeploy_0.3

Conf

Automatically obtain the configuration to be modified

Automatic Generation

UnifyDeploy_0.4

Bin

Execute scripts

Provides total execution and a single execution script

UnifyDeploy_0.5

New

Store the modified configuration file

It is inversely proportional to the bak reserved File

UnifyDeploy_0.6

Bak

Store the original configuration file

Easy Problem Analysis

UnifyDeploy_0.7

Temp

Store temporary files

Temporary files will be deleted in time without any redundant parts

UnifyDeploy_0.8

Workapp

Store war packages

Upload war package

 

3. Function Description

3.1 obtain the configuration file

It is very easy to obtain the configuration file through the system. You only need to provide the service list, and you do not need to perform other operations. The service list is as follows:

 

Name ip serve service name 192.168.0.1/home/tomcat _ service name 192.168.1.2/home/tomcat _ service name 192.168.1.2/home/tomcat _ service name

 

Glossary:

Name: Service name, which must be the same as the war package name. Ip: the ip address of the server. Serve: Tomcat deployment path.

 

Execute the script, "... /unifyDeploy/conf automatically generates the configuration file to be modified by the user. The configuration file is generated after filtering. Therefore, no matter how many files need to be configured for a service, only one file is generated here to facilitate modification and management.

 

3.2 automated and unified installation and deployment

Automated and unified installation and deployment, including uploading and extracting war packages, synchronous configuration, startup services, and monitoring services.

list.sh  one.sh  pass.war  startup.sh  syn.sh  two.sh

Deployment supports uniform installation in Distributed installation. Each script can be split and used in any combination, for example:

1) in a new environment, services are not yet deployed in tomcat. You only need to adjust the script order of the war package to be uploaded. After the war package is uploaded, the subsequent operations are normal.

2) iterative update: The function is slightly modified. The original configuration item does not need to be modified. You only need to adjust the script order of the uploaded war package. The original configuration is obtained first, and then the updated war package is uploaded. Subsequent operations are normal.

 

3.3 advantages and disadvantages

Advantages:

1) it is applicable to uniform installation and deployment, and also to separate service installation and deployment.

2) Retain the original backup to facilitate configuration comparison before and after deployment.

3) simple operation and strong demand expansion ability.

Deficiency description:

1) currently only applicable to tomcat-based server projects.

 


How to deploy multiple Tomcat servers in Linux

Please use tomcat's virtual service. Do not use it for white! Apache also has virtual services, allowing you to run multiple processes!

How can I not use linux ???

How many projects can be deployed on tomcat in linux? How to deploy it?

Yes. The system does not matter!
You can deploy a website with different site names !~

Install jdk
Configure jdk Environment Variables
Install tomcat
Find service. xml under conf
Vi command to open and edit
Add the host label
<Context path = "/site name" docBase = "project webroot address" debug = "0" reloadable = "true"/>
Add multiple context to multiple sites and specify the project path and site name
 

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.