CN109818765B - Network element deployment method and device - Google Patents

Network element deployment method and device Download PDF

Info

Publication number
CN109818765B
CN109818765B CN201711162701.5A CN201711162701A CN109818765B CN 109818765 B CN109818765 B CN 109818765B CN 201711162701 A CN201711162701 A CN 201711162701A CN 109818765 B CN109818765 B CN 109818765B
Authority
CN
China
Prior art keywords
network element
mysql
jre
server
database
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.)
Active
Application number
CN201711162701.5A
Other languages
Chinese (zh)
Other versions
CN109818765A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201711162701.5A priority Critical patent/CN109818765B/en
Publication of CN109818765A publication Critical patent/CN109818765A/en
Application granted granted Critical
Publication of CN109818765B publication Critical patent/CN109818765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a network element deployment method and a device, which are applied to a multi-network element co-deployment scene, wherein the method comprises the following steps: for each new network element, if the operating environment of the server meets the deployment requirement of the network element, installing a JRE and MYSQL database special for the network element in the server; when the network element needs to start the application program of the network element, acquiring the JRE operation environment variable and the MYSQL operation environment variable of the network element from the server according to the special operating system maintenance account of the network element, and starting the application program according to the JRE operation environment variable and the MYSQL operation environment variable of the network element. The invention can effectively reduce the complexity of network element version upgrading and the skill requirement of network maintainers.

Description

Network element deployment method and device
Technical Field
The present invention relates to mobile communication technologies, and in particular, to a network element deployment method and apparatus in a scenario of co-deployment of multiple network elements.
Background
In the current multi-network element deployment scheme, the network element software product generally depends on Java Runtime Environment (JRE) and MySQL database management system to be installed and run. In the multi-network element deployment scheme, a plurality of network elements need to share the same set of common components (JRE and MYSQL). As shown in fig. 1, a network element
Because all network elements share the same set of JRE and MYSQL, the installation state, the version number and the like of the JRE and MYSQL in the current system environment need to be judged and processed when each network element is installed or upgraded, and the installation and use conditions depend on the installation state of the previous network element. Moreover, the dependency is strong, and if the installation or upgrade is not performed according to the sequence described by the installation or upgrade instruction specification of each network element released along with the version, various serious faults can be caused. If the network maintainer fails to install or upgrade according to the document requirement, the network maintainer is required to complete the recovery of the fault according to the research and development method, so that the skill requirement on the network maintainer is high.
Therefore, in the existing multi-network element deployment scheme, adjustment or modification of the common components needs to be performed according to the uniform versions in a certain sequence, and single network element unilateral upgrade of the JRE and MYSQL databases affects release or service operation of other network element versions, so that labor cost and time cost of release of each network element version are high.
Disclosure of Invention
In view of this, the main object of the present invention is to provide a method and an apparatus for deploying a network element, which are applied in a scenario of co-deploying multiple network elements, and can effectively reduce the complexity of upgrading a network element version and the skill requirement of a network maintainer.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a network element deployment method is applied to a multi-network element co-deployment scene and comprises the following steps:
for each new network element, if the operating environment of the server meets the deployment requirement of the network element, installing a JRE and MYSQL database special for the network element in the server;
and when the network element needs to start the application program of the network element, acquiring the JRE operation environment variable and the MYSQL operation environment variable of the network element from the server according to the special operating system maintenance account of the network element.
A network element deployment device is applied to a multi-network element co-deployment scene and comprises the following components:
the installation unit is used for installing a JRE and MYSQL database special for the network element in the server if the operating environment of the server meets the deployment requirement of the network element for each new network element;
and the operation unit is used for acquiring the JRE operation environment variable and the MYSQL operation environment variable of the network element from the server according to the special operating system maintenance account of the network element when the network element needs to start the application program of the network element.
In summary, the network element deployment method and apparatus provided by the present invention are applied to a multi-network element co-deployment scenario, and a dedicated JRE database and a dedicated MYSQL database are installed separately for each network element, so that the multi-network element co-deployment is performed on the same linux server, the databases and common services such as JRE used by each network element are mutually independent, and the upgrading, installation, and maintenance of each network element does not interfere with the service operations of other network elements. Accordingly, the upgrading, installation and maintenance of each network element can not cause other network elements to have faults, and further, network maintenance personnel are not required to complete the recovery of the faults according to a research and development method, so that the complexity of network element version upgrading and the skill requirements on the network maintenance personnel can be effectively reduced.
Drawings
Fig. 1 is a schematic diagram illustrating that multiple network elements share a set of JRE and MYSQL in a conventional multi-network-element co-deployment scheme;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of multiple network elements independently deploying JRE and MYSQL in a multi-network-element co-deployment scheme implemented by the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
The core idea of the invention is as follows: each network element independently installs own JRE and defines own JRE environment variables, each network element independently installs own database MYSQL, self-defines the MYSQL installation version and self-defines and manages own MYSQL database service process, and therefore each network element can freely and repeatedly install, uninstall and install operations, and normal operation of other network elements and external service provision are not affected.
Fig. 2 is a schematic flowchart of a network element deployment method provided in an embodiment of the present invention, where the method is applied to a scenario of co-deployment of multiple network elements, and as shown in fig. 2, the method includes:
step 201, for each new network element, if the operating environment of the server meets the deployment requirement of the network element, installing a JRE and MYSQL database dedicated to the network element in the server.
In this step, when the operating environment of the server meets the deployment requirement of the network element, a special JRE and MYSQL database for the network element is installed in the server. Therefore, the JRE component and the MYSQL database are independently installed on each network element, so that the JRE component and the MYSQL database are independently issued and operated along with the network elements, mutual independence of public services such as the database and the JRE used by each network element on the same server deployed by multiple network elements is achieved, synchronous upgrading of the JRE component, the MYSQL database version and the network element version can be guaranteed, the JRE component and the MYSQL database version of other network elements are not affected, and the upgrading, installation and maintenance operations of each network element do not affect other network elements.
Fig. 3 is a schematic diagram of multiple network elements independently deploying JRE and MYSQL in a multi-network-element co-deployment scheme implemented by the present invention. As shown in fig. 3, the network element a uses and issues its own JRE and MYSQL service, and similarly, the network element B also uses its own JRE and MYSQL service, so that the upgrading, installation, and maintenance of each network element do not interfere with the service operation of the other network element.
Preferably, for each new network element, the following method can be adopted to install the JRE dedicated to the network element in the server:
and executing the JRE installation program of the network element, and adding the obtained JRE operation environment variable into a configuration file of a special operating system maintenance account of the network element in an operating system of the server, wherein the JRE operation environment variable comprises a self-defined JRE work operation directory.
In the above method, a customized JRE operating environment variable (such as a customized JRE work operating directory) in the execution process of the JRE installer needs to be added to a configuration file of a network element specific operating system maintenance account in the server operating system, so that, in order to execute the application program, the network element can directly obtain a corresponding JRE operating environment variable from the account.
Preferably, for each new network element, the following method may be adopted to install the MYSQL database specific to the network element in the server:
executing a MYSQL installation program of the network element, adding the obtained MYSQL operation environment variable into a database configuration file of the network element in an operating system of the server, and setting MYSQL ports of the network element according to different principles of MYSQL ports of all network elements, wherein the MYSQL ports are not default ports of the MYSQL installation program; the MYSQL operation environment variables comprise a self-defined MYSQL work operation catalogue and a service database storage path.
During the execution process of the MYSQL installation program, MYSQL operation environment variables (such as a user-defined MYSQL work operation directory and a service database storage path) and a user-defined MYSQL start configuration file are customized. In the method, a user-defined MYSQL running environment variable (such as a user-defined MYSQL working running directory and a service database storage path) in the execution process of the MYSQL installation program needs to be added to the database configuration file of the network element in the server operating system, so that the corresponding MYSQL running environment variable is obtained from the database configuration file of the network element when the application program of the network element needs to be executed.
In addition, in the above method, the MYSQL port needs to be ensured to be the only port, that is, the port cannot be the same as the MYSQL ports of other network elements, so as to avoid the MYSQL port collision problem between network elements.
In practical application, MYSQL is installed together with a network element product installation package. If a network element names its nemysql service when it installs MYSQL, a custom/etc/ne. Thereafter, when the network element runs and uses MYSQL, the configuration file/etc/ne.cnf of the network element itself is used, but the default/etc/my.cnf database configuration file is not used. I.e. the start command used is: service nemysql start; the stop commands used are: service nemysql stop.
Step 202, when the network element needs to start the application program of the network element, acquiring the JRE operating environment variable and the MYSQL operating environment variable of the network element from the server according to the operating system maintenance account specific to the network element, and starting the application program according to the JRE operating environment variable and the MYSQL operating environment variable of the network element.
In this step, when each network element needs to start an application program, the JRE operating environment variable and the MYSQL operating environment variable of the network element may be directly obtained from the server according to the dedicated operating system maintenance account, so that the application program may be operated based on the JRE operating environment variable and the MYSQL operating environment variable of the network element.
Preferably, for the network elements already deployed in the system in a manner that multiple network elements share JRE and MYSQL, the following method may be adopted to upgrade these network elements, so that they have dedicated JRE and MYSQL components respectively:
for each network element needing to be upgraded, executing a JRE installation program of the network element after database service data and software products of the network element are backed up; executing the DROP command to delete the database service data of the network element and reserving the MYSQL operation program of the network element; executing the MYSQL installation program of the network element, and recovering the database of the network element by using the backed-up data; the network element needing to be upgraded is a network element which is deployed in a mode that multiple network elements share JRE and MYSQL.
In the above upgrading method, the database service data and the software product of the network element to be upgraded need to be backed up first, so that on one hand, the backup of the database service data can be used to complete the recovery of the network element database when the network element is successfully upgraded, and on the other hand, the backed-up data and the backed-up product can be used to recover the network element when the network element is unsuccessfully upgraded.
Fig. 4 is a schematic structural diagram of a network element deployment apparatus corresponding to the foregoing method, where the apparatus is applied to a multi-network element co-deployment scenario, and as shown in fig. 4, the apparatus includes:
and the installation unit is used for judging whether the operating environment of the server meets the deployment requirement of the network element or not for each new network element, and if so, installing a Java operating environment JRE and a MYSQL database special for the network element in the server.
And the operation unit is used for acquiring the JRE operation environment variable and the MYSQL operation environment variable of the network element from the server according to the special operating system maintenance account of the network element when the network element needs to start the application program of the network element, and starting the application program according to the JRE operation environment variable and the MYSQL operation environment variable of the network element.
Preferably, the installing unit is configured to, for each new network element, execute a JRE installing program of the network element when the JRE dedicated to the network element is installed in the server, and add the obtained JRE operating environment variable to a configuration file of a maintenance account of an operating system dedicated to the network element in an operating system of the server, where the JRE operating environment variable includes a custom JRE work operating directory.
Preferably, the installing unit is configured to, for each new network element, execute a MYSQL installation program of the network element when the MYSQL database dedicated for the network element is installed in the server, add the obtained MYSQL operating environment variable to the database configuration file of the network element in the operating system of the server, set a MYSQL port of the network element according to a principle that MYSQL ports of all network elements are different, where the MYSQL port is not a default port of the MYSQL installation program; the MYSQL operation environment variables comprise a self-defined MYSQL work operation catalogue and a service database storage path.
Preferably, the apparatus further includes an upgrading unit, where the upgrading unit is configured to, for each network element that needs to be upgraded, execute a JRE installer of the network element after backing up the database service data and the software product of the network element; executing the DROP command to delete the database service data of the network element and reserving the MYSQL operation program of the network element; executing the MYSQL installation program of the network element, and recovering the database of the network element by using the backed-up data; the network element needing to be upgraded is a network element which is deployed in a mode that multiple network elements share JRE and MYSQL.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A network element deployment method is applied to a multi-network element co-deployment scene, and is characterized by comprising the following steps:
for each new network element, if the operating environment of the server meets the deployment requirement of the network element, installing a Java operating environment JRE and a MYSQL database special for the network element in the server;
when the network element needs to start an application program of the network element, acquiring a JRE operation environment variable and a MYSQL operation environment variable of the network element from the server according to an operating system maintenance account special for the network element, and starting the application program according to the JRE operation environment variable and the MYSQL operation environment variable of the network element;
wherein for each new network element, installing the network element-specific JRE in the server comprises:
executing a JRE installation program of the network element, and adding the obtained JRE operation environment variable to a configuration file of a special operating system maintenance account of the network element in an operating system of the server, wherein the JRE operation environment variable comprises a self-defined JRE work operation directory;
for each new network element, installing in the server a MYSQL database specific for that network element comprises:
executing a MYSQL installation program of the network element, adding the obtained MYSQL operation environment variable into a database configuration file of the network element in an operating system of the server, and setting MYSQL ports of the network element according to different principles of MYSQL ports of all network elements, wherein the MYSQL ports are not default ports of the MYSQL installation program; the MYSQL operation environment variables comprise a self-defined MYSQL work operation catalogue and a service database storage path.
2. The method of claim 1, further comprising:
for each network element needing to be upgraded, executing a JRE installation program of the network element after database service data and software products of the network element are backed up; executing the DROP command to delete the database service data of the network element and reserving the MYSQL operation program of the network element; executing the MYSQL installation program of the network element, and recovering the database of the network element by using the backed-up data; the network element needing to be upgraded is a network element which is deployed in a mode that multiple network elements share JRE and MYSQL.
3. A network element deployment device is applied to a multi-network element co-deployment scene, and is characterized by comprising:
an installation unit, configured to, for each new network element, if an operating environment of a server meets a deployment requirement of the network element, install, in the server, a Java operating environment JRE and a MYSQL database dedicated to the network element, specifically including: for each new network element, when the special JRE for the network element is installed in the server, executing a JRE installation program of the network element, and adding the obtained JRE operation environment variable into a configuration file of a special operating system maintenance account number of the network element in an operating system of the server, wherein the JRE operation environment variable comprises a self-defined JRE work operation directory; for each new network element, when a MYSQL database special for the network element is installed in the server, a MYSQL installation program of the network element is executed, the obtained MYSQL operation environment variable is added into a database configuration file of the network element in an operating system of the server, MYSQL ports of the network element are set according to different principles of the MYSQL ports of all the network elements, and the MYSQL ports are not default ports of the MYSQL installation program; the MYSQL operation environment variables comprise a self-defined MYSQL work operation directory and a service database storage path;
and the operation unit is used for acquiring the JRE operation environment variable and the MYSQL operation environment variable of the network element from the server according to the special operating system maintenance account of the network element when the network element needs to start the application program of the network element, and starting the application program according to the JRE operation environment variable and the MYSQL operation environment variable of the network element.
4. The apparatus of claim 3, further comprising an upgrade unit, configured to, for each network element that needs to be upgraded, execute a JRE installer for the network element after backing up the database service data and the software product of the network element; executing the DROP command to delete the database service data of the network element and reserving the MYSQL operation program of the network element; executing the MYSQL installation program of the network element, and recovering the database of the network element by using the backed-up data; the network element needing to be upgraded is a network element which is deployed in a mode that multiple network elements share JRE and MYSQL.
CN201711162701.5A 2017-11-21 2017-11-21 Network element deployment method and device Active CN109818765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711162701.5A CN109818765B (en) 2017-11-21 2017-11-21 Network element deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711162701.5A CN109818765B (en) 2017-11-21 2017-11-21 Network element deployment method and device

Publications (2)

Publication Number Publication Date
CN109818765A CN109818765A (en) 2019-05-28
CN109818765B true CN109818765B (en) 2022-03-11

Family

ID=66599133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711162701.5A Active CN109818765B (en) 2017-11-21 2017-11-21 Network element deployment method and device

Country Status (1)

Country Link
CN (1) CN109818765B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843252A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Method and device for updating network element through network management
CN106843936A (en) * 2016-12-29 2017-06-13 北京航天测控技术有限公司 A kind of method of automatically dispose Web applied environments

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020124245A1 (en) * 2000-08-14 2002-09-05 Alvin Maddux Method and apparatus for advanced software deployment
US8761100B2 (en) * 2011-10-11 2014-06-24 CBF Networks, Inc. Intelligent backhaul system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843252A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Method and device for updating network element through network management
CN106843936A (en) * 2016-12-29 2017-06-13 北京航天测控技术有限公司 A kind of method of automatically dispose Web applied environments

Also Published As

Publication number Publication date
CN109818765A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN105681060B (en) virtualized network function management upgrading method, device and server
CN100407638C (en) Method for software upgrading and withdrawing
CN100445952C (en) Software version update method and device in communication equipment
CN102622298B (en) Software testing system and method
CN101876940B (en) Automatic test method and device
CN100518082C (en) Long-distance on-line updating method with self-recovery function
CN102023881A (en) Method and device for upgrading software as well as embedded device
CN105242875A (en) Server raid batch configuration method
CN102609281A (en) Distributed software patch updating method and distributed software patch updating system
CN107071030B (en) Ceph distributed storage system deployment method and system
US20200026524A1 (en) System and method for performing an image-based update
CN106502713A (en) A kind of method for upgrading software and system
CN108319492B (en) Method, device and system for resetting physical machine
CN105512026A (en) Automatic batch testing method
CN105119732A (en) Device and method for distributing hosts in cluster environment
EP2137614A1 (en) On-line configuration management system and method
CN110268378B (en) Method for creating data backup, storage medium and virtual server
CN103490929B (en) Manufacturing and implement method for multi-adaptive firmware of server
CN101207519A (en) Version server, operation maintenance unit and method for restoring failure
CN110912728B (en) Operating system patch batch automatic update management method and system
CN112363731A (en) Application automation deployment method and device and computer readable storage medium
CN111782233A (en) Micro-service multi-scenario deployment adaptive design model
CN102567050B (en) The method and apparatus of B/S system remote deploying projects
CN109818765B (en) Network element deployment method and device
CN111813683B (en) Universal automatic synchronization method for software testing environment

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