CN108845808A - Middleware installation method, device, computer equipment and storage medium - Google Patents

Middleware installation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108845808A
CN108845808A CN201810650549.3A CN201810650549A CN108845808A CN 108845808 A CN108845808 A CN 108845808A CN 201810650549 A CN201810650549 A CN 201810650549A CN 108845808 A CN108845808 A CN 108845808A
Authority
CN
China
Prior art keywords
middleware
server
target
installation
information
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
CN201810650549.3A
Other languages
Chinese (zh)
Other versions
CN108845808B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810650549.3A priority Critical patent/CN108845808B/en
Priority to PCT/CN2018/109442 priority patent/WO2019242162A1/en
Publication of CN108845808A publication Critical patent/CN108845808A/en
Application granted granted Critical
Publication of CN108845808B publication Critical patent/CN108845808B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of middleware installation method, device, computer equipment and storage medium.The method includes:Obtain the relevant information that need to install the server of middleware;According to the operation system information in the server configuration information, the determining and matched first kind middleware of the operation system information from the middleware relevant information prestored;According to environmental information locating for the server, the target middleware of one with the server local environment information matches are determined from the matched first kind middleware of the operating system;The target middleware is set on the server for providing the port numbers of service;If receiving installation instruction, according to the IP address of the port numbers of setting and the server, the target middleware is installed in the server.The embodiment of the present invention can simplify the installation procedure of middleware, reach the customization configuration and installation of middleware.

Description

Middleware installation method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of middleware installation method, device, computer equipment and Storage medium.
Background technique
It when enterprise increases server newly, generally requires and some middlewares is installed on the server, so that server can be transported Row application program, to play the function of server.The middleware installation on server is much dependent on manual participation at present, such as transports Installation corresponding middleware of the dimension personnel on each newly-increased server one by one.Although some enterprises have accomplished in installation Between part software function, but be all the simple installation only rested on to middleware software, there are many limitations, such as some steps Suddenly it requires manual intervention, can not such as accomplish the customization configuration of middleware and install.
Summary of the invention
The embodiment of the present invention provides a kind of middleware installation method, device, computer equipment and storage medium, can achieve The customization of middleware configures and installation.
In a first aspect, the embodiment of the invention provides a kind of middleware installation method, this method includes:
Obtain the relevant information that need to install the server of middleware.Wherein, the relevant information of the server includes described The IP address of environmental information locating for server, the configuration information of the server, the server;
According to the operation system information in the configuration information, the determining and behaviour from the middleware relevant information prestored Make the first kind middleware of system information matches;
According to environmental information locating for the server, one and the server are determined from the first kind middleware The target middleware of local environment information matches is to be recommended;
Judge whether user receives the target middleware recommended;
If user receives the target middleware recommended, the target middleware is set on the server for mentioning For the port numbers of service;
If receiving installation instruction, according to the IP address of the port numbers of setting and the server, among the target Part is installed in the server.
Second aspect, the embodiment of the invention provides a kind of middleware mounting device, which includes above-mentioned for executing The corresponding unit of middleware installation method described in first aspect.
The third aspect, the embodiment of the invention provides a kind of computer equipment, the computer equipment includes memory, with And the processor being connected with the memory;
The memory is for storing computer program, and the processor is for running the calculating stored in the memory Machine program, to execute middleware installation method described in above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of storage medium, the storage medium is stored with computer program, The computer program includes that program instruction is realized described in above-mentioned first aspect when described program instruction is executed by processor Middleware installation method.
The embodiment of the present invention need to install the relevant information of the server of middleware by obtaining, related from the middleware prestored The determining and matched target middleware of server relevant information in information, if user receives the target middleware, by the mesh Mark middleware is installed in the server.The embodiment can simplify installation procedure, reach middleware customization configuration and Installation.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is an application scenarios schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of middleware installation method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of middleware installation configuration interface provided in an embodiment of the present invention;
Fig. 4 is an a kind of sub-process schematic diagram of middleware installation method provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of middleware installation progress provided in an embodiment of the present invention;
Fig. 6 is a kind of another sub-process schematic diagram of middleware installation method provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic block diagram of middleware mounting device provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of installation unit provided in an embodiment of the present invention;
Fig. 9 is the schematic block diagram of adding unit provided in an embodiment of the present invention;
Figure 10 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The middleware (middleware) mentioned in embodiments of the present invention is a major class of basic software, belongs to reusable The scope of software, the centre of the application software in operating system software and user.The middleware is in operating system, network sum number On library, the lower layer of application software, total effect is to provide the ring of operation and exploitation for the application software in oneself upper layer Border helps the application software of user flexibility, efficiently exploitation and integrated complex.
Fig. 1 is an application scenarios schematic diagram provided in an embodiment of the present invention.In application scenarios shown in Fig. 1, respectively Including middleware automation mounting platform (being corresponding with web terminal) and server.Wherein, the operating system of server can be Liunx operating system is also possible to OS operating system, can also be widows operating system.It is flat in middleware automation installation In platform, the relevant information of different middlewares can be added according to the demand of enterprise, using the relevant information of different middlewares as prestoring Middleware relevant information.Wherein, different middlewares include the middleware of different money different editions.A plurality of differences are can be regarded as Middleware may have multiple and different versions in every money middleware.In being added in middleware automation mounting platform Between part relevant information after, then add the relevant information that need to install the server of middleware, wherein the relevant information packet of server Include the information such as environmental information locating for server, the IP address of the configuration information of server, server.In other embodiments, If the relevant information that need to install the server of middleware has existed, the relevant information of the server is directly acquired.According to clothes The configuration information for environmental information and server locating for device of being engaged in, determines a matched mesh from the middleware relevant information prestored Middleware is marked to be recommended.Judge whether user receives the target middleware recommended, if user does not receive in the target recommended Between part, receive user selection middleware, using the selected middleware of user as target middleware.Setting target middleware exists For providing the port numbers of service on server.If finally receiving installation instruction, according to the IP address of server and setting Port numbers, by target middleware one button installation into server.During one button installation, if there is installation exception etc., meeting Error information is fed back into user, while can also show the progress of installation to user, to facilitate user to understand the process of installation.It should Scheme determines a matched target middleware according to the relevant information of server from the middleware relevant information prestored, and will The target middleware one button installation simplifies installation procedure into server, while being matched according to the relevant information of server The installation version of middleware can achieve the customization configuration and installation of middleware.
The embodiment of the method that following present invention provides is run in middleware automation mounting platform.
Fig. 2 is a kind of flow diagram of middleware installation method provided in an embodiment of the present invention.This method includes following Step S201-S207.
S201 obtains the relevant information that need to install the server of middleware.Wherein, the relevant information of server includes service The IP address of environmental information locating for device, the configuration information of server, server.
Wherein, environmental information locating for server includes network environment, application environment, application scenarios.Wherein, application environment Including test environment, exploitation environment, production environment (docking external system) and test environment, exploitation environment, production environment institute Cluster information etc. where corresponding server.Network environment includes the case where the network architecture, request, concurrency etc..Application scenarios It is different according to the difference of different server realization function including https encrypted transmission, agency's forwarding etc..The configuration of server Information includes the operating system of server and the version of operating system etc..Wherein, operating system include widows operating system, Liunx operating system, OS operating system etc..
Specifically, the relevant information that need to install the server of middleware is obtained, i.e. step S201 includes:Judge whether to have deposited In the server that need to install middleware;The server for needing installation middleware if it exists, obtains the relevant information of the server;If There is no the servers that need to install middleware, add the relevant information of server.Can be to determine according to the IP address of server The no existing server.The IP address of server is inputted such as in input frame, input finishes (such as the light of input if detecting Mark does not reach number of characters corresponding to IP address in the input frame or total number of characters of input), according to the IP address of server To determine whether or not there have been the server.Wherein, the server that need to install middleware can be one, be also possible to it is multiple, It is so corresponding, obtain the relevant information of one or more server.It is to be understood that in one or more different clothes The middleware is installed simultaneously on business device.I.e. on batch installation middleware to server, in this way, need not be among installation one by one On part to each server for needing to install middleware, time, human cost and corresponding workload is greatly saved, improves The efficiency of installation middleware.
S202 is determined from the middleware relevant information prestored according to the operation system information in server configuration information With the matched first kind middleware of operation system information.
Wherein, the relevant information of middleware includes middleware installation software, the application ring with middleware installation Software match The information such as border, application scenarios, operating system.Wherein, middleware installation software includes middleware installation kit, configuration file, centre Part monitoring packet etc..Wherein, middleware monitoring packet such as monitors the operating status of the middleware, for example examine for monitoring the middleware Survey whether middleware can be used, whether the amount that the middleware is downloaded in request increases extremely, or leads to middleware by hacker's malicious attack It is abnormal etc.;It include the parameter configuration etc. after the corresponding version of the middleware, environmental resource, tuning in configuration file.Wherein, environment Resource refers to before installing corresponding middleware, some environmental resources for needing operating system to have, for example needs to operate and be Some function libraries etc. that system has, the environmental resource can operate normally on an operating system after the middleware can be allowed to install. Such as environmental resource corresponding to nginx middleware, including GCC (GNU Compiler Collection) compiler, C++, The library pcre, the library zlib, the library OpenSSL etc..
Specifically, according to the operation system information in server configuration information, from the middleware relevant information prestored really The fixed and matched first kind middleware of operation system information, i.e. step S202, including:According to the operation in server configuration information System information judges whether the operating system of the one or more servers obtained is same operating system;If not same behaviour Make system, delete server corresponding to different operating system, so that remaining server has same operating system;If For the same operating system, then selected and the matched first kind middleware of operating system from the middleware relevant information prestored. It is to be understood that if need to install middleware server only one, directly selected from the middleware relevant information prestored And install with the matched middleware of server operating system, if need to install the corresponding server of middleware have it is multiple, then multiple The operating system needs of server are identical, can just install in batches with a middleware.
S203, the environmental information according to locating for server determine one and ring locating for server from first kind middleware The target middleware of border information matches is to be recommended.
Target middleware be not only matched with the operation system information of server, but also with server local environment information The middleware matched.
Specifically, step S203, including:The environmental information according to locating for server is found out from first kind middleware With the middleware of server local environment information matches;It is more whether the middleware of judgement and server local environment information matches has It is a;If have it is multiple, according to preset rules from one middleware of multiple middle selections, as with server local environment information matches Target middleware is to be recommended;If there is a middleware, using a middleware as with server local environment information The target middleware matched is to be recommended.Wherein, if having multiple, Ke Yili with the middleware of server local environment information matches Xie Wei has multiple and different versions with the middleware of server local environment information matches, multiple different version all with clothes Business device local environment information matches.Wherein, a middleware is selected from multiple middlewares according to preset rules, including:According to The highest principle of version selects a middleware from multiple middlewares;Or according to the highest principle of installation rate from multiple centres A middleware is selected in part;Or a middleware is randomly choosed from multiple middlewares according to randomly assigne;Or according to The principle that version, installation rate combine randomly chooses a middleware from a middleware;Or the multiple middlewares of display, it receives and uses The middleware that family is selected from multiple middlewares;Or one is selected from multiple middlewares according to other suitable principles Middleware.Using selected middleware as the target middleware with server local environment information matches.
S204, judges whether user receives the target middleware recommended.
In the present embodiment, the target middleware of recommendation is shown in the web interface of middleware automation mounting platform (as pacified Fill configuration interface) in, specifically, input frame or selection as corresponding to the middleware field being shown in installation configuration interface In frame.If detecting that user edits the data in the input frame or choice box such as to delete, it is determined that user Do not receive the target middleware recommended;Otherwise, it determines user receives the target middleware recommended.Wherein, carrying out editor can manage Xie Wei is increased or is deleted or modified to the data in the input frame or choice box, if cursor is only put into institute It states in input frame or choice box, without the operation for causing other any, is then considered as and is not edited.
S205 receives the middleware of user's selection if user does not receive the target middleware recommended, will be in user's selection Between part as target middleware.
Wherein, receive user selection middleware, the middleware that user is selected as target middleware, including:It receives The middleware that user inputs in the input frame corresponding to middleware field, the middleware that user is inputted as target among Part;Or it is shown in the choice box corresponding to middleware field with the matched middleware of server relevant information for user's choosing Select, receive the middleware that selects in the choice box corresponding to middleware field of user, using the selected middleware of user as Target middleware.
S206, setting target middleware are used to provide the port numbers of service on the server.
If user receives the target middleware recommended or user does not receive the target middleware recommended, user's choosing is received After the target middleware selected, setting target middleware is used to provide the port numbers of service on the server.Port numbers refer to Port in ICP/IP protocol, the range of port numbers is from 0 to 65535, such as 80 ports for browsing web service, is used for 21 ports of FTP service etc..One terminal for possessing IP address can provide many network services, such as Web service, FTP Service, SMTP service etc..These services can be realized by 1 IP address, and IP address and the relationship of network service are one Different services is distinguished to more relationships, therefore indeed through " IP address+port numbers ".
If it is multiple to need the server of installation targets middleware to have, the setting target middleware is on the server For provide service port numbers, i.e. step S206, including:Judge whether to receive the mark using different port number;If connecing The mark using different port number is received, the interface that multiple port numbers are set is called;By the interface, multiple clothes are respectively set For providing the port numbers of service on business device;If not receiving the mark using different port number, multiple servers are set and are used for The port numbers for providing service are the same end slogan.Such as in the web interface of middleware automation mounting platform (such as installation configuration circle Face) on display " use different port number " associated button, if detecting, user clicks the button, determines and receives using not With the mark of port numbers, then the interface that multiple port numbers are set is called, which can indicate by multiple input frames, multiple The data inputted in input frame and multiple servers correspond.The target middleware is respectively set in multiple clothes by the interface User provides the port numbers of service on business device.Under normal circumstances, default uses the same end slogan, it can be understood as, installation is same The server of target middleware may be very much the server in same cluster, in same cluster, the target middleware greatly Port numbers for providing server generally use identical port numbers.
S207, according to the IP address of the port numbers of setting and server, target middleware is pacified if receiving installation instruction It is attached in server.
" one button installation ", " installation " associated button are shown such as in interface, user clicks " key peace if detecting The associated buttons such as dress ", " installation ", then receive installation instruction.If receiving installation instruction, according to the port numbers and service of setting The IP address of device, target middleware is installed in server.The embodiment is selected and is serviced according to the relevant information of server The matched middleware of device realizes the customization configuration and installation of middleware.
In one embodiment, multiple if the server of installation targets middleware is needed to have, it is corresponding in each server multiple Different accounts, different accounts correspond to different permissions.Such as account administrator, user1, user2 is respectively corresponded Different permissions.So, before receiving installation instruction, the method also includes:Be arranged the server need to install it is described The account of target middleware.If described receive installation instruction, according to the IP address of the port numbers of setting and server, by target Middleware is installed in server, including:If receiving installation instruction, according to the IP address of the port numbers of setting and server, Target middleware is installed under the account in server.
Specifically, the server, which is arranged, need to install the account of the target middleware, including:Judging whether to receive makes With the mark of different accounts;If receiving the mark using different accounts, the interface that different accounts are set is called;It is connect by described Mouthful, the account that need corresponding to multiple servers install the target middleware is respectively set;Different accounts are used if not receiving The mark at family is arranged need corresponding to multiple servers and installs the account of the target middleware for same account or using silent The account recognized.Such as display " uses different accounts on the web interface of middleware automation mounting platform (such as installation configuration interface) The associated button at family ", if detecting, user clicks the button, determines the mark received using different accounts, then calls and set Set the interface of different accounts, which can be indicated by multiple input frames, the data inputted in multiple input frames with it is multiple Server corresponds.The account that need corresponding to multiple servers install the target middleware is respectively set by the interface Family.In most cases, using the account of default, the account of such as default is administrator.It should be noted that the implementation The account mentioned in example may include that account name and password will to indicate to enter in server by account name and password Target middleware was mounted under the account.In some cases, it is not provided with password, it is considered that password is sky.
Fig. 3 is the schematic diagram of middleware installation configuration interface provided in an embodiment of the present invention.On the installation configuration interface, There is the letter such as the IP address field of corresponding server, the middleware field of recommendation, port number field and " one button installation " button Breath.The IP address information there are two displays in the corresponding text box of IP address field of server, 10.20.123.98, 10.20.123.99.There is the target middleware of a recommendation in the corresponding combobox of middleware field of recommendation:nginx- 1.12.1.Wherein, nginx is target middleware title, and 1.12.1 is the corresponding version of target middleware.In the IP of server In the corresponding text box of location field, in the corresponding combobox of middleware field of recommendation, it is all corresponding with " x " number.It clicks and is somebody's turn to do " x " Number, corresponding entry deletion such as can be deleted nginx-1.12.1 target middleware.By nginx-1.12.1 target middleware It deletes, it is meant that user does not receive the target middleware recommended.After nginx-1.12.1 target middleware is deleted, it can click Combobox selects corresponding middleware, using the middleware selected as target middleware.In the corresponding text box of port number field In, it can be with input terminal slogan, such as port numbers 6633.In the lower section of port numbers, there are a radio button, radio button instruction: Use different port number.If detecting the radio button that click should " using different port number ", different ends are used then receiving The mark of slogan.After being provided with, " one button installation " button is clicked, it will one on the corresponding server of two IP address informations Key installs the corresponding target middleware of middleware field, and the port numbers that server providing services are arranged are 6633.It needs to illustrate , Fig. 3 is only example.It should be noted that all information of the display in Fig. 3 can be all saved in configuration file.
In other embodiments, the host name information of server can also be added in Fig. 3, to facilitate memory;It can be with Other relevant informations of server, the environmental information as locating for server, configuration information of server etc., to facilitate user is added The relevant information of server is understood, to further confirm that the server for needing installation targets middleware.In other embodiments, may be used also The information such as middleware administrator, middleware contact person are added.Middleware administrator can be understood as the target middleware Owner, i.e. founder;Middleware contact person can be understood as the staff for having the right to operate the target middleware, in Between part contact person can be multiple.In other embodiments, the account that installation targets middleware is needed corresponding to server can also be added Family information, target middleware to be installed under the account in server according to account information.
In one embodiment, as shown in figure 4, target middleware is installed in server, include the following steps S401- S404。
S401, the installation environment of initialized target middleware carry out parameter verification to the installation environment of target middleware.
Wherein, the installation environment of initialized target middleware includes the account name and password, initialization for initializing server Configuration item etc. in the environmental resource of installation targets middleware, initial configuration file.Wherein, the account name of server is initialized And password, it can be understood as, may relate to multiple accounts on one server, and the installation of corresponding target middleware and Use the specified permission for being wherein some account.Specifically, the account name and password of initialization server, including:It obtains preparatory The account name and password of configuration;The preconfigured account name and password are searched in the server;If finding the preset configuration Account name and password, according to the account name and password enter in server.In most cases, the account name of default and close is used Code, such as the entitled administrator of default account, password 123.Preconfigured account name and password, can be in Between part automation mounting platform web interface (such as installation configuration interface) on pre-set multiple and different account name and close Code, is also possible to the account name and password using default.Corresponding environmental resource in initial configuration file, it can be understood as, Before each software is installed, operating system is needed to have certain function and environment, as required for target middleware operation Library function etc..The environmental resource of installation targets middleware is initialized, including:Obtain the required life of initialization context resource It enables, such as if liunx system, then required order is liunx order;It, will be preparatory according to required order The environmental resource of setting is installed in server, as included system file library, system packet involved in environmental resource etc..Such as installation In the process, order using some systems, such as hostname, ping etc. is needed to order, so needing before the mounting phase The system command of pass initializes and prepares number to install system library and lib file that the software needs to use.Initial configuration Configuration item in file is to be initialized according to the configuration item in configuration file.
Carrying out parameter verification to the installation environment of target middleware includes detection port numbers with the presence or absence of conflict such as port numbers Whether whether occupied, detection system version meet the requirements, for installation distributing system resource of the target middleware etc..Its In, whether detection system version meets the requirements, it can be understood as operating system of the version of some target middlewares to server It requires, the version of some softwares is based on higher operating system version, such as redhat7 and centos7.For the mesh Mark the installation distributing system resource of middleware, it can be understood as, the installation of any target middleware is required to occupy related Server system resource, such as CPU, memory, IO etc., such as how many memory, the number using CPU core number occupied.For Each target middleware has the minimum resources distribution data and optimal resource allocation data of starting target middleware, if service For the remaining inadequate resource of device to start the target middleware, that just should not be allowed to the target middleware to install in server.Tool Body, be the installation distributing system resource of the target middleware, including:Obtain the preset minimum resources distribution of target middleware Data and optimal resource allocation data;Judge whether the remaining resource data of server is greater than minimum resources distribution data;If no Data are distributed greater than minimum resources, then issue prompt, to indicate server resource deficiency, it is meant that be the installation of target middleware Distributing system resource is unsuccessful;Data are distributed if more than minimum resources, judge whether to be greater than optimal resource allocation data;If more than Optimal resource allocation data then distribute corresponding resource in optimal resource allocation data for target middleware;If no more than best Resource allocation data then distributes minimum resources for target middleware and distributes corresponding resource in data.More than it should be pointed out that The installation environment of the initialized target middleware referred to and the installation environment of target middleware is carried out involved in parameter verification Content only enumerate, in other examples, it is also possible to other contents can be related to.While it is noted that above The installation environment of the initialized target middleware referred to and the installation environment of target middleware is carried out involved in parameter verification Content do not limit and specific execute sequence.Specifically execution sequence can be determined according to actual demand.
S402, if the installation environment success of initialized target middleware, and pass through the ginseng to target middleware installation environment Number is examined, and uploads target middleware installation software into server.
S403, installation targets middleware installs the target middleware installation kit in software in the server.Specifically, it parses Target middleware installation kit generates target middleware installation kit script;Execute the target middleware installation kit script.
Mount message is synchronized in the corresponding configuration file of target middleware by S404.
Wherein, mount message include be installed the time, the relevant information of server, target middleware, setting target Middleware is used to provide port numbers, the occupied server resource of the corresponding target middleware of the version etc. of service.At it In his embodiment, mount message further includes the information such as account, middleware administrator, the middleware contact person of setting.It should be noted that , configuration file mentioned herein includes that target middleware (is installed software upload to service by the configuration file in server In device, because including configuration file in target middleware installation software, have configuration file involved in server), simultaneously Including the configuration file for including in mount message table in middleware automation mounting platform.When being installed, the mount message The content for the configuration file for including in table is consistent with the content of the configuration file in server.
Above step S401-S404 is the process of installation targets middleware on the server.In this way, automatic installation is intermediate Part simplifies the process of middleware installation.
During installation targets middleware, the progress of installation can be shown, to facilitate user to understand the process of installation.Such as It is the schematic diagram of target middleware installation progress shown in Fig. 5.Wherein, including four steps:It records information, initialization, upload mesh It marks middleware and software, installation targets middleware (perform script), synchronization profile is installed, wherein record information refers to remembering The information being arranged in record installation configuration interface, initialization, upload target middleware installation software, installation targets middleware (execute Script), synchronization profile this four steps correspond to step S401-S404.Face is shown after the information is recorded:It is finished;? Initialization is shown below:In execution;It uploading target middleware installation software, installation targets middleware (perform script), synchronizing It is shown behind configuration file:Etc. pending.It should be pointed out that it is example that the installation progress, which is,.In other embodiments, exist " in execution " also may include the progress that step executes, such as execute 50% data;It can also be shown according to practical executive condition The content specifically executed can be substituted for data such as " whether detection port conflict " such as in " in execution ".In other embodiments In, on the surface can also only show specifically be carrying out in step, other the step of do not show.
During installation targets middleware, can also it catch the exception.Occur any exception during installation, all can It is prompted, to improve the experience of user.
After part is installed between in the target, peace can be saved in the mount message table on middleware automation mounting platform Fill information.The target middleware and relevant mount message of installation can be inquired on middleware automation mounting platform.Such as It is as shown in table 1 to inquire obtained mount message.In table 1, have target middleware, server info, server ip, port numbers, The data item such as installation condition, cluster/configuration.As the first row information respectively includes:Nginx-1.12.1, server local environment letter Breath, 10.20.123.98,6633, modification are installed successfully, cluster information, configuration file.Wherein, there is the text of underscore in table 1 Character segment is indicated to check relevant information after clicking or be edited to relevant information.Such as, it clicks " locating for server Environmental information " can check server local environment information, and port number information can be modified by clicking " modification ", click " cluster letter Breath " can check the affiliated cluster of server, and configuration file corresponding to the target middleware can be checked by clicking " configuration file " And the information in configuration file corresponding to modification, it can be viewed in configuration file among the corresponding target of the version Occupied server resource of part etc..In the present embodiment, the information inquired further includes the information such as set-up time, in table 1 In do not show.In other embodiments, mount message can also include other contents, such as middleware administrator, middleware Contact person etc..
Table 1 inquires obtained mount message
In other embodiments, before step S202, the method also includes:Add the relevant information of middleware.Such as Shown in Fig. 6, the relevant information of middleware is added, including:Following steps S601-S605.
S601 is answered under same operating system and under the corresponding environmental resource of middleware in different parameters configuration, difference Pressure test is carried out to the middleware of different editions under environment, wherein different parameters configure corresponding different application scene.
S602, according to different parameters configuration, different application environment, different editions middleware corresponding to pressure test knot The demand information of fruit and server, the middleware for selecting pressure testing results more excellent/optimal, and believed according to the demand of server Breath is adjusted the corresponding parameter of the middleware, to obtain the parameter configuration after tuning, wherein the demand information of server Including environmental information locating for server, i.e. application environment, application scenarios, network environment.It is to be appreciated that according to middleware pair The different parameters configuration answered, the pressure testing results under different application environment, select to be most suitable for server local environment information Parameter collocation, to obtain the parameter configuration after tuning and corresponding middleware, by after the tuning parameter configuration and it is corresponding in Between part save.Parameter configuration and corresponding middleware after being most suitable for server local environment information, the tuning may have one, May also have multiple.Pressure testing results are more excellent it is to be understood that pressure testing results take in the top preset from high to low Pressure testing results corresponding to number, as preferably pressure testing results.If pressure testing results only one, choose should Pressure testing results are as pressure testing results more.The preferably stabilization of middleware corresponding to pressure testing results, performance It fits good.Wherein, pressure testing results include:Under same concurrency, the corresponding transfer capability of the middleware of different editions, consumption Server resource etc..Adjustment for parameter, such as nginx middleware, when application scenarios are related to https encrypted transmission When, it needs to open the SSL module in nginx middleware parameter;Application scenarios and are related to a large amount of using nginx as static state When the upload downloading of file, the compressing file function of nginx middleware parameter is opened;Turn if application scenarios are related to agency Hair, then nginx middleware parameter is acted on behalf of forwarding capability opening etc..If the application scenarios of server include https encryption Transmission, agency forwarding etc., then by the nginx middleware SSL module parameter, act on behalf of retransmitting paramater open.According in ring Under the resource of border, pressure test is carried out to the middleware under different parameters configuration and different application scene, is surveyed further according to pressure The demand information of test result and server, adjusting parameter, to obtain the parameter configuration after tuning, so that the middleware meets enterprise Demand, reached middleware customization configuration and middleware Performance optimization configuration.
Parameter configuration after tuning is written to the middleware and corresponded in configuration file corresponding to version by S603.
Configuration file, the middleware installation kit of corresponding version, middleware monitoring packet are saved as corresponding middleware and pacified by S604 Fill software.
The correspondence middleware is installed software by S605, application environment, the applied field with middleware installation Software match The information preservations such as scape, operating system complete the phase of the middleware under the operating system into the relevant information of middleware Close the addition and preservation of information.
Above-mentioned steps S601-S605 is executed, to complete the correlation of corresponding different middlewares under multiple operating systems The addition and preservation of information, using the relevant information of the middleware after preservation as the relevant information of the middleware prestored.
It is to be understood that the middleware relevant information saved in middleware automation mounting platform is by pressure test Afterwards, the middleware relevant information of the suitable enterprise demand of screening.The customization that the middleware relevant information has reached middleware is matched It sets and is configured with the Performance optimization of middleware.It is selected further according to reaching in the middleware for customizing configuration and Performance optimization configuration The middleware for meeting current server relevant information out is installed, and the customization installation of middleware has been reached.
During subsequent development, if including new middleware or new middleware version, by this it is new in Between part or new middleware version save in the middleware relevant information into middleware automation mounting platform, for subsequent Install and use.
Fig. 7 is a kind of schematic block diagram of middleware mounting device provided in an embodiment of the present invention.During the device is applied to Between part automation mounting platform in.As shown in fig. 7, the device 70 includes acquiring unit 701, system matches unit 702, environment With unit 703, judging unit 704, receiving unit 705, port setting unit 706, installation unit 707.
Acquiring unit 701, for obtaining the relevant information that need to install the server of middleware.The wherein related letter of server Breath includes environmental information, the IP address of the configuration information of server, server locating for server.
Specifically, acquiring unit 701, including:There are judging unit, server acquiring unit, server adding units.Its In, there are judging units such as to input server for judging whether the existing server that need to install middleware in input frame IP address, if detect input finish (as input cursor not the input frame or total number of characters of input with reaching IP Number of characters corresponding to location), the server is determined whether or not there have been according to the IP address of server.Server obtains single Member obtains the relevant information of the server for needing the server of installation middleware if it exists.Server adding unit is used In the server for needing installation middleware if it does not exist, the relevant information of server is added.Wherein, the server of middleware need to be installed It can be one, be also possible to multiple, then corresponding, obtain the relevant information of one or more server.
System matches unit 702, for according to the operation system information in server configuration information, from the middleware prestored The determining and matched first kind middleware of operation system information in relevant information.
Specifically, system matches unit 702, including:Operating system judging unit deletes unit, Systematic selection matching list Member.Wherein, operating system judging unit, for judging obtain one according to the operation system information in server configuration information Whether the operating system of a or multiple servers is same operating system.Unit is deleted, if one or more clothes for acquisition The operating system of business device is not same operating system, server corresponding to different operating system is deleted, so that remaining Server has same operating system.Systematic selection matching unit, if the operating system for one or more servers is same One operating system then selects and the matched first kind middleware of operating system from the middleware relevant information prestored.
Environments match unit 703 determines one for the environmental information according to locating for server from first kind middleware Target middleware with server local environment information matches is to be recommended.
Specifically, environments match unit 703, including:Matched and searched unit, matching judgment unit, environmental selection matching are single Member.Wherein, matched and searched unit finds out and takes from first kind middleware for the environmental information according to locating for server The middleware for device local environment information matches of being engaged in.Matching judgment unit, for judging and server local environment information matches It is multiple whether middleware has.Environmental selection matching unit, if more for having with the middleware of server local environment information matches It is a, according to preset rules from one middleware of multiple middle selections, as among the target of server local environment information matches Part is to be recommended.Environmental selection matching unit, if being also used to have one with the middleware of server local environment information matches, Using a middleware as the target middleware with server local environment information matches to recommend.
Judging unit 704, for judging whether user receives the target middleware recommended.
Receiving unit 705 receives the middleware of user's selection if not receiving the target middleware recommended for user, will The middleware that user selects is as target middleware.
Port setting unit 706, if not receiving the mesh recommended for the target middleware of user's receiving recommendation or user Middleware is marked, after the target middleware for receiving user's selection, setting target middleware is used to provide the end of service on the server Slogan.
Specifically, multiple if the server of installation targets middleware is needed to have, port setting unit 706, including:Port-mark Judging unit, port interface call unit, port numbers setting unit.Wherein, port-mark judging unit connects for judging whether Receive the mark using different port number.Port interface call unit, if being adjusted for receiving the mark using different port number With the interface that multiple port numbers are arranged.Port numbers setting unit, for being respectively set on multiple servers and using by the interface In the port numbers of offer service;And if for not receiving the mark using different port number, multiple servers being arranged and are used for The port numbers for providing service are the same end slogan.
Installation unit 707, if for receiving installation instruction, it, will according to the IP address of the port numbers of setting and server Target middleware is installed in server.
In one embodiment, multiple if the server of installation targets middleware is needed to have, it is corresponding in each server multiple Different accounts, different accounts correspond to different permissions.Such as account administrator, user1, user2 is respectively corresponded Different permissions.So, the middleware mounting device further includes:Account setup unit, account setting unit, for being arranged The server need to install the account of the target middleware.Installation unit, if being also used to receive installation instruction, according to setting Port numbers and server IP address, target middleware is installed under the account in server.
Specifically, the account setup unit, including:Account identification judging unit, account interface call unit, installation account Family setting unit.Wherein, account identification judging unit receives the mark using different accounts for judging whether.Account connects Mouth call unit, if calling the interface that different accounts are arranged for receiving the mark using different accounts.Account setup is installed Unit, for the account that need corresponding to multiple servers install the target middleware to be respectively set by the interface;With And if do not receive mark using different accounts, the account that need corresponding to multiple servers install the target middleware is set Family is same account or the account using default.
In one embodiment, as shown in figure 8, installation unit 707, including:Initialization unit 801, uploading unit 802, in Between part installation unit 803, synchronization unit 804.
Initialization unit 801, the installation environment for initialized target middleware, the installation environment to target middleware into Row parameter verification.Initialization unit 801, including:Account initialization unit, for initializing the account name and password of server; Environmental resource initialization unit, for initializing the environmental resource of installation targets middleware;Configuration item initialization unit, for just Configuration item in beginningization configuration file;Port numbers detection unit, for detecting whether port numbers whether there is conflict such as port numbers It is occupied;Whether system version detection unit meets the requirements for detection system version;Resource allocation unit, for being described Installation distributing system resource of target middleware etc..
Wherein, account initialization unit, including:Account acquiring unit, account searching unit, account enter unit.Wherein, Account acquiring unit, for obtaining preconfigured account name and password.Account searching unit, should for searching in the server Preconfigured account name and password.Account enters unit, if account name and password for finding the preset configuration, according to Account name and password enter in server.
Environmental resource initialization unit, including:Command acquisition unit, environmental resource installation unit.Wherein, order obtains single Member, for obtaining the required order of initialization context resource, such as if liunx system, then required order It is liunx order.Environmental resource installation unit, for according to required order, pre-set environmental resource to be pacified It is attached in server, such as including related system file library, system packet.
Resource allocation unit, including:Distribute data capture unit, resource judgment unit, prompt unit, optimal resource allocation Unit, minimum resources allocation unit.Wherein, data capture unit is distributed, for obtaining the preset minimum resources of target middleware Distribute data and optimal resource allocation data.Resource judgment unit, for judging whether the remaining resource data of server is greater than Minimum resources distribute data.Prompt unit, if distributing data no more than minimum resources for the remaining resource data of server, Prompt is issued, to indicate server resource deficiency.Resource judgment unit is greater than most if being also used to the remaining resource data of server Low-resource distributes data, judges whether the remaining resource data of server is greater than optimal resource allocation data.Optimal resource allocation Unit is greater than optimal resource allocation data for the remaining resource data of server, then distributes best resource for target middleware Distribute corresponding resource in data.Minimum resources allocation unit, if being greater than minimum resources for the remaining resource data of server Data are distributed, and are not more than optimal resource allocation data, then are distributed for target middleware corresponding in minimum resources distribution data Resource.
Uploading unit 802, if the installation environment success for initialized target middleware, and by pacifying to target middleware The parametric test of environment is filled, uploads target middleware installation software into server.
Middleware installation unit 803, for the target middleware in the installation software of installation targets middleware in the server Installation kit.Specifically, the target middleware installation kit is parsed, target middleware installation kit script is generated;Execute the target Middleware installation kit script.
Synchronization unit 804, for mount message to be synchronized in the corresponding configuration file of the target middleware.
In other embodiments, middleware mounting device further includes adding unit.The adding unit, for adding middleware Relevant information.
Specifically, as shown in figure 9, adding unit 90, including:Pressure test unit 901, Release parameter tuning unit 902, Configure writing unit 903, middleware storage unit 904, information holding unit 905.
Pressure test unit 901 is used under same operating system and under the corresponding environmental resource of middleware, in difference Pressure test is carried out to the middleware of different editions under parameter configuration, different application environment, wherein different parameters configuration is corresponding not Same application scenarios.
Release parameter tuning unit 902, for being configured according to different parameters, the centre of different application environment, different editions The demand information of pressure testing results corresponding to part and server, the middleware for selecting pressure testing results more excellent/optimal, with And the corresponding parameter of the middleware is adjusted according to the demand information of server, to obtain the parameter configuration after tuning, Wherein, the demand information of server includes environmental information locating for server, i.e. application environment, application scenarios, network environment.
Writing unit 903 is configured, is corresponded to corresponding to version for the parameter configuration after tuning to be written to the middleware Configuration file in.
Middleware storage unit 904, for wrapping configuration file, the middleware installation kit of corresponding version, middleware monitoring Save as corresponding middleware installation software.
Information holding unit 905, for the middleware installation software will to be corresponded to, with answering for middleware installation Software match With in the relevant information of the information preservations such as environment, application scenarios, operating system to middleware with complete under the operating system The addition and preservation of the relevant information of the middleware.
It is protected by pressure above test cell 901, Release parameter tuning unit 902, configuration writing unit 903, middleware Memory cell 904, information holding unit 905, it is achievable under multiple operating systems, the addition of the relevant information of different middlewares and It saves.
The realization process of above-mentioned apparatus embodiment and the beneficial effect reached can be corresponding referring to corresponding embodiment of the method Description.
Above-mentioned apparatus can be implemented as a kind of form of computer program, and computer program can be in meter as shown in Figure 10 It calculates and is run on machine equipment.
Figure 10 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.The equipment 100 includes passing through Processor 102, memory and the network interface 103 that system bus 101 connects, wherein memory may include non-volatile deposits Storage media 104 and built-in storage 105.
The non-volatile memory medium 104 can storage program area 1041 and computer program 1042.The computer program 1042 are performed, and processor 102 may make to execute middleware installation method.The processor 102 is calculated and is controlled for providing Ability supports the operation of whole equipment 100.The built-in storage 105 is the fortune of the computer program in non-volatile memory medium Row provides environment, when which is executed by processor 102, processor 102 may make to execute middleware installation method.It should Network interface 103 is for carrying out network communication, such as reception message.It will be understood by those skilled in the art that shown in Figure 10 Structure, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied thereon to application scheme Equipment 100 restriction, specific equipment 100 may include more certain than more or fewer components as shown in the figure, or combination Component, or with different component layouts.
Wherein, the processor 102 is for running computer program stored in memory, to realize following steps:
Obtain the relevant information that need to install the server of middleware, wherein the relevant information of the server includes described The IP address of environmental information locating for server, the configuration information of the server, the server;According to the configuration information In operation system information, from the middleware relevant information prestored it is determining in the matched first kind of the operation system information Between part;According to environmental information locating for the server, one and the server institute are determined from the first kind middleware Locate the matched target middleware of environmental information to be recommended;Judge whether user receives the target middleware recommended;If User receives the target middleware recommended, and the target middleware is arranged on the server for providing the end of service Slogan;If receiving installation instruction, according to the IP address of the port numbers of setting and the server, the target middleware is pacified It is attached in the server.
In one embodiment, the target middleware described is installed to the server executing by the processor 102 It is specific to execute when middle:
The installation environment of the target middleware is initialized, and parameter is carried out to the installation environment of the target middleware Verification;If initializing the installation environment success of the target middleware, and pass through the ginseng to the target middleware installation environment Number is examined, and uploads target middleware installation software into server;The target middleware installation software is installed in the server In target middleware installation kit;Mount message is synchronized in the corresponding configuration file of the target middleware.
In one embodiment, the installation environment of the initialization target middleware includes among initialization installation targets The environmental resource of part, the processor 102 are specifically held when executing the environmental resource of the initialization installation targets middleware Row:
Obtain the required order of initialization context resource;It, will be pre-set according to required order Environmental resource is installed in server.
In one embodiment, before upload target middleware installation software is into server, the processor 102 It is also specific to execute:
Obtain the preset minimum resources distribution data of the target middleware and optimal resource allocation data;If the service The remaining resource data of device distributes data no more than minimum resources, then is prompted, to indicate that the server resource is insufficient;If The remaining resource data of server is greater than minimum resources and distributes data, and is greater than optimal resource allocation data, then is described Target middleware distributes corresponding resource in optimal resource allocation data;If the remaining resource data of server is greater than minimum Resource allocation data and be not more than optimal resource allocation data, then for the target middleware distribute minimum resources distribute data in Corresponding resource.
In one embodiment, multiple if the server of installation targets middleware is needed to have, the processor 102 is described in the execution The target middleware is set when on the server for providing the port numbers of service, it is specific to execute:
Judge whether to receive the mark using different port number;If receiving the mark using different port number, call The interface of multiple port numbers is set;By the interface, it is respectively set on multiple servers for providing the port numbers of service;If The mark using different port number is not received, and it is the same end slogan that port numbers of multiple servers for providing service, which are arranged,.
In one embodiment, if the server that need to install middleware has multiple, the processor 102 is executing the basis Operation system information in the configuration information, the determining and operation system information from the middleware relevant information prestored It is specific to execute when the first kind middleware matched:
According to the operation system information in the configuration information, judge the multiple servers obtained operating system whether be The same operating system;If not the same operating system deletes server corresponding to different operating system, so that surplus Remaining server operating system having the same;If the same operating system, then selected from the middleware relevant information prestored It selects and the matched first kind middleware of operating system.
In one embodiment, the processor 102 is believed in the correlation for executing the server that the acquisition need to install middleware It is specific to execute when breath:
Judge whether the existing server that need to install middleware;The server of installation middleware is needed if it exists, obtains institute State the relevant information of server;The server for needing installation middleware if it does not exist, adds the relevant information of server.
In one embodiment, the processor 102 is executing described before receiving installation instruction, also specific execution: The server, which is arranged, need to install the account of the target middleware;If the processor 102 described receives installation executing Instruction, according to the IP address of the port numbers of setting and the server, the target middleware is installed in the server When, it is specific to execute:If receiving installation instruction, according to the IP address of the port numbers of setting and the server, by the target Middleware is installed under the account in the server.
It should be appreciated that in embodiments of the present invention, alleged processor 102 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processing Device is also possible to any conventional processor etc..
A kind of storage medium is provided in another embodiment of the invention, and the storage medium is stored with computer journey Sequence, the computer program include program instruction, and following steps are realized in described program instruction when being executed by a processor:
Obtain the relevant information that need to install the server of middleware, wherein the relevant information of the server includes described The IP address of environmental information locating for server, the configuration information of the server, the server;According to the configuration information In operation system information, from the middleware relevant information prestored it is determining in the matched first kind of the operation system information Between part;According to environmental information locating for the server, one and ring locating for the server are determined from first kind middleware The target middleware of border information matches is to be recommended;Judge whether user receives the target middleware recommended;If user Receive the target middleware recommended, the target middleware is set on the server for providing the port of service Number;If receiving installation instruction, according to the IP address of the port numbers of setting and the server, the target middleware is installed Into the server.
In one embodiment, the target middleware described is installed in the server executing by the processor When, specific implementation:
The installation environment of the target middleware is initialized, and parameter is carried out to the installation environment of the target middleware Verification;If initializing the installation environment success of the target middleware, and pass through the ginseng to the target middleware installation environment Number is examined, and uploads target middleware installation software into server;The target middleware installation software is installed in the server In target middleware installation kit;Mount message is synchronized in the corresponding configuration file of the target middleware.
In one embodiment, the installation environment of the initialization target middleware includes that the target is installed in initialization The environmental resource of middleware, the processor is when executing the environmental resource of the initialization installation target middleware, tool Body is realized:
Obtain the required order of initialization context resource;It, will be pre-set according to required order Environmental resource is installed in server.
In one embodiment, before upload target middleware installation software is into server, the processing Device also implements:
Obtain the preset minimum resources distribution data of the target middleware and optimal resource allocation data;If the service The remaining resource data of device distributes data no more than minimum resources, then is prompted, to indicate that the server resource is insufficient;If The remaining resource data of server is greater than minimum resources and distributes data, and is greater than optimal resource allocation data, then is described Target middleware distributes corresponding resource in optimal resource allocation data;If the remaining resource data of server is greater than minimum Resource allocation data and be not more than optimal resource allocation data, then for the target middleware distribute minimum resources distribute data in Corresponding resource.
In one embodiment, multiple if the server of installation targets middleware is needed to have, the processor is set described in the execution The target middleware is set when on the server for providing the port numbers of service, specific implementation:
Judge whether to receive the mark using different port number;If receiving the mark using different port number, call The interface of multiple port numbers is set;By the interface, it is respectively set on multiple servers for providing the port numbers of service;If The mark using different port number is not received, and it is the same end slogan that port numbers of multiple servers for providing service, which are arranged,.
In one embodiment, if the server that middleware need to be installed have it is multiple, the processor execute it is described according to institute The operation system information in configuration information is stated, determination is matched with the operation system information from the middleware relevant information prestored The first kind middleware when, specific implementation:
According to the operation system information in the configuration information, judge the multiple servers obtained operating system whether be The same operating system;If not the same operating system deletes server corresponding to different operating system, so that surplus Remaining server operating system having the same;If the same operating system, then selected from the middleware relevant information prestored It selects and the matched first kind middleware of operating system.
In one embodiment, the processor need to install the relevant information of the server of middleware in the execution acquisition When, specific implementation:
Judge whether the existing server that need to install middleware;The server of installation middleware is needed if it exists, obtains institute State the relevant information of server;The server for needing installation middleware if it does not exist, adds the relevant information of server.
In one embodiment, the processor is described before receiving installation instruction in execution, also implements:Setting The server need to install the account of the target middleware;If the processor described receives installation instruction, root executing According to the port numbers of setting and the IP address of the server, when the target middleware is installed in the server, specifically It realizes:If receiving installation instruction, according to the IP address of the port numbers of setting and the server, the target middleware is pacified It is attached under the account in the server.
The storage medium can be computer readable storage medium.The storage medium can be aforementioned any embodiment The internal storage unit of the terminal, such as the hard disk or memory of terminal.The storage medium is also possible to the terminal The plug-in type hard disk being equipped on External memory equipment, such as the terminal, intelligent memory card (Smart Media Card, SMC), Secure digital (Secure Digital, SD) card etc..Further, the storage medium can also be both interior including the terminal Portion's storage unit also includes External memory equipment.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation.Those skilled in the art can be with It is well understood, for convenience of description and succinctly, the specific work of device, equipment and the unit of foregoing description, storage medium Make process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.The above, it is only of the invention Specific embodiment, but scope of protection of the present invention is not limited thereto, and anyone skilled in the art is at this It invents in the technical scope disclosed, various equivalent modifications or substitutions can be readily occurred in, these modifications or substitutions should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of middleware installation method, which is characterized in that the method includes:
Obtain the relevant information that need to install the server of middleware, wherein the relevant information of the server includes the service The IP address of environmental information locating for device, the configuration information of the server, the server;
It is determining from the middleware relevant information prestored to be with the operation according to the operation system information in the configuration information The first kind middleware for information matches of uniting;
According to environmental information locating for the server, determined locating for one and the server from the first kind middleware The matched target middleware of environmental information is to be recommended;
Judge whether user receives the target middleware recommended;
If user receives the target middleware recommended, the target middleware is set on the server for providing clothes The port numbers of business;
If receiving installation instruction, according to the IP address of the port numbers of setting and the server, the target middleware is pacified It is attached in the server.
2. the method according to claim 1, wherein described be installed to the server for the target middleware In, including:
The installation environment of the target middleware is initialized, and parameter school is carried out to the installation environment of the target middleware It tests;
If initializing the installation environment success of the target middleware, and pass through the parameter to the target middleware installation environment It examines, uploads target middleware installation software into server;
Target middleware installation kit in the target middleware installation software is installed in the server;
Mount message is synchronized in the corresponding configuration file of the target middleware.
3. according to the method described in claim 2, it is characterized in that, the installation environment packet of the initialization target middleware Include the environmental resource for initializing the target middleware, the environmental resource of the initialization target middleware, including:
Obtain the required order of initialization context resource;
According to required order, pre-set environmental resource is installed in server.
4. according to the method described in claim 2, it is characterized in that, installing software to server in the upload target middleware In before, the method also includes:
Obtain the preset minimum resources distribution data of the target middleware and optimal resource allocation data;
If the remaining resource data of server distributes data no more than minimum resources, prompted, to indicate the clothes Business device inadequate resource;
If the remaining resource data of server, which is greater than minimum resources, distributes data, and is greater than optimal resource allocation data, then Corresponding resource in optimal resource allocation data is distributed for the target middleware;
If the remaining resource data of server is greater than minimum resources distribution data and is not more than optimal resource allocation data, Minimum resources, which are distributed, for the target middleware distributes corresponding resource in data.
5. the method according to claim 1, wherein, the institute multiple if server of installation targets middleware is needed to have The setting target middleware is stated to be used to provide the port numbers of service on the server, including:
Judge whether to receive the mark using different port number;
If receiving the mark using different port number, the interface that multiple port numbers are set is called;
By the interface, it is respectively set on multiple servers for providing the port numbers of service;
If not receiving the mark using different port number, it is the same end that port numbers of multiple servers for providing service, which are arranged, Slogan.
6. the method according to claim 1, wherein if the server that middleware need to be installed have it is multiple, described According to the operation system information in the configuration information, the determining and operation system information from the middleware relevant information prestored Matched first kind middleware, including:
According to the operation system information in the configuration information, judge whether the operating system of the multiple servers obtained is same A operating system;
If not the same operating system deletes server corresponding to different operating system, so that remaining server Operating system having the same;
If the same operating system, then from the middleware relevant information prestored selection with the matched first kind of operating system in Between part.
7. the method according to claim 1, wherein before receiving installation instruction, the method also includes:
The server, which is arranged, need to install the account of the target middleware;
If described receive installation instruction, according to the IP address of the port numbers of setting and the server, among the target Part is installed in the server, including:If receiving installation instruction, according to the IP of the port numbers of setting and the server The target middleware is installed under the account in the server by location.
8. a kind of middleware mounting device, which is characterized in that the middleware mounting device includes for executing such as claim The unit of any one of 1-7 the method.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory, and is connected with the memory Processor;
The memory is for storing computer program;The processor is for running the computer journey stored in the memory Sequence, to execute the method according to claim 1 to 7.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program packet It includes program instruction and realizes the method according to claim 1 to 7 when described program instruction is executed by processor.
CN201810650549.3A 2018-06-22 2018-06-22 Middleware installation method and device, computer equipment and storage medium Active CN108845808B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810650549.3A CN108845808B (en) 2018-06-22 2018-06-22 Middleware installation method and device, computer equipment and storage medium
PCT/CN2018/109442 WO2019242162A1 (en) 2018-06-22 2018-10-09 Middleware installation method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810650549.3A CN108845808B (en) 2018-06-22 2018-06-22 Middleware installation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108845808A true CN108845808A (en) 2018-11-20
CN108845808B CN108845808B (en) 2020-09-29

Family

ID=64202269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810650549.3A Active CN108845808B (en) 2018-06-22 2018-06-22 Middleware installation method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108845808B (en)
WO (1) WO2019242162A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901912A (en) * 2019-03-01 2019-06-18 厦门容能科技有限公司 A method of recommending the configuration of cloud host
CN109918094A (en) * 2019-03-20 2019-06-21 浪潮商用机器有限公司 A kind of dispositions method, device and the medium of WebSphere middleware cluster
CN110083401A (en) * 2019-03-12 2019-08-02 平安普惠企业管理有限公司 Method of adjustment, device, computer equipment and the storage medium of application program configuration
CN110099096A (en) * 2019-03-12 2019-08-06 平安普惠企业管理有限公司 Application program configuration method, device, computer equipment and storage medium
CN110213120A (en) * 2019-04-24 2019-09-06 深圳智链物联科技有限公司 A kind of the pressure survey method, apparatus and terminal device of message-oriented middleware
CN111708560A (en) * 2020-06-17 2020-09-25 云和恩墨(北京)信息技术有限公司 Automatic deployment method and device of database high-availability management system
CN112114833A (en) * 2020-09-21 2020-12-22 中国建设银行股份有限公司 Device and method for determining middleware installation and deployment
CN112784251A (en) * 2021-01-29 2021-05-11 北京明略昭辉科技有限公司 Intelligent integrated cabinet platform, deployment method, computer equipment and storage medium
CN115766430A (en) * 2022-11-21 2023-03-07 中电云数智科技有限公司 Method for deploying cluster service based on hatched middleware instance

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942063A (en) * 2013-11-08 2014-07-23 国家电网公司 Centralized configuration and remote deployment method for Java Web application
CN106059841A (en) * 2016-08-10 2016-10-26 北京北信源软件股份有限公司 Method for monitoring deployed middleware
US20160328585A1 (en) * 2013-09-27 2016-11-10 Integro Llc Rfid tag embedded within a molded connector and a tracking system therefor
CN106131175A (en) * 2016-07-01 2016-11-16 微梦创科网络科技(中国)有限公司 A kind of acquisition of information, information-pushing method and equipment
CN106325951A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Automatic deployment method for application system supporting multiple databases and multiple middleware types
CN107885539A (en) * 2016-09-28 2018-04-06 平安科技(深圳)有限公司 A kind of middleware management method and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10135680B2 (en) * 2015-06-29 2018-11-20 International Business Machines Corporation Assessing computing environment changes using specification documents
CN107577470A (en) * 2017-09-05 2018-01-12 郑州云海信息技术有限公司 One kind applies dispositions method and system
CN107766060A (en) * 2017-10-31 2018-03-06 新华三云计算技术有限公司 Application configuration dispositions method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328585A1 (en) * 2013-09-27 2016-11-10 Integro Llc Rfid tag embedded within a molded connector and a tracking system therefor
CN103942063A (en) * 2013-11-08 2014-07-23 国家电网公司 Centralized configuration and remote deployment method for Java Web application
CN106131175A (en) * 2016-07-01 2016-11-16 微梦创科网络科技(中国)有限公司 A kind of acquisition of information, information-pushing method and equipment
CN106059841A (en) * 2016-08-10 2016-10-26 北京北信源软件股份有限公司 Method for monitoring deployed middleware
CN106325951A (en) * 2016-08-30 2017-01-11 广西电网有限责任公司 Automatic deployment method for application system supporting multiple databases and multiple middleware types
CN107885539A (en) * 2016-09-28 2018-04-06 平安科技(深圳)有限公司 A kind of middleware management method and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
温立辉: "《高性能服务器中间件设计与分析》", 《科技论坛》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901912A (en) * 2019-03-01 2019-06-18 厦门容能科技有限公司 A method of recommending the configuration of cloud host
CN110083401A (en) * 2019-03-12 2019-08-02 平安普惠企业管理有限公司 Method of adjustment, device, computer equipment and the storage medium of application program configuration
CN110099096A (en) * 2019-03-12 2019-08-06 平安普惠企业管理有限公司 Application program configuration method, device, computer equipment and storage medium
CN109918094A (en) * 2019-03-20 2019-06-21 浪潮商用机器有限公司 A kind of dispositions method, device and the medium of WebSphere middleware cluster
CN110213120A (en) * 2019-04-24 2019-09-06 深圳智链物联科技有限公司 A kind of the pressure survey method, apparatus and terminal device of message-oriented middleware
CN110213120B (en) * 2019-04-24 2020-12-04 深圳智链物联科技有限公司 Message middleware pressure measurement method and device and terminal equipment
CN111708560A (en) * 2020-06-17 2020-09-25 云和恩墨(北京)信息技术有限公司 Automatic deployment method and device of database high-availability management system
CN112114833A (en) * 2020-09-21 2020-12-22 中国建设银行股份有限公司 Device and method for determining middleware installation and deployment
CN112784251A (en) * 2021-01-29 2021-05-11 北京明略昭辉科技有限公司 Intelligent integrated cabinet platform, deployment method, computer equipment and storage medium
CN115766430A (en) * 2022-11-21 2023-03-07 中电云数智科技有限公司 Method for deploying cluster service based on hatched middleware instance

Also Published As

Publication number Publication date
WO2019242162A1 (en) 2019-12-26
CN108845808B (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN108845808A (en) Middleware installation method, device, computer equipment and storage medium
EP2982083B1 (en) Method and apparatus for self organizing networks
US8997092B2 (en) Method, system, and computer readable medium for provisioning and remote distribution
US10057113B2 (en) Techniques for workload coordination
RU2541935C2 (en) System and method for deploying preconfigured software
US8019835B2 (en) Automated provisioning of computing networks using a network database data model
US7743147B2 (en) Automated provisioning of computing networks using a network database data model
US7124289B1 (en) Automated provisioning framework for internet site servers
US20040226010A1 (en) Automated provisioning framework for internet site servers
EP2989543B1 (en) Method and device for updating client
US20070240145A1 (en) Method and system for java application administration and deployment
JP2002505555A (en) Remote computer communication
US20080072050A1 (en) Systems and methods for using an access point for testing multiple devices and using several consoles
US10579354B2 (en) Method and system for rapid deployment and execution of customized functionality across multiple distinct platforms
CN104750550A (en) Mobile terminal application management system and method and use time record generating method
US8990929B2 (en) Auditing application activities
CN113312064A (en) Installation configuration method and device of physical machine and computer readable medium
CN108804399A (en) The method of calibration and device of list
CN112714166B (en) Multi-cluster management method and device for distributed storage system
US7447750B2 (en) Program setting system, program setting method, server, client and program
US11275674B1 (en) Operations support system (OSS) test tool
CN111726396B (en) Device binding method and device, cloud and storage medium
CN107888772A (en) A kind of method, apparatus and storage medium for determining configuration information
CN110750557A (en) Management method and device for insurance enterprise channel
CN111083006B (en) Broadband data auditing method, device, equipment and storage medium

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