CN112732277A - Java multi-service application automatic installation and deployment integration method and system - Google Patents

Java multi-service application automatic installation and deployment integration method and system Download PDF

Info

Publication number
CN112732277A
CN112732277A CN202011627104.7A CN202011627104A CN112732277A CN 112732277 A CN112732277 A CN 112732277A CN 202011627104 A CN202011627104 A CN 202011627104A CN 112732277 A CN112732277 A CN 112732277A
Authority
CN
China
Prior art keywords
file
package
area
tomcat
bat script
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.)
Granted
Application number
CN202011627104.7A
Other languages
Chinese (zh)
Other versions
CN112732277B (en
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.)
Ropt Technology Group Co ltd
Ropt Xiamen Big Data Group Co ltd
Original Assignee
Lop Xiamen System Integration Co ltd
Ropt Technology Group 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 Lop Xiamen System Integration Co ltd, Ropt Technology Group Co ltd filed Critical Lop Xiamen System Integration Co ltd
Priority to CN202011627104.7A priority Critical patent/CN112732277B/en
Publication of CN112732277A publication Critical patent/CN112732277A/en
Application granted granted Critical
Publication of CN112732277B publication Critical patent/CN112732277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an integration method and system for automatic installation and deployment of java multi-service application, which comprises the steps of dividing a java multi-service application system into a static file area, a running area and bat script files, configuring the built-in running environment of a tomcat packet corresponding to the version of each JDK packet, configuring the parameters of the app application packet in a service configuration file, binding the app application packet and the tomcat packet and preparing the running environment of the content in the static file area by writing and adding a sub bat script file in the bat script files, and finally packaging the files in the static file area and the bat script files to obtain an installation file required by the automatic installation and deployment of the java multi-service application system. The invention realizes the management scheme of automatic installation and deployment and application service, realizes automatic installation and unified integrated configuration management, and improves the installation and deployment efficiency of java multi-service.

Description

Java multi-service application automatic installation and deployment integration method and system
Technical Field
The invention relates to the technical field of software management, in particular to an integration method and system for automatic installation and deployment of java multi-service application.
Background
The software industry is rapidly developed, more and more java applications are provided, different java service applications are often deployed in the same server, different java applications use different JDK versions, and if multiple JDK environment variables are configured in the same server, version incompatibility is prone to cause service operation errors due to configuration problems. Moreover, when the multi-service application is started, the configuration of each java service application is too much, the tomcat port configuration is often conflicted and tedious, a uniform configuration position is not provided, and the configuration information needs to be manually modified, so that the service deployment is complex and errors are easy to occur.
The traditional application needs to configure JDK environment variables of the JVM, and it is possible that different JDK environment variables must be deployed on the same server because JDK versions used by multiple service applications are different, and in addition, tomcat container ports used by different java applications are not identical, and a port and configuration information of each service need to be modified in each application service, which increases complexity of project deployment and causes problems of port conflict, abnormal service start, and the like due to human configuration problems, resulting in time-consuming and error-prone deployment process, and complicated update operation after deployment.
Disclosure of Invention
The invention provides an integration method and system for automatic installation and deployment of java multi-service application, which aim to overcome the defects of the prior art.
In one aspect, the invention provides an integration method for automatic installation and deployment of java multi-service applications, which comprises the following steps:
s1: the java multi-service application system is divided into a static file area, a running area and a bat script file, wherein,
the static file area comprises a JDK package, a tomcat package, an app application package and a service configuration file;
the running area is used for running the content in the static file area;
the bat script file comprises a plurality of sub bat script files for processing the static file area and the running area;
creating a corresponding folder to store the contents in the static file area, the running area and the bat script file;
s2: configuring a built-in operation environment of the tomcat packet corresponding to the version of each JDK packet;
s3: configuring parameters of the app application package in the service configuration file;
s4: binding the app application package and the tomcat package and preparing a running environment of content in the static file region by writing and adding a sub-bat script file in the bat script file;
s5: and packaging the files in the static file area and the bat script file to obtain an installation file required by the automatic installation and deployment of the java multi-service application system.
The method standardizes the application information of file type unified configuration and the mode of internally setting JDK packets and tomcat packets of various versions, and generates the running file packet by dynamically binding the tomcat and the configuration mode of the application, thereby realizing the management scheme of automatic installation and deployment and application service, realizing automatic installation and unified integrated configuration management, and improving the installation and deployment efficiency of java multi-service.
In a specific embodiment, the method further comprises:
executing the bat script file upon installation of the java multi-service application.
In a specific embodiment, the step of creating a corresponding folder in S1 to store the contents of the static file area, the running area, and the bat script file includes:
creating a JDK folder in the static file area, and placing the JDK package in the JDK folder;
creating a tomcat folder in the static file area, and placing the tomcat package in the tomcat folder;
creating an app application package folder in the static file area, and placing the app application package in the app application package folder;
creating conf service configuration folders in the static file area for storing the service configuration files, wherein each service configuration file corresponds to the app application package one by one;
creating a bat script file folder for storing the bat script file;
and creating an app folder in the running area, wherein the app folder is in one-to-one correspondence with the app application packages.
In a specific embodiment, the app application package includes: cms-java.war package, cms-web.war package, and web-html package.
In a specific embodiment, the S2 specifically includes:
setting the JDK version used by the tomcat packet of the specific version as a program of the JDK version corresponding to the specific version in the JDK path through the configuration file of tomcat.
In a specific embodiment, the S3 specifically includes: and uniformly extracting the parameters of the app application package into the service configuration file corresponding to the app application package under the conf service configuration folder, and when the app application package is started, uniformly reading the service configuration file under the conf service configuration folder for initialization.
In a specific embodiment, the S4 specifically includes the following steps:
setting a corresponding sub-bat script file for each app application package, wherein the corresponding sub-bat script file specifies the corresponding app application package and the version of the tomcat package required to be used by the corresponding app application package;
adding, within the bat script file, a sub bat script file containing instructions for performing copying of content in the static file region into the run region;
adding, within the bat script file, a sub-bat script file containing instructions for modifying an access port of the tomcat packet corresponding to each of the app application packets;
adding, within the bat script file, a sub bat script file containing instructions for running the app application package.
In a specific embodiment, the instructions for executing copying of the content in the static file area to the running area include: copying the app application package and the tomcat package required to be used by the app application package into the app folder corresponding to the app application package in a running region.
According to a second aspect of the present invention, a computer-readable storage medium is proposed, on which a computer program is stored, which computer program, when being executed by a computer processor, carries out the above-mentioned method.
According to a third aspect of the present invention, an integrated system for java multi-service application automatic installation and deployment is provided, the system comprising:
a deployment environment preparation module: configured to divide the java multi-service application into a static file area, a running area, and a bat script file, wherein,
the static file area comprises a JDK package, a tomcat package, an app application package and a service configuration file;
the running area is used for running the content in the static file area;
the bat script file comprises a plurality of sub bat script files for processing the static file area and the running area;
creating a corresponding folder to store the contents in the static file area, the running area and the bat script file;
the tomcat built-in operating environment configuration module: configuring a built-in operating environment for configuring the tomcat packet corresponding to the version of each JDK packet;
the app application package parameter configuration module: configuring parameters for configuring the app application package in the service configuration file;
the app package operating environment preparation module: configured to bind the app application package and the tomcat package and prepare a runtime environment of content in the static file region by writing and adding a sub-bat script file in the bat script file;
installing a file packaging module: and the configuration is used for respectively packaging the files in the static file area and the bat script file to obtain an installation file required by the automatic installation and deployment of the java multi-service application system.
The method comprises the steps of dividing a java multi-service application system into a static file area, a running area and bat script files, configuring built-in running environments of the tomcat package corresponding to versions of the JDK packages, configuring parameters of the app application package in the service configuration files, writing and adding sub bat script files in the bat script files, binding the app application package and the tomcat package and preparing the running environments of contents in the static file area, and finally packaging files in the static file area and the bat script files to obtain installation files required by automatic installation and deployment of the java multi-service application system. The method and the device have the advantages that the unified configuration application information of the file types and the mode of internally setting JDK (Java data Link) packages and tomcat packages of all versions are standardized, and the running file package is generated by dynamically binding the tomcat and the configuration mode of the application, so that the management scheme of automatic installation and deployment and application service is realized, the automatic installation and unified integrated configuration management is realized, and the installation and deployment efficiency of java multi-service is improved.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments and together with the description serve to explain the principles of the invention. Other embodiments and many of the intended advantages of embodiments will be readily appreciated as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of an integrated method for automatic installation and deployment of java multi-service applications in accordance with an embodiment of the present invention;
FIG. 3 is a diagram illustrating the deployment package structure and the automatic installation flow of the java multi-service application according to an embodiment of the present invention;
FIG. 4 is a framework diagram of an integrated system for automatic installation and deployment of java multi-service applications, in accordance with an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary system architecture 100 to which an integrated method for automatic installation and deployment of java multi-service applications according to an embodiment of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various applications, such as a data processing application, a data visualization application, a web browser application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server that provides various services, such as a background information processing server that supports versions of JDK packets presented on the terminal devices 101, 102, 103. The background information processing server may process the acquired app application package and generate a processing result (e.g., a log file).
It should be noted that the method provided in the embodiment of the present application may be executed by the server 105, or may be executed by the terminal devices 101, 102, and 103, and the corresponding apparatus is generally disposed in the server 105, or may be disposed in the terminal devices 101, 102, and 103.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 shows a flowchart of an integration method for automatic installation and deployment of java multi-service applications according to an embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
s201: the java multi-service application system is divided into a static file area, a running area and a bat script file, wherein,
the static file area comprises a JDK package, a tomcat package, an app application package and a service configuration file;
the running area is used for running the content in the static file area;
the bat script file comprises a plurality of sub bat script files for processing the static file area and the running area;
and creating a corresponding folder for storing the contents in the static file area, the running area and the bat script file.
In a specific embodiment, the specific steps of creating a corresponding folder in S201 to store the contents in the static file area, the running area, and the bat script file include:
creating a JDK folder in the static file area, and placing the JDK package in the JDK folder;
creating a tomcat folder in the static file area, and placing the tomcat package in the tomcat folder;
creating an app application package folder in the static file area, and placing the app application package in the app application package folder;
creating conf service configuration folders in the static file area for storing the service configuration files, wherein each service configuration file corresponds to the app application package one by one;
creating a bat script file folder for storing the bat script file;
and creating an app folder in the running area, wherein the app folder is in one-to-one correspondence with the app application packages.
In a specific embodiment, the app application package includes: cms-java.war package, cms-web.war package, and web-html package.
S202: configuring a built-in operation environment of the tomcat packet corresponding to the version of each JDK packet;
in a specific embodiment, the S202 specifically includes:
setting the JDK version used by the tomcat packet of the specific version as a program of the JDK version corresponding to the specific version in the JDK path through the configuration file of tomcat.
S203: configuring parameters of the app application package in the service configuration file;
in a specific embodiment, the S203 specifically includes: and uniformly extracting the parameters of the app application package into the service configuration file corresponding to the app application package under the conf service configuration folder, and when the app application package is started, uniformly reading the service configuration file under the conf service configuration folder for initialization.
S204: binding the app application package and the tomcat package and preparing a running environment of content in the static file region by writing and adding a sub-bat script file in the bat script file;
in a specific embodiment, the S204 specifically includes the following steps:
setting a corresponding sub-bat script file for each app application package, wherein the corresponding sub-bat script file specifies the corresponding app application package and the version of the tomcat package required to be used by the corresponding app application package;
adding, within the bat script file, a sub bat script file containing instructions for performing copying of content in the static file region into the run region;
adding, within the bat script file, a sub-bat script file containing instructions for modifying an access port of the tomcat packet corresponding to each of the app application packets;
adding, within the bat script file, a sub bat script file containing instructions for running the app application package.
In a specific embodiment, the instructions for executing copying of the content in the static file area to the running area include: copying the app application package and the tomcat package required to be used by the app application package into the app folder corresponding to the app application package in a running region.
S205: and respectively packaging the files in the static file area and the bat script file to obtain an installation file required by the automatic installation and deployment of the java multi-service application system.
In a specific embodiment, the method further comprises:
executing the bat script file upon installation of the java multi-service application.
In view of the above, fig. 3 shows a java multi-service application automatic installation deployment package structure and an automatic installation flow diagram of a specific embodiment of the present invention, as shown in the following drawings:
JDK set 301 is used to store JDK packets (e.g., JDK1.7 and JDK1.8) of various versions;
the tomcat set 302 is used to store various versions of tomcat packages (e.g., tomcat7 and tomcat 8);
the service application package set 303 is used to store app application packages (e.g., cms-java.war package, cms-web.war package, and web-html package);
the configuration file set 304 is used for storing each configuration file (such as cms-java.yml, cms-web.yml and conf.properties) required by the installation of the java multi-service application system;
script set 305 stores a plurality of bat script files for executing various instructions (e.g., bat script files for port modification, bat script files for application configuration, and bat script files for generating run files);
the service operation file set 306 is used for storing corresponding operation files generated during the operation of the files in the service application package set 303, and the corresponding operation files are respectively placed into cms-java folders, cms-web folders and conf folders;
the log file set 307 is used to store log files (e.g., cms-java-log, cms-web-log, and conf-log) generated after running the files.
In the embodiment illustrated in FIG. 3, the following instructions are executed by running script set 305:
specifying each application package in the service application package set 303 with a tomcat version to use; for example cms-java.bat bindable tomcat7, cms-web.bat bindable tomcat 8;
copying files in the tomcat set 302 and the service application package set 303 into the service operation file set 306: for example, copying tomcat7 under the tomcat set 302 into a cms-java folder under the service operation file set 306, and copying a cms-java.war package under the service application package set 303 into tomcat7 under the cms-java folder in the service operation file set 306;
modifying the access port of tomcat corresponding to each operation file in the service operation file set 306;
the runtime service runs the runtime files in the set of files 306.
FIG. 4 is a framework diagram of an integrated system for automatic installation and deployment of java multi-service applications, according to an embodiment of the invention. The system comprises a deployment environment preparation module 401, a tomcat built-in running environment configuration module 402, an app application package parameter configuration module 403, an app application package running environment preparation module 404 and an installation file packaging module 405.
In a particular embodiment, the deployment environment preparation module 401 is configured to divide the java multi-service application into a static file area, a runtime area, and a bat script file, wherein,
the static file area comprises a JDK package, a tomcat package, an app application package and a service configuration file;
the running area is used for running the content in the static file area;
the bat script file comprises a plurality of sub bat script files for processing the static file area and the running area;
creating a corresponding folder to store the contents in the static file area, the running area and the bat script file;
the tomcat built-in operation environment configuration module 402 is configured to configure a built-in operation environment of the tomcat packet corresponding to the version of each JDK packet;
an app application package parameter configuration module 403 is configured to configure parameters of the app application package in the business profile;
an app package runtime environment preparation module 404 configured to bind the app package and the tomcat package and prepare a runtime environment of content in the static file region by writing and adding a sub-bat script file in the bat script file;
the installation file packing module 405 is configured to pack files in the static file area and the bat script file to obtain an installation file required by the java multi-service application system for automatic installation and deployment.
The system standardizes the application information of file type unified configuration and the mode of internally setting JDK packets and tomcat packets of various versions, and generates the running file packet by dynamically binding the tomcat and the configuration mode of the application, thereby realizing the management scheme of automatic installation and deployment and application service, realizing automatic installation and unified integrated configuration management, and improving the installation and deployment efficiency of java multi-service.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 501. It should be noted that the computer readable storage medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The units described may also be provided in a processor, and the names of the units do not in some cases constitute a limitation of the unit itself.
Embodiments of the present invention also relate to a computer-readable storage medium having stored thereon a computer program which, when executed by a computer processor, implements the method above. The computer program comprises program code for performing the method illustrated in the flow chart. It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable medium or any combination of the two.
The method comprises the steps of dividing a java multi-service application system into a static file area, a running area and bat script files, configuring built-in running environments of the tomcat package corresponding to versions of the JDK packages, configuring parameters of the app application package in the service configuration files, writing and adding sub bat script files in the bat script files, binding the app application package and the tomcat package and preparing the running environments of contents in the static file area, and finally respectively packaging files in the static file area and the bat script files to obtain installation files required by automatic installation and deployment of the java multi-service application system. The method and the device have the advantages that the unified configuration application information of the file types and the mode of internally setting JDK (Java data Link) packages and tomcat packages of all versions are standardized, and the running file package is generated by dynamically binding the tomcat and the configuration mode of the application, so that the management scheme of automatic installation and deployment and application service is realized, the automatic installation and unified integrated configuration management is realized, and the installation and deployment efficiency of java multi-service is improved.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. An integration method for automatic installation and deployment of java multi-service application is characterized by comprising the following steps:
s1: the java multi-service application system is divided into a static file area, a running area and a bat script file, wherein,
the static file area comprises a JDK package, a tomcat package, an app application package and a service configuration file;
the running area is used for running the content in the static file area;
the bat script file comprises a plurality of sub bat script files for processing the static file area and the running area;
creating a corresponding folder to store the contents in the static file area, the running area and the bat script file;
s2: configuring a built-in operation environment of the tomcat packet corresponding to the version of each JDK packet;
s3: configuring parameters of the app application package in the service configuration file;
s4: binding the app application package and the tomcat package and preparing a running environment of content in the static file region by writing and adding a sub-bat script file in the bat script file;
s5: and respectively packaging the files in the static file area and the bat script file to obtain an installation file required by the automatic installation and deployment of the java multi-service application system.
2. The method of claim 1, further comprising:
executing the bat script file upon installation of the java multi-service application.
3. The method according to claim 1, wherein the specific step of creating the corresponding folder in S1 for storing the contents of the static file area, the running area and the bat script file comprises:
creating a JDK folder in the static file area, and placing the JDK package in the JDK folder;
creating a tomcat folder in the static file area, and placing the tomcat package in the tomcat folder;
creating an app application package folder in the static file area, and placing the app application package in the app application package folder;
creating conf service configuration folders in the static file area for storing the service configuration files, wherein each service configuration file corresponds to the app application package one by one;
creating a bat script file folder for storing the bat script file;
and creating an app folder in the running area, wherein the app folder is in one-to-one correspondence with the app application packages.
4. The method of claim 1, wherein the app application package comprises: cms-java.war package, cms-web.war package, and web-html package.
5. The method according to claim 1, wherein the S2 specifically includes:
setting the JDK version used by the tomcat packet of the specific version as a program of the JDK version corresponding to the specific version in the JDK path through the configuration file of tomcat.
6. The method according to claim 3, wherein the S3 specifically comprises: and uniformly extracting the parameters of the app application package into the service configuration file corresponding to the app application package under the conf service configuration folder, and when the app application package is started, uniformly reading the service configuration file under the conf service configuration folder for initialization.
7. The method according to claim 3, wherein the S4 specifically comprises the following steps:
setting a corresponding sub-bat script file for each app application package, wherein the corresponding sub-bat script file specifies the corresponding app application package and the version of the tomcat package required to be used by the corresponding app application package;
adding, within the bat script file, a sub bat script file containing instructions for performing copying of content in the static file region into the run region;
adding, within the bat script file, a sub-bat script file containing instructions for modifying an access port of the tomcat packet corresponding to each of the app application packets;
adding, within the bat script file, a sub bat script file containing instructions for running the app application package.
8. The method of claim 7, wherein the instructions for performing copying of the contents of the static file area to the running area comprise: copying the app application package and the tomcat package required to be used by the app application package into the app folder corresponding to the app application package in a running region.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a computer processor, carries out the method of any one of claims 1 to 8.
10. An integrated system for automatic installation and deployment of java multi-service applications, comprising:
a deployment environment preparation module: configured to divide the java multi-service application into a static file area, a running area, and a bat script file, wherein,
the static file area comprises a JDK package, a tomcat package, an app application package and a service configuration file;
the running area is used for running the content in the static file area;
the bat script file comprises a plurality of sub bat script files for processing the static file area and the running area;
creating a corresponding folder to store the contents in the static file area, the running area and the bat script file;
the tomcat built-in operating environment configuration module: configuring a built-in operating environment for configuring the tomcat packet corresponding to the version of each JDK packet;
the app application package parameter configuration module: configuring parameters for configuring the app application package in the service configuration file;
the app package operating environment preparation module: configured to bind the app application package and the tomcat package and prepare a runtime environment of content in the static file region by writing and adding a sub-bat script file in the bat script file;
installing a file packaging module: and configuring and packing the files in the static file area and the bat script file to obtain an installation file required by the automatic installation and deployment of the java multi-service application system.
CN202011627104.7A 2020-12-31 2020-12-31 Java multi-service application automatic installation and deployment integration method and system Active CN112732277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011627104.7A CN112732277B (en) 2020-12-31 2020-12-31 Java multi-service application automatic installation and deployment integration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011627104.7A CN112732277B (en) 2020-12-31 2020-12-31 Java multi-service application automatic installation and deployment integration method and system

Publications (2)

Publication Number Publication Date
CN112732277A true CN112732277A (en) 2021-04-30
CN112732277B CN112732277B (en) 2022-06-14

Family

ID=75608024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011627104.7A Active CN112732277B (en) 2020-12-31 2020-12-31 Java multi-service application automatic installation and deployment integration method and system

Country Status (1)

Country Link
CN (1) CN112732277B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568623A (en) * 2021-07-23 2021-10-29 上海淇玥信息技术有限公司 Application deployment method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249171A1 (en) * 2016-02-25 2017-08-31 Brocade Communications Systems, Inc. Runtime Configuration of Servlet Filtering Using Dynamic Injection
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium
CN109800002A (en) * 2019-01-17 2019-05-24 恒峰信息技术有限公司 A kind of automatic installation and deployment method of Java software
CN109951561A (en) * 2019-03-28 2019-06-28 浙江数值跳跃网络科技有限公司 Decentralized basic operation environment management system based on cloud container technology
US10466990B1 (en) * 2018-01-29 2019-11-05 Intuit Inc. Method and system for auto stacking and launching base and extended patterns using an automatic launch and restack engine
CN110727440A (en) * 2019-10-08 2020-01-24 中国电子科技集团公司第二十八研究所 Software packaging method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249171A1 (en) * 2016-02-25 2017-08-31 Brocade Communications Systems, Inc. Runtime Configuration of Servlet Filtering Using Dynamic Injection
US10466990B1 (en) * 2018-01-29 2019-11-05 Intuit Inc. Method and system for auto stacking and launching base and extended patterns using an automatic launch and restack engine
CN108847950A (en) * 2018-04-02 2018-11-20 重庆金融资产交易所有限责任公司 Electronic device, cloud system software automatic deployment method and storage medium
CN109800002A (en) * 2019-01-17 2019-05-24 恒峰信息技术有限公司 A kind of automatic installation and deployment method of Java software
CN109951561A (en) * 2019-03-28 2019-06-28 浙江数值跳跃网络科技有限公司 Decentralized basic operation environment management system based on cloud container technology
CN110727440A (en) * 2019-10-08 2020-01-24 中国电子科技集团公司第二十八研究所 Software packaging method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
温立辉: "开源中间件Tomcat高级应用浅谈", 《科技资讯》, no. 11, 30 April 2019 (2019-04-30) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568623A (en) * 2021-07-23 2021-10-29 上海淇玥信息技术有限公司 Application deployment method and device and electronic equipment

Also Published As

Publication number Publication date
CN112732277B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN105302563B (en) The plug-in unit method and system of mobile application service
CN105893094A (en) Achieving method and device for application program plug-in
CN110389762B (en) Method and device for processing AAR package in Android engineering
CN110554876A (en) Method and device for compiling android project
CN109213533B (en) Advertisement SDK dynamic loading method, device and terminal
CN104750528A (en) Management method and device for components in Android program
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN112965761B (en) Data processing method, system, electronic equipment and storage medium
CN112769706B (en) Componentized routing method and system
CN110968340A (en) Method and device for realizing multi-version dependence isolation
CN113407194A (en) Method and device for deploying software
CN110489162B (en) Method, device, medium and equipment for simplifying installation package SO (storage and retrieval) file
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN112835568A (en) Project construction method and device
CN111752820A (en) Pressure testing method of gPC interface, computer equipment and storage medium
CN113535220B (en) Code packet management method and device
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
CN112732277B (en) Java multi-service application automatic installation and deployment integration method and system
CN114490103A (en) Operating system interface calling method and device and electronic equipment
CN111767498A (en) Method and device for realizing file information sharing
CN115729604A (en) Micro application integration method, system, electronic device and storage medium
CN115952089A (en) Software automation unit testing method and device, server and storage medium
CN109725905A (en) Software architecture and implementation method based on source code collection, plug-in unit and application method for compiling pins component
CN117337429A (en) Deploying a machine learning model
CN112181470B (en) Patch deployment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 361000 unit 102, No. 59, erhaihai Road, software park, Siming District, Xiamen City, Fujian Province

Patentee after: ROPT TECHNOLOGY GROUP Co.,Ltd.

Country or region after: China

Patentee after: ROPT (Xiamen) Big Data Group Co.,Ltd.

Address before: 361000 unit 102, No. 59, erhaihai Road, software park, Siming District, Xiamen City, Fujian Province

Patentee before: ROPT TECHNOLOGY GROUP Co.,Ltd.

Country or region before: China

Patentee before: Lop (Xiamen) system integration Co.,Ltd.