CN106339241A - Tomcat and mysql combined one-key automatic deployment method - Google Patents

Tomcat and mysql combined one-key automatic deployment method Download PDF

Info

Publication number
CN106339241A
CN106339241A CN201610749658.1A CN201610749658A CN106339241A CN 106339241 A CN106339241 A CN 106339241A CN 201610749658 A CN201610749658 A CN 201610749658A CN 106339241 A CN106339241 A CN 106339241A
Authority
CN
China
Prior art keywords
tomcat
mysql
deployment method
virtual machine
automatic deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610749658.1A
Other languages
Chinese (zh)
Inventor
杭聪
陈祖斌
黄连月
袁勇
谢铭
蒙亮
莫英红
陆冰芳
黄鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Power Grid Co Ltd
Original Assignee
Guangxi Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangxi Power Grid Co Ltd filed Critical Guangxi Power Grid Co Ltd
Priority to CN201610749658.1A priority Critical patent/CN106339241A/en
Publication of CN106339241A publication Critical patent/CN106339241A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Abstract

The invention disclsoes a Tomcat and mysql combined one-key automatic deployment method and relates to the technical field of virtual machines. The Tomcat and mysql combined one-key automatic deployment method comprises: installing and configuring a cgroup container assembly and a Mysql database; installing Tomcat middleware in the virtual machine; configuring the Tomcat middleware of the virtual machine; disclosing a Tomcat port of the virtual machine. The Tomcat and mysql combined one-key automatic deployment method is applied to the one-key deployment Tomcat virtual machine of Mysql.

Description

A kind of tomcat and mysql group unifies key automatic deployment method
Technical field
The present invention relates to virtual machine technique field, more particularly, to a kind of tomcat and mysql group unification key automatic deployment side Method.
Background technology
Tomcat is a www application server, operates in master server, belongs to lightweight application server, Middle-size and small-size system and concurrent users are not to be commonly used under a lot of occasions.
Currently, to the deployment of tomcat by manually performing.Specifically, when needing to dispose tomcat, work Installation kit is placed on target virtual machine personnel, then clicks on installation, needs constantly to carry out manual configuration various during installation The steps such as database, parameter.If the database of required configuration is mysql, also specially need to need during deployment tomcat Want time, energy install, dispose mysql, substantially increase the cost of labor that deployment is related to the tomcat of mysql.
Content of the invention
The technical problem to be solved is to provide a kind of tomcat and mysql group unification key automatic deployment side Method, can solve the problem that the higher technical problem of the cost of labor of the tomcat middleware based on mysql for the deployment.
For solving above-mentioned technical problem, the present invention adopts the following technical scheme that
The invention provides a kind of tomcat and mysql group unifies key automatic deployment method, comprising:
It is installed and configured cgroup container assemblies and mysql database in virtual machine;
Tomcat middleware is installed in described virtual machine;
Configure the tomcat middleware of described virtual machine;
The tomcat port of described virtual machine is disclosed.
This key automatic deployment method also includes:
Incoming application bag in the tomcat of described virtual machine.
Preferably, described be installed and configured cgroup container assemblies after, comprising:
Start described container assemblies and by described container assemblies add to system start when automatic loading project in.
Preferably, it is installed and configured described mysql database to include:
Connected to Remote Installation Server by mapping mode;
According to user input option, automatic adaptation downloads mysql5.5, mysq5.6 or mysql5.7 version;
The data file store path of setting mysql;
The Outside Access port of setting mysql.
Preferably, it is installed and configured described mysql database also to include:
According to the user configuring getting, reset the root password of mysql.
Preferably, this key automatic deployment method also includes:
Add the external feature card of user conversation in the tomcat middleware of described virtual machine, and automatically configure conf file Context.xml file under folder, adds the support configuration item to the external interactive function of user.
Preferably, this key automatic deployment method also includes:
Obtain user configuring;
Based on accessed user configuring, arrange described tomcat middleware remain activation minimum Thread Count, can The maximum queue length accessing.
Preferably, this key automatic deployment method also includes:
Described tomcat middleware is added and starts in described cgroup container and configure automatic item.
In the technical scheme of the embodiment of the present invention, on the basis of configuration virtual machine, cgroup container group is successively installed Part, mysql database and install tomcat middleware, the tomcat port finally disclosing virtual machine is for accessing it is achieved that to this It is related to a key deployment of the tomcat unit of mysql database, participation that need not be artificial, improve a key deployment tomcat unit Efficiency, reduce one key deployment be related to mysql database tomcat unit difficulty.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, embodiment will be described below In required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also be attached according to these Figure obtains other accompanying drawings.
Fig. 1 is the schematic flow sheet that tomcat and mysql group provided in an embodiment of the present invention unifies key automatic deployment method.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of tomcat and mysql group to unify key automatic deployment method, as shown in Figure 1, comprising:
Step s1, it is installed and configured cgroup container assemblies, mysql database in virtual machine.
Virtual machine (virtual machine) refer to by software simulate have complete hardware system function, operate in Complete computer in one completely isolated environment.
Because virtual machine is complete computer system, therefore during a key disposes tomcat unit, need Judge the operating system version of this virtual machine, thus appropriate configuration is carried out to it.
Judging operating system version, if it is determined that being centos6 to this operating system version, then needing to install in advance Device-mapper-libs assembly.This assembly be required cgroup container technique have to rely on assembly, for supporting to hold Disk Mapping function required for device technology.
Afterwards, configuration completes to install cgroup container assemblies.Afterwards in addition it is also necessary to give operating system version carry out closing right The operation of the fire wall answered, in order to automatically be installed and configured tomcat middleware.
Specifically, judging operating system version, if it is determined that being centos6 to this operating system version, then closing Iptables fire wall;If it is determined that being centos7 to this operating system version, then close firewalld fire wall.
Afterwards, you can start this cgroup container assemblies, and this cgroup container assemblies is added to os starting In Shi Zidong loading project.
In addition in addition it is also necessary to be managed for configuration the installation of database, this configuration management database is used for managing and stores use Each application bag that family is added.Specifically, connect to Remote Installation Server, download configuration manages database.
In the embodiment of the present invention, configuration management database is mysql database.
Connect to Remote Installation Server, according to user input option, automatic adaptation download mysql5.5, mysq5.6 or Mysql5.7 version.
The data file store path of setting mysql is /var/lib/mysql, and the Outside Access port of setting mysql is 3306.
According to user configuring, reset the root password of mysql, reset sentence as follows:
set @@session.sql_log_bin=0;
delete from mysql.user;
create user ‘root’@‘%’ identified by ‘${mysql_root_password}’;
grant all on *.* to ‘root’@‘%’ with grant option;
drop database if exists test;
flush privileges;
Whether the Outside Access port [main frame ip:3306] of checking mysql can normally connect, if can access, externally announce The access ip of mysql and port, conduct interviews for user.
Step s2, acquisition tomcat middleware installation kit, install tomcat middleware in virtual machine.
In order to install tomcat middleware it is necessary first to connect the tomcat to Remote Installation Server, required for downloading The version of middleware.
In the embodiment of the present invention, user input option can be obtained, the tomcat middleware required for being determined by user Version.Afterwards, according to user input option, automatic adaptation downloads tomcat6, tomcat7 or tomcat8 version.
Meanwhile, by user input option, judge whether to delete manager and host- under tomcat catalogue webapps Manager file, to improve security of system, the management function in shielding later stage.
Step s3, the tomcat middleware of configuration virtual machine.
Afterwards, user configuring can also be obtained, based on accessed user configuring, setting remains the minimum line of activation Number of passes, the maximum queue length having access to.
Specifically, it is according to user configuring, the minsparethreads in server.xml file is set, represent all the time Keep the minimum Thread Count of activation.This value of system recommendations that concurrent user number is less than or equal to 50 is set to 50;Concurrent user number This value of the system recommendations of 50 to 200 is set to 200;This value of system recommendations that concurrent user number is more than 200 is set to maximum concurrently Number of request, the default value of minimum Thread Count is 50.
In the same manner, also the acceptcount in server.xml file can be arranged according to user configuring, expression has access to Maximum queue length, the default value of maximum queue length is 100.
Afterwards, tomcat middleware can be added and start in cgroup container and configure automatic item, be easy to virtual machine After startup, tomcat middleware also automatic.
Step s4, the tomcat middleware port of open virtual machine.
The tomcat port of open virtual machine, is easy to user and can access virtual machine, virtual machine is carried out setting etc. one is Row operation.Afterwards, the data record of [itself ip:8080] can be added in configuration management database, input [itself in a browser Ip:8080], check whether that deployed good five application page occurs, be proved to be successful this tomcat deploying virtual machine of expression and complete.
In sum, in the technical scheme of the embodiment of the present invention, on the basis of configuration virtual machine, successively install Cgroup container assemblies, mysql database and installation tomcat middleware, the tomcat port finally disclosing virtual machine is for visiting Ask it is achieved that a key deployment of the tomcat unit of mysql database, participation that need not be artificial are related to this, improve a key The efficiency of deployment tomcat unit, reduces the difficulty that a key deployment is related to the tomcat unit of mysql database.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.

Claims (8)

1. a kind of tomcat and mysql group unification key automatic deployment method is it is characterised in that include:
It is installed and configured cgroup container assemblies and mysql database;
Tomcat middleware is installed in described virtual machine;
Configure the tomcat middleware of described virtual machine;
The tomcat port of described virtual machine is disclosed.
2. a key automatic deployment method according to claim 1 is it is characterised in that also include:
Incoming application bag in the tomcat of described virtual machine.
3. a key automatic deployment method according to claim 2 is it is characterised in that described be installed and configured cgroup container After assembly, comprising:
Start described container assemblies and by described container assemblies add to system start when automatic loading project in.
4. a key automatic deployment method according to claim 3 is it is characterised in that be installed and configured described mysql data Storehouse includes:
Connected to Remote Installation Server by mapping mode;
According to user input option, automatic adaptation downloads mysql5.5, mysq5.6 or mysql5.7 version;
The data file store path of setting mysql;
The Outside Access port of setting mysql.
5. a key automatic deployment method according to claim 4 is it is characterised in that be installed and configured described mysql data Storehouse also includes:
According to the user configuring getting, reset the root password of mysql.
6. a key automatic deployment method according to claim 5 is it is characterised in that also include:
Add the external feature card of user conversation in the tomcat middleware of described virtual machine, and automatically configure conf file Context.xml file under folder, adds the support configuration item to the external interactive function of user.
7. a key automatic deployment method according to claim 1 is it is characterised in that also include:
Obtain user configuring;
Based on accessed user configuring, arrange described tomcat middleware remain activation minimum Thread Count, can The maximum queue length accessing.
8. a key automatic deployment method according to claim 1 is it is characterised in that also include:
Described tomcat middleware is added and starts in described cgroup container and configure automatic item.
CN201610749658.1A 2016-08-30 2016-08-30 Tomcat and mysql combined one-key automatic deployment method Pending CN106339241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610749658.1A CN106339241A (en) 2016-08-30 2016-08-30 Tomcat and mysql combined one-key automatic deployment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610749658.1A CN106339241A (en) 2016-08-30 2016-08-30 Tomcat and mysql combined one-key automatic deployment method

Publications (1)

Publication Number Publication Date
CN106339241A true CN106339241A (en) 2017-01-18

Family

ID=57823174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610749658.1A Pending CN106339241A (en) 2016-08-30 2016-08-30 Tomcat and mysql combined one-key automatic deployment method

Country Status (1)

Country Link
CN (1) CN106339241A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850449A (en) * 2015-05-05 2015-08-19 华为技术有限公司 Method and apparatus for implementing system architecture

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850449A (en) * 2015-05-05 2015-08-19 华为技术有限公司 Method and apparatus for implementing system architecture

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HMLINUX: "Dockerfile创建Linux/CentOS6.x Nginx MySQLTomcat PHP(LNMTP)镜像", 《HTTPS://BLOG.51CTO.COM/7424593/1759993》 *
TUZHUTUZHU: "CentOS-6.5在线安装docker-1.7教程", 《HTTP://WWW.ITKEYWORD.COM/DOC/4449039065575857X478/DOCKER-YUM-CENTOS6.5》 *

Similar Documents

Publication Publication Date Title
US10824411B2 (en) Install file size optimization and installation verification system
US7971202B2 (en) Method for advanced management of software distribution tasks
CN106325951A (en) Automatic deployment method for application system supporting multiple databases and multiple middleware types
US7523122B2 (en) Automatic discovery of application settings' storage locations
US8645939B2 (en) Use of aliasing in an installer
US7778968B2 (en) Systems and methods for compiling applications on a test server
US8819670B2 (en) Automated software installation with interview
US20020091819A1 (en) System and method for configuring computer applications and devices using inheritance
CN106991035A (en) A kind of Host Supervision System based on micro services framework
CN109271170A (en) A kind of distributed system dispositions method, system, electronic equipment and storage medium
CN104079596B (en) A kind of remote wake-up method and device
CN106559484A (en) The method that instance system exempts from installation and operation application
CN108959080A (en) A kind of automated testing method executed parallel based on UnitTest
NO312269B1 (en) Software Upgrade Automation Procedure
CN102929768B (en) Prompting fills method and the client terminal of software by mistake
CN103617057A (en) Application program installation method and device
US20070294593A1 (en) Customizable system for the automatic gathering of software service information
CN105786538A (en) Software upgrading method and device based on Android system
US20100312879A1 (en) Plug-in provisioning integration in a clustered environment
CN109634687A (en) The starting method and apparatus of application software in a kind of embedded Linux system
CN108228452A (en) A kind of test method and test device based on simple factory mode
CN106502713A (en) A kind of method for upgrading software and system
CN106406933A (en) One-key automatic deployment method for Tomcat cluster
CN109150608A (en) Interface service upgrade method and system for voice dialogue platform
CN106648678A (en) System update control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170118

RJ01 Rejection of invention patent application after publication