CN109818765A - A kind of network element deployment method and apparatus - Google Patents

A kind of network element deployment method and apparatus Download PDF

Info

Publication number
CN109818765A
CN109818765A CN201711162701.5A CN201711162701A CN109818765A CN 109818765 A CN109818765 A CN 109818765A CN 201711162701 A CN201711162701 A CN 201711162701A CN 109818765 A CN109818765 A CN 109818765A
Authority
CN
China
Prior art keywords
network element
mysql
jre
running environment
server
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
CN201711162701.5A
Other languages
Chinese (zh)
Other versions
CN109818765B (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.)
TD Tech Ltd
TD Tech Chengdu Co Ltd
Original Assignee
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 TD Tech Ltd filed Critical 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

Abstract

This application discloses a kind of network element deployment method and apparatus, it is total in deployment scenario applied to more network elements, wherein method includes:, if the running environment of server meets the deployment request of the network element, the dedicated JRE of the network element and MYSQL database to be installed in the server for each new network element;When the network element needs to start the application program of this network element, account is safeguarded according to the proprietary operating system of the network element, the JRE running environment variable and MYSQL running environment variable of the network element are obtained from the server, according to the JRE running environment variable of the network element and MYSQL running environment variable, start the application program.Using the present invention, the complexity of network element version upgrading and the skill requirement to network maintenance staff can be effectively reduced.

Description

A kind of network element deployment method and apparatus
Technical field
The present invention relates to mobile communication technologies, are total to the network element deployment method under deployment scenario more particularly to a kind of more network elements And device.
Background technique
In current more network element deployment schemes, network element software product often relies on Java Runtime Environment (Java Runtime Environment, JRE) and MySQL database management system under installation and operation.In more network element deployment schemes Multiple network elements need to share same set of common component (JRE and MYSQL).As shown in Figure 1, network element
Due to all network-element shares same set of JRE and MYSQL, each network element is installed or is required when upgrading to current system Installation condition, version number of JRE and MYSQL in environment etc. make a decision processing, and installation depends on previous net with service condition The installation condition of member.Moreover, this dependence is very strong, if teachings book is not installed or upgraded according to each network element issued with version The installation of description sequencing or upgrading will cause various catastrophe failures.If network maintenance staff does not press documentation requirements installation Or upgrade and cause to install or upgrade failure accordingly, then need network maintenance staff according to the extensive of research and development method completion failure It is multiple, in this way, will be very high to the skill requirement of network maintenance staff.
It can be seen that since the adjustment of common component or modification are needed according to unified version in existing more network element deployment schemes This carries out in a certain order, and the unilateral upgrading JRE of single network element and when MYSQL database will affect other network element versions publications Or service operation, so that the human cost of each network element version publication and time cost are all very high.
Summary of the invention
In view of this, being applied to more network elements the main purpose of the present invention is to provide a kind of network element deployment method and apparatus Altogether in deployment scenario, the complexity of network element version upgrading and the skill requirement to network maintenance staff can be effectively reduced.
In order to achieve the above object, technical solution proposed by the present invention are as follows:
A kind of network element deployment method is applied to more network elements and is total in deployment scenario, comprising:
For each new network element, if the running environment of server meets the deployment request of the network element, in the service The dedicated JRE of the network element and MYSQL database are installed in device;
When the network element needs to start the application program of this network element, account is safeguarded according to the proprietary operating system of the network element Number, the JRE running environment variable and MYSQL running environment variable of the network element are obtained from the server.
A kind of network element deployment device is applied to more network elements and is total in deployment scenario, comprising:
Installation unit is used for for each new network element, if the running environment of server meets the deployment request of the network element, The dedicated JRE of the network element and MYSQL database are then installed in the server;
Running unit, when for needing to start the application program of this network element when the network element, according to the proprietary behaviour of the network element Make system maintenance account, the JRE running environment variable and MYSQL running environment variable of the network element are obtained from the server.
In conclusion network element deployment method and apparatus proposed by the present invention, are applied to more network elements and are total in deployment scenario, to every Its separately installed dedicated JRE of a network element and MYSQL database, in this way, more network elements are disposed altogether on same linux server, The public services such as database used in each network element and JRE are changed independently of each other, and the upgrading of each network element itself, is safeguarded not installation The business operation of other network elements can be interfered.Correspondingly, the upgrading of each network element, installation, maintenance not will lead to other network elements occur therefore Barrier, so there is no need to network maintenance staff according to research and development method complete failure recovery network element version therefore can be effectively reduced The complexity of this upgrading and skill requirement to network maintenance staff.
Detailed description of the invention
Fig. 1 is that existing more network elements are total in deployment scheme, the schematic diagram of multiple one group of JRE and MYSQL of network-element share;
Fig. 2 is the method flow schematic diagram of the embodiment of the present invention;
Fig. 3 is that the more network elements realized using the present invention are total in deployment scheme, and multiple network elements independently dispose JRE's and MYSQL Schematic diagram;
Fig. 4 is the apparatus structure schematic diagram of the embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, right below in conjunction with the accompanying drawings and the specific embodiments The present invention is described in further detail.
Core of the invention thought is: each network element it is separately installed oneself JRE, define the environmental variance of oneself JRE, often A network element it is separately installed oneself the installation version of database MYSQL, customized MYSQL, oneself definition management itself MYSQL Database service process, in this way, can each network element can freely install repeatedly unloading installation operation, do not influencing other network elements just Often operation and externally offer service.
Fig. 2 is network element deployment method flow schematic diagram provided in an embodiment of the present invention, and this method is applied to more network elements and is total to portion It affixes one's name in scene, as shown in Fig. 2, this method comprises:
Step 201, for each new network element, if the running environment of server meets the deployment request of the network element, The dedicated JRE of the network element and MYSQL database are installed in the server.
It is in the server network element peace when the running environment of server meets the deployment request of network element in this step Fill its dedicated JRE and MYSQL database.In this way, by oneself separately installed JRE component and MYSQL database of each network element, So that JRE component and MYSQL database reach more network elements and are disposed on same server altogether with network element Stand-alone distribution and operation The public services such as database used in each network element and JRE are changed independently of each other, so as to ensure JRE component, MYSQL database Version upgrading synchronous with network element version, does not influence JRE component, the MYSQL database version of other network elements, i.e., each network element itself Upgrading, installation, attended operation do not influence other network elements.
Fig. 3 is that the more network elements realized using the present invention are total in deployment scheme, and multiple network elements independently dispose JRE's and MYSQL Schematic diagram.It services as shown in figure 3, network element A is used with the JRE and MYSQL for issuing oneself, oneself is sent out likewise, network element B is also used The JRE and MYSQL of cloth are serviced, and the upgrading, installation, maintenance that can achieve each network element in this way do not interfere with the business of other side's network element Operation.
Preferably, it is dedicated the network element can be installed in the server using following methods for each new network element JRE:
The JRE installation procedure of the network element is executed, and by obtained JRE running environment variable, increases to the server Operating system in the network element proprietary operating systems maintenance account configuration file in, the JRE running environment variable include from The JRE work operation catalogue of definition.
In the above method, need JRE running environment variable customized in the implementation procedure of JRE installation procedure (as certainly The JRE work operation catalogue of definition) increase to the configuration text that network element proprietary operating systems in server operating system safeguard account In part, so that hereafter, for executing application, network element can directly acquire corresponding JRE running environment under the account and become Amount.
Preferably, it is dedicated the network element can be installed in the server using following methods for each new network element MYSQL database:
The MYSQL installation procedure of the network element is executed, and obtained MYSQL running environment variable is increased into the service In the operating system of device in the data base configuration file of the network element, it is arranged according to the different principle in the port MYSQL of all network elements The port MYSQL of the network element, and the default port of the non-MYSQL installation procedure in the port MYSQL;The MYSQL running environment Variable includes customized MYSQL work operation catalogue and service database storage path.
In the implementation procedure of MYSQL installation procedure, it will customized MYSQL running environment variable is (such as customized MYSQL work operation catalogue and service database store path) and customized MYSQL starting configuration file.The above method In, it needs MYSQL running environment variable customized in the implementation procedure of MYSQL installation procedure (such as customized MYSQL work Make operation catalogue and service database store path), increase to the data base configuration file of the network element in server operating system In, when application program hereafter, to need to be implemented network element, obtained from the data base configuration file of the network element corresponding MYSQL running environment variable.
In addition, in the above method, the port MYSQL is necessary to ensure that as unique port, i.e., cannot be with the MYSQL of other network elements Port is identical, to avoid the MYSQL port collision problem between network element.
In practical applications, the installation of MYSQL in network element product installation kit with installing.If a network element is installed It names itself nemysql to service when MYSQL, uses customized/etc/ne.cnf data base configuration file.Hereafter, network element is transported When row is with using MYSQL, configuration file/etc/ne.cnf of network element itself will be used, without the use of default /etc/my.cnf Data base configuration file.The start command used are as follows: service nemysql start;What is used ceases and desist order are as follows: service nemysql stop。
Step 202, when the network element needs to start the application program of this network element, according to the proprietary operating system of the network element It safeguards account, the JRE running environment variable and MYSQL running environment variable of the network element is obtained from the server, according to this The JRE running environment variable and MYSQL running environment variable of network element, start the application program.
In this step, when each network element needs to start application program, can directly it be safeguarded according to its proprietary operating system Account obtains the JRE running environment variable and MYSQL running environment variable of this network element, in this manner it is possible to be based on from server The JRE running environment variable and MYSQL running environment variable of this network element, run the application program.
Preferably, can be adopted for the network element disposed by the way of multiple-network-element share JRE and MYSQL in system These network elements are upgraded with following methods, make each that there is dedicated JRE and MYSQL component:
Each network element for needing to upgrade is executed after the database transaction data of the network element and software product backup The JRE installation procedure of the network element;It executes DROP order and deletes the database transaction data of the network element, and retain the network element MYSQL runs program;The MYSQL installation procedure for executing the network element, using the backup data to the database of the network element into Row restores;The network element that the needs upgrade is the network element disposed by the way of multiple-network-element share JRE and MYSQL.
In above-mentioned upgrade method, need first to back up the database transaction data of network element to be upgraded and software product, in this way On the one hand, it can use the recovery that NE database is completed in the backup to database transaction data in network element updating success, separately On the one hand, network element can be restored using the data and product that are backed up when network element updating fails.
Fig. 4 is a kind of network element deployment apparatus structure schematic diagram corresponding with the above method, and the device is total applied to more network elements In deployment scenario, as shown in figure 4, the device includes:
Installation unit, for judging whether the running environment of server meets the deployment of the network element for each new network element It is required that if it is, installing the dedicated Java Runtime Environment JRE of the network element and MYSQL database in the server.
Running unit, when for needing to start the application program of this network element when the network element, according to the proprietary behaviour of the network element Make system maintenance account, the JRE running environment variable and MYSQL running environment variable of the network element obtained from the server, According to the JRE running environment variable of the network element and MYSQL running environment variable, start the application program.
Preferably, the installation unit, for it is dedicated to install the network element in the server for each new network element When JRE, the JRE installation procedure of the network element is executed, and by obtained JRE running environment variable, increases to the server In operating system in the configuration file of network element proprietary operating systems maintenance account, the JRE running environment variable includes making by oneself The JRE work operation catalogue of justice.
Preferably, the installation unit, for it is dedicated to install the network element in the server for each new network element When MYSQL database, the MYSQL installation procedure of the network element is executed, and obtained MYSQL running environment variable is increased into institute It states in the operating system of server in the data base configuration file of the network element, according to the different original in the port MYSQL of all network elements The port MYSQL of the network element, and the default port of the non-MYSQL installation procedure in the port MYSQL are then set;The MYSQL fortune Row environmental variance includes customized MYSQL work operation catalogue and service database storage path.
Preferably, described device further comprises upgrade unit, which is used for for each net for needing to upgrade Member executes the JRE installation procedure of the network element after the database transaction data of the network element and software product backup;Execute DROP The database transaction data of the network element is deleted in order, and retains the MYSQL operation program of the network element;Execute the MYSQL of the network element Installation procedure restores the database of the network element using the data of the backup;The network element for needing to upgrade is use The network element that the mode of multiple-network-element share JRE and MYSQL are disposed.
In conclusion the above is merely preferred embodiments of the present invention, being not intended to limit the scope of the present invention. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (8)

1. a kind of network element deployment method is applied to more network elements and is total in deployment scenario characterized by comprising
For each new network element, if the running environment of server meets the deployment request of the network element, in the server The dedicated Java Runtime Environment JRE of the network element and MYSQL database are installed;
When the network element needs to start the application program of this network element, account is safeguarded according to the proprietary operating system of the network element, from The JRE running environment variable and MYSQL running environment variable that the network element is obtained in the server are transported according to the JRE of the network element Row environmental variance and MYSQL running environment variable, start the application program.
2. the method according to claim 1, wherein installation should in the server for each new network element The dedicated JRE of network element includes:
The JRE installation procedure of the network element is executed, and by obtained JRE running environment variable, increases to the behaviour of the server Make in system in the configuration file of network element proprietary operating systems maintenance account, the JRE running environment variable includes customized JRE work operation catalogue.
3. the method according to claim 1, wherein installation should in the server for each new network element The dedicated MYSQL database of network element includes:
The MYSQL installation procedure of the network element is executed, and obtained MYSQL running environment variable is increased into the server In operating system in the data base configuration file of the network element, the net is set according to the different principle in the port MYSQL of all network elements The port MYSQL of member, and the default port of the non-MYSQL installation procedure in the port MYSQL;The MYSQL running environment variable It works including customized MYSQL and runs catalogue and service database storage path.
4. the method according to claim 1, wherein the method further includes:
The net is executed after the database transaction data of the network element and software product backup for each network element for needing to upgrade The JRE installation procedure of member;It executes DROP order and deletes the database transaction data of the network element, and retain the MYSQL fortune of the network element Line program;The MYSQL installation procedure for executing the network element restores the database of the network element using the data of the backup; The network element that the needs upgrade is the network element disposed by the way of multiple-network-element share JRE and MYSQL.
5. a kind of network element deployment device is applied to more network elements and is total in deployment scenario characterized by comprising
Installation unit is used for for each new network element, if the running environment of server meets the deployment request of the network element, The dedicated Java Runtime Environment JRE of the network element and MYSQL database are installed in the server;
Running unit, when for needing to start the application program of this network element when the network element, according to the proprietary operation system of the network element System maintenance account, obtains the JRE running environment variable and MYSQL running environment variable of the network element from the server, according to The JRE running environment variable and MYSQL running environment variable of the network element, start the application program.
6. device according to claim 5, which is characterized in that the installation unit is used for for each new network element, in institute It states when the network element dedicated JRE is installed in server, executes the JRE installation procedure of the network element, and obtained JRE is run into ring Border variable increases in the operating system of the server in the configuration file of network element proprietary operating systems maintenance account, institute Stating JRE running environment variable includes customized JRE work operation catalogue.
7. device according to claim 5, which is characterized in that the installation unit is used for for each new network element, in institute State when the network element dedicated MYSQL database is installed in server, execute the MYSQL installation procedure of the network element, and will obtained by MYSQL running environment variable increase in the operating system of the server in the data base configuration file of the network element, according to The port MYSQL of the network element, and the non-MYSQL installation in the port MYSQL is arranged in the different principle in the port MYSQL of all network elements The default port of program;The MYSQL running environment variable includes customized MYSQL work operation catalogue and service database Store path.
8. device according to claim 5, which is characterized in that described device further comprises upgrade unit, for for Each network element for needing to upgrade executes the JRE peace of the network element after the database transaction data of the network element and software product backup Fill program;It executes DROP order and deletes the database transaction data of the network element, and retain the MYSQL operation program of the network element;It holds The MYSQL installation procedure of the row network element, restores the database of the network element using the data of the backup;It is described to need to rise The network element of grade is the network element disposed by the way of multiple-network-element 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 true CN109818765A (en) 2019-05-28
CN109818765B 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 (4)

* 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
CN102843252A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Method and device for updating network element through network management
US20160095107A1 (en) * 2011-10-11 2016-03-31 CBF Networks, Inc. Method for deploying a backhaul radio with antenna array
CN106843936A (en) * 2016-12-29 2017-06-13 北京航天测控技术有限公司 A kind of method of automatically dispose Web applied environments

Patent Citations (4)

* 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
CN102843252A (en) * 2011-06-23 2012-12-26 中兴通讯股份有限公司 Method and device for updating network element through network management
US20160095107A1 (en) * 2011-10-11 2016-03-31 CBF Networks, Inc. Method for deploying a backhaul radio with antenna array
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
CN109818765B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN107229520B (en) Data center operating system
US8010504B2 (en) Increasing application availability during automated enterprise deployments
CN108170448B (en) System for automatically and efficiently releasing software update version
JP5444178B2 (en) Backup / restore processing device, backup / restore processing method and program
CN105099739A (en) Plug-in type software deployment method and apparatus, and application server
CN103716188B (en) The management of Linux server cluster management and maintaining method
CN113569987A (en) Model training method and device
EP2115586A2 (en) Distributed platform management for high availability systems
WO2016045439A1 (en) Vnfm disaster-tolerant protection method and device, nfvo and storage medium
CN110932914B (en) Deployment method, deployment device, hybrid cloud system architecture and computer storage medium
CN106201773A (en) The upgrading of instance system, cloud system and instance system or restoration methods
US20160127177A1 (en) Installation of an arbitrary server as an extenstion of a computing platform
CN111045854A (en) Method, apparatus and computer program product for managing service containers
WO2016013199A1 (en) Virtualization substrate management device, virtualization substrate management system, virtualization substrate management method, and recording medium for recording virtualization substrate management program
US11645086B2 (en) System and method for implementing a filesystem agent management solution
CN110399152A (en) A kind of device systems double copies upgrade method and device
CN103473064A (en) Method for monitoring use conditions of magnetic disk of virtual machine in host machine
CN107463390B (en) Software upgrading method and upgrading server
CN102567050B (en) The method and apparatus of B/S system remote deploying projects
CN110268378B (en) Method for creating data backup, storage medium and virtual server
CN109165032A (en) A kind of baseboard management controller BMC setting method, device and storage medium
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
CN104461757A (en) Method and device for restoring virtual machines
CN116243930A (en) Multi-version parallel environment design method and construction system
CN109818765A (en) A kind of network element deployment method and apparatus

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