[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108595222A - Background service environmental structure method, server and computer readable storage medium - Google Patents

Background service environmental structure method, server and computer readable storage medium Download PDF

Info

Publication number
CN108595222A
CN108595222A CN201810388225.7A CN201810388225A CN108595222A CN 108595222 A CN108595222 A CN 108595222A CN 201810388225 A CN201810388225 A CN 201810388225A CN 108595222 A CN108595222 A CN 108595222A
Authority
CN
China
Prior art keywords
server
background service
configuration file
environmental structure
service environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810388225.7A
Other languages
Chinese (zh)
Inventor
乐亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810388225.7A priority Critical patent/CN108595222A/en
Publication of CN108595222A publication Critical patent/CN108595222A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The invention discloses a kind of background service environmental structure methods, are applied to server, and this method includes:Receive the configuration file for carrying background service environment builds instruction;Instruction is built in response, and the first object server to match with configuration file is searched in pre-stored server list;First object server is configured according to configuration file, to realize building for background service environment.Implementing the present invention can be by configuring first object server, so that first object server meets the required server of background service environmental structure, the function of first object server is can to configure to be modified, to reduce the number of servers in background service, reach the requirement for meeting background service environmental structure by configuring in limited server.The embodiment of the invention also discloses a kind of server and computer readable storage mediums.Thereby, it is possible to improve the utilization rate of server in platform service environment build process.

Description

Background service environmental structure method, server and computer readable storage medium
Technical field
The present invention relates to service environments to build technical field more particularly to a kind of background service environmental structure method, service Device and computer readable storage medium.
Background technology
Background service is in large scale, is architecturally usually made of multiple subsystems, technically also used database, Many supportings such as memory cache, message queue, Web service.Since it has used numerous supportings, so background service When deployment is reached the standard grade, building for the environment for first completing the corresponding support server of each supporting is needed, to allow background service can Service entry is relied on correctly to call and access.
Traditional background service is disposed generally by the way of each supporting and physical machine fixed correlation, that is, working as After the function of some support server defines, the function of the support server cannot be then modified, but actually entire Background service is to need very multi-functional, that is, when we need to complete different functions, then may need different supports Server, so as to cause the device substantial amounts of support server in background service, but actually we really need while using Support server may be a few in numerous support servers, so as to cause the number of support server idle at this time Amount is also still very big.It can be seen that the utilization rate in traditional service arrangement for support server is relatively low.
Invention content
It is a primary object of the present invention to propose a kind of background service environmental structure method, server and computer-readable deposit Storage media, it is intended to solve the problems, such as that the utilization rate of server during background service environmental structure is low.
To achieve the above object, a kind of background service environmental structure method provided by the invention is applied to server, described Method includes step:
Receive the configuration file for carrying background service environment builds instruction;
Instruction is built described in response, and the to match with the configuration file is searched in pre-stored server list One destination server;
The first object server is configured according to the configuration file, to realize building for background service environment.
Optionally, the configuration file includes hardware information, and instruction is built described in the response, in pre-stored clothes The first object server to match with the configuration file is searched in business device list, including:
Instruction is built described in response, and the to match with the hardware information is searched in pre-stored server list One destination server.
Optionally, the method further includes step:
The configuration file is parsed, to obtain the configuration requirement of the background service environment;
Wherein, described that the first object server is configured according to the configuration file, to realize background service environment It builds, including:
The first object server is configured according to the configuration requirement, to realize building for background service environment.
Optionally, further include software information in the configuration file, it is described to be searched in pre-stored server list It is described that the first object is configured according to the configuration file after the first object server to match with the hardware information Server, with before realizing the building of background service environment, the method further includes step:
Detect whether the first object server matches with the software information;
Wherein, described that the first object server is configured according to the configuration file, to realize background service environment It builds, including:If detecting the first object server to mismatch with the software information, configured according to the software information The first object server, to realize building for background service environment.
Optionally, the method further includes step:
Obtain the configuration information of each server in the first object server;
Number of servers needed for the background service environmental structure is determined according to the configuration file;
Wherein, described that the first object server is configured according to the configuration file, to realize background service environment It builds, including step:
According to the configuration information of each server and the required number of servers from the first object The higher server of configuration information is chosen in server as the second destination server;
Second destination server is configured according to the configuration file, to realize building for background service environment.
In addition, to achieve the above object, the present invention also proposes that a kind of server, the server include:Memory, processing Device and the background service environmental structure program that is stored on the memory and can run on the processor, the backstage clothes Business environmental structure program realizes following steps when being executed by the processor:
Receive the configuration file for carrying background service environment builds instruction;
Instruction is built described in response, and the to match with the configuration file is searched in pre-stored server list One destination server;
The first object server is configured according to the configuration file, to realize building for background service environment.
Optionally, the configuration file includes hardware information, and the background service environmental structure program is by the processing Device executes and builds instruction described in step response, and lookup and the configuration file match in pre-stored server list The step of first object server, specifically includes step:
Instruction is built described in response, and the to match with the hardware information is searched in pre-stored server list One destination server.
Optionally, step is also realized when the background service environmental structure program is executed by the processor:
The configuration file is parsed, to obtain the configuration requirement of the background service environment;
Wherein, the background service environmental structure program is executed described in step by the processor according to the configuration file The first object server is configured, to realize building for background service environment, including step:
The first object server is configured according to the configuration requirement, to realize building for background service environment.
Optionally, step is also realized when the background service environmental structure program is executed by the processor:Described in acquisition The configuration information of each server in first object server;
Number of servers needed for the background service environmental structure is determined according to the configuration file;
Wherein, described that the first object server is configured according to the configuration file, to realize background service environment It builds, including step:
According to the configuration information of each server and the required number of servers from the first object The higher server of configuration information is chosen in server as the second destination server;
Second destination server is configured according to the configuration file, to realize building for background service environment.
Further, to achieve the above object, background service environment is stored on the computer readable storage medium to take Program is built, such as above-mentioned background service environmental structure method is realized when the background service environmental structure program is executed by processor The step of.
In the present invention, server, which receives, carries the configuration file of background service environment and builds instruction;And it responds and takes Instruction is built, the first object server to match with configuration file is searched in pre-stored server list;Last basis Configuration file configures first object server, to realize building for background service environment.It can be seen that implementing the present invention can lead to Configuration first object server is crossed, so that first object server meets the required server of background service environmental structure, That is, the function of first object server is can to configure to be modified, so as to reduce the number of servers in background service, And reach the requirement for meeting background service environmental structure by configuring in limited server, it is taken with improving platform service environment The utilization rate of server during building.
Description of the drawings
Fig. 1 is a kind of flow chart of background service environmental structure method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another background service environmental structure method provided in an embodiment of the present invention;
Fig. 3 is a kind of module diagram of server provided in an embodiment of the present invention;
Fig. 4 is the module diagram of another server provided in an embodiment of the present invention;
Fig. 5 is the module diagram of another server provided in an embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of background service environmental structure method provided in an embodiment of the present invention, such as Shown in Fig. 1, which includes the following steps:
301, receive the configuration file for carrying background service environment builds instruction.
In the embodiment of the present invention, background service is in large scale, that is, be architecturally usually made of multiple subsystems, Technically many service types such as database, memory cache, message queue, Web service, each service type is used all to answer This has corresponding server.That is, when the service type of deployment services is different, it would be desirable to server may differ Sample, we need the background service environment built also just different.
For example, when waiting for that the service type of deployment services is database, then corresponding server should be had at this time The server of database function, or configured by software information, it disclosure satisfy that the server of database.
In embodiments of the present invention, background service environmental structure instruction each time is all according to the service class for waiting for deployment services What type determined, that is, after waiting for that the service type of deployment services determines, configuration file is also determined therewith, and according to configuration File can also determine the service type for waiting for deployment services.Specifically, server, which can receive, carries background service environment Configuration file builds instruction.Wherein, it can include but is not limited to be directed in configuration file and wait for the corresponding server of deployment services Hardware information, software information and one or more of the service type for waiting for deployment services.
302, instruction is built in response, and the first mesh to match with configuration file is searched in pre-stored server list Mark server.
In the embodiment of the present invention, some server lists can be prestored, wherein may include in the server list The corresponding hardware information of server, software information and the service supported service type at present.Wherein, pre-stored clothes Business device list can be that user stores as needed, can also be that server is accustomed to according to the long-term storage of user to deposit Storage or real-time update, can also be the list of system default, can also be that server is adjusted according to each support server It is stored with number, that is, storage mode is not unique, nor it is fixed, specifically can according to circumstances it set.
Specifically, due to having included to wait for the service type of deployment services (for example, waiting for deployment services in configuration file Type be database or Web service either other), that is, receiving the configuration file for carrying background service environment Build instruction after, the first object to match with configuration file can be being searched in pre-stored server list Server.Wherein, the quantity of first object server is at least one, that is, the service type of deployment services corresponding ought be waited for When being shown as the type for being easier to realize, first object server is one, it is also possible to demand can be completed, when corresponding When the service type of deployment services is shown as than type relatively difficult to achieve, then multiple server cooperative cooperating ability may be needed Completion demand.
For example, when waiting for that the service type of deployment services is database, then corresponding server should be had at this time The server of database function, or configured by software information, it disclosure satisfy that the server of database;That is, can root The first object server of above-mentioned condition is searched and met in pre-stored server list according to these requirements.
303, first object server is configured according to configuration file, to realize building for background service environment.
In the embodiment of the present invention, respond it is above-mentioned build instruction, in pre-stored server list search with configure After the first object server that file matches, then first object server can be configured according to configuration file, after realization Platform service environment is built.
Wherein, can include but is not limited in configuration file for wait for the corresponding server of deployment services hardware information, Software information and one or more of the service type for waiting for deployment services, that is, server can take according to deployment is waited for One or more of the hardware information of corresponding server, software information and service type for waiting for deployment services be engaged in match First object server is set, to realize building for background service environment.
As an alternative embodiment, in order to ensure the first object server chosen and this background service ring The server that needs are built in border more matches, then can further execute step:
11) configuration information of each server in first object server is obtained;
12) number of servers needed for background service environmental structure is determined according to configuration file;
Wherein, step 303 configures first object server according to configuration file, to realize building for background service environment, Including step:
It is chosen from first object server according to the configuration information of each server and required number of servers The higher server of configuration information is as the second destination server;
The second destination server is configured according to configuration file, to realize building for background service environment.
Wherein, the configuration information of each server includes mainly the hardware information of the server, software information and should The service type that server can be supported.
Wherein, due to building different background service environment, the quantity of required server may be different, that is, in order to Ensure that the quantity of server is accurate, can also determine this background service environment according to the corresponding configuration file of deployment services is waited for The quantity of required server in build process.
Specifically, according to the configuration information of each server and required number of servers from first object server The higher server of middle selection configuration information is as the second destination server;The second destination server is configured according to configuration file, To realize building for background service environment.
As another optional embodiment, execute step 302 is searched in pre-stored server list and After the first object server that configuration file matches;And first object is configured according to configuration file executing step 303 Server, before realizing the building of background service environment, step can also be performed:Configuration file is parsed, is taken with obtaining backstage The configuration requirement of business environment.
Specifically, step 303 configures first object server according to configuration file, to realize building for background service environment Can be:First object server is configured according to configuration requirement, to realize building for background service environment.
In the embodiment of the present invention, configuration requirement is more intuitive, is exactly that configuration first how can be directly gone with Boot Server Destination server, the efficiency meeting higher being configured so that, and more precisely.
In Fig. 1, server, which receives, carries the configuration file of background service environment and builds instruction;And it responds and builds finger It enables, the first object server to match with configuration file is searched in pre-stored server list;Finally according to configuration File configuration first object server, to realize building for background service environment.It can be by matching it can be seen that implementing the present invention First object server is set, so that first object server meets the required server of background service environmental structure, that is, the The function of one destination server is can to configure to be modified, so as to reduce the number of servers in background service, and Reach the requirement for meeting background service environmental structure by configuring in limited server, was built with improving platform service environment The utilization rate of server in journey.
Further referring to Fig. 2, wherein Fig. 2 is another background service environmental structure side provided in an embodiment of the present invention The flow chart of method, as shown in Fig. 2, the background service environmental structure method includes the following steps:
401, receive the configuration file for carrying background service environment builds instruction.
In the embodiment of the present invention, background service is in large scale, that is, be architecturally usually made of multiple subsystems, Technically many service types such as database, memory cache, message queue, Web service, each service type is used all to answer This has corresponding server.That is, when the service type of deployment services is different, it would be desirable to server may differ Sample, we need the background service environment built also just different.
For example, when waiting for that the service type of deployment services is database, then corresponding server should be had at this time The server of database function, or configured by software information, it disclosure satisfy that the server of database.
In embodiments of the present invention, background service environmental structure instruction each time is all according to the service class for waiting for deployment services What type determined, that is, after waiting for that the service type of deployment services determines, configuration file is also determined therewith, and according to configuration File can also determine the service type for waiting for deployment services.Specifically, server, which can receive, carries background service environment Configuration file builds instruction.Wherein, it can include but is not limited to be directed in configuration file and wait for the corresponding server of deployment services Hardware information, software information and one or more of the service type for waiting for deployment services.
402, instruction is built described in response, searches in pre-stored server list and matches with the hardware information First object server.
In the embodiment of the present invention, some server lists can be prestored, wherein may include in the server list The corresponding hardware information of server, software information and the service supported service type at present.Wherein, pre-stored clothes Business device list can be that user stores as needed, can also be that server is accustomed to according to the long-term storage of user to deposit Storage or real-time update, can also be the list of system default, can also be that server is adjusted according to each support server It is stored with number, that is, storage mode is not unique, nor it is fixed, specifically can according to circumstances it set.Its In, hardware information actually refers to the details of each hardware of server, for example, the size of the memory space of server, The model of hardware, title or other information such as the feature of hardware can be described.
It, then can be with when hardware information meets specifically, be the most important condition since the server found meets hardware information Step 403 is executed, when hardware information is all unsatisfactory for, then can export the prompt for prompting not find matched server Information.
Wherein, the quantity of first object server is at least one, that is, the service type of deployment services corresponding ought be waited for When being shown as the type for being easier to realize, first object server is one, it is also possible to demand can be completed, when corresponding When the service type of deployment services is shown as than type relatively difficult to achieve, then multiple server cooperative cooperating ability may be needed Completion demand.
For example, when waiting for that the service type of deployment services is database, then corresponding server should be had at this time The server of database function, or configured by software information, it disclosure satisfy that the server of database;That is, can root The first object server of above-mentioned condition is searched and met in pre-stored server list according to these requirements.
403, whether detection first object server matches with software information.
If 404, detecting first object server and software information mismatching, first object clothes are configured according to software information Business device, to realize building for background service environment.
In the embodiment of the present invention, instruction is built in response, lookup and configuration file in pre-stored server list After the first object server to match, for the service class for ensureing the first object server found Yu waiting for deployment services The matching degree higher of type can further detect whether first object server matches with software information.Wherein, software information is Invisible, without physical aspect, for representation function or other information.
If specifically, detection first object server and software information mismatch, the can be configured according to software information One destination server, to realize building for background service environment.
If 405, detection first object server is matched with software information, using first object server as background service ring The server that border is built, to realize building for background service environment.
In the embodiment of the present invention, if detection first object server is matched with software information, that is, first object server Hardware information and software information be all matched, then it is this background service environmental structure to illustrate first object server then In required server, then can be using first object server as the server of background service environmental structure, after realization Platform service environment is built.
In fig. 2, server can pass through the hardware information and software information that include in configuration file or other letters It ceases to search first object server, so as to improve the lookup precision and search efficiency of first object server, and it is same When server idle at present can all be mobilized, to further improve the utilization rate of each server.
Further referring to Fig. 3, Fig. 3 is a kind of module diagram of server provided in an embodiment of the present invention, such as Fig. 3 institutes Show, which includes:Receiving module 501, searching module 502 and configuration module 503, wherein
Receiving module 501 carries the configuration file of background service environment and builds instruction for receiving.
In the embodiment of the present invention, background service is in large scale, that is, be architecturally usually made of multiple subsystems, Technically many service types such as database, memory cache, message queue, Web service, each service type is used all to answer This has corresponding server.That is, when the service type of deployment services is different, it would be desirable to server may differ Sample, we need the background service environment built also just different.
For example, when waiting for that the service type of deployment services is database, then corresponding server should be had at this time The server of database function, or configured by software information, it disclosure satisfy that the server of database.
In embodiments of the present invention, background service environmental structure instruction each time is all according to the service class for waiting for deployment services What type determined, that is, after waiting for that the service type of deployment services determines, configuration file is also determined therewith, and according to configuration File can also determine the service type for waiting for deployment services.Specifically, receiving module 501, which can receive, carries background service ring The configuration file in border builds instruction.Wherein, it can include but is not limited to be directed in configuration file and wait for the corresponding clothes of deployment services Hardware information, software information and one or more of the service type for waiting for deployment services of business device.
Searching module 502 is built instruction for responding, is searched and configuration file phase in pre-stored server list Matched first object server.
In the embodiment of the present invention, some server lists can be prestored, wherein may include in the server list The corresponding hardware information of server, software information and the service supported service type at present.Wherein, pre-stored clothes Business device list can be that user stores as needed, can also be that server is accustomed to according to the long-term storage of user to deposit Storage or real-time update, can also be the list of system default, can also be that server is adjusted according to each support server It is stored with number, that is, storage mode is not unique, nor it is fixed, specifically can according to circumstances it set.
Specifically, due to having included to wait for the service type of deployment services (for example, waiting for deployment services in configuration file Type be database or Web service either other), that is, receiving the configuration file for carrying background service environment Build instruction after, the first object to match with configuration file can be being searched in pre-stored server list Server.Wherein, the quantity of first object server is at least one, that is, the service type of deployment services corresponding ought be waited for When being shown as the type for being easier to realize, first object server is one, it is also possible to demand can be completed, when corresponding When the service type of deployment services is shown as than type relatively difficult to achieve, then multiple server cooperative cooperating ability may be needed Completion demand.
For example, when waiting for that the service type of deployment services is database, then corresponding server should be had at this time The server of database function, or configured by software information, it disclosure satisfy that the server of database;That is, searching mould The first object service of above-mentioned condition can be searched in pre-stored server list according to these requirements and be met to block 502 Device.
Configuration module 503 configures first object server, to realize building for background service environment according to configuration file.
In the embodiment of the present invention, searching module 502 respond it is above-mentioned build instruction, in pre-stored server list After searching the first object server to match with configuration file, then first object service can be configured according to configuration file Device, to realize building for background service environment.
Wherein, can include but is not limited in configuration file for wait for the corresponding server of deployment services hardware information, Software information and one or more of the service type for waiting for deployment services, that is, server can take according to deployment is waited for One or more of the hardware information of corresponding server, software information and service type for waiting for deployment services be engaged in match First object server is set, to realize building for background service environment.
In figure 3, receiving module 501, which receives, carries the configuration file of background service environment and builds instruction;Search mould Block 502 simultaneously responds and builds instruction, and the first object clothes to match with configuration file are searched in pre-stored server list Business device;Last configuration module 503 configures first object server according to configuration file, to realize building for background service environment. It can be by configuring first object server, so that first object server is full it can be seen that implementing configuration module 503 of the present invention The sufficient required server of background service environmental structure, that is, the function of first object server is can to configure to be modified, So as to reduce the number of servers in background service, and meet backstage clothes by configuring to reach in limited server The requirement for environmental structure of being engaged in, to improve the utilization rate of server in platform service environment build process.
Further referring to Fig. 4, Fig. 4 is the module diagram of another server provided in an embodiment of the present invention, In, Fig. 4 is that further refinement obtains on the basis of Fig. 3, in addition to including all modules shown in Fig. 3, can also include:Inspection Survey module 504, acquisition module 505, determining module 506 and parsing module 507, wherein
Detection module 504, for being searched and hardware information phase in pre-stored server list in searching module 502 After matched first object server, configuration module 503 configures first object server according to configuration file, to realize backstage Before the building of service environment, whether detection first object server matches with software information.
Acquisition module 505, the configuration information for obtaining each server in first object server.
Determining module 506, for determining number of servers needed for background service environmental structure according to configuration file.
Wherein, configuration module 503 configures first object server according to configuration file, to realize taking for background service environment It builds, specially:Configuration module 503 is according to the configuration information of each server and required number of servers from first object The higher server of configuration information is chosen in server as the second destination server;The second target clothes are configured according to configuration file Business device, to realize building for background service environment.
Parsing module 507, for parsing configuration file, to obtain the configuration requirement of background service environment.
Wherein, configuration module 503 configures first object server according to configuration file, to realize taking for background service environment It builds specially:Configuration module 503 configures first object server according to configuration requirement, to realize building for background service environment.
In the embodiment of the present invention, instruction is built in the response of searching module 502, is searched in pre-stored server list After the first object server to match with configuration file, in order to ensure first object service that searching module 502 is found The matching degree higher of device and the service type for waiting for deployment services, detection module 504 can further detect first object server Whether matched with software information.Wherein, software information is invisible, without physical aspect, is used for representation function or others Information.
If being mismatched with software information specifically, detection module 504 detects first object server, configuration module 503 First object server can be configured according to software information, to realize building for background service environment.
In the embodiment of the present invention, if detection module 504 detects first object server and is matched with software information, that is, the The hardware information and software information of one destination server are all matched, then it is this backstage to illustrate first object server then Service environment required server in building, then can be using first object server as the service of background service environmental structure Device, to realize building for background service environment.That is, removing configuration first object server without configuration module 503.
In the embodiment of the present invention, the configuration information of each server mainly includes hardware information, the software of the server The service type that information and the server can be supported.
Wherein, due to building different background service environment, the quantity of required server may be different, that is, in order to Ensure that the quantity of server is accurate, can also determine this background service environment according to the corresponding configuration file of deployment services is waited for The quantity of required server in build process.
Specifically, according to the configuration information of each server and required number of servers from first object server The higher server of middle selection configuration information is as the second destination server;The second destination server is configured according to configuration file, To realize building for background service environment.
As another optional embodiment, searched in pre-stored server list in searching module 502 with After the first object server that configuration file matches;And first object is configured according to configuration file in configuration module 503 Server is taken so that before realizing the building of background service environment, parsing module 507 can parse configuration file with obtaining backstage The configuration requirement of business environment.
Specifically, configuration module 503 configures first object server according to configuration file, to realize background service environment Building to be:Configuration module 503 configures first object server according to configuration requirement, to realize taking for background service environment It builds.
Please refer to fig. 5, Fig. 5 is another server architecture schematic diagram provided in an embodiment of the present invention.As shown in Figure 5 The present embodiment in server may include:One or more processors 601;One or more input equipments 602, one or Multiple output equipments 603 and memory 604.Above-mentioned processor 601, input equipment 602, output equipment 603 and memory 604 are logical Cross the connection of bus 605.For memory 602 for storing computer program, the computer program includes background service environmental structure Program instruction, processor 601 are used to execute the background service environmental structure program instruction of the storage of memory 602.Wherein, processor 601 are configured for that the background service environmental structure program instruction is called to execute:
Receive the configuration file for carrying background service environment builds instruction;
Instruction is built described in response, and the to match with the configuration file is searched in pre-stored server list One destination server;
The first object server is configured according to the configuration file, to realize building for background service environment.
Wherein, configuration file includes hardware information, and the background service environmental structure program is executed by the processor Instruction is built described in step response, the first mesh to match with the configuration file is searched in pre-stored server list The step of marking server specifically includes step:
Instruction is built described in response, and the to match with the hardware information is searched in pre-stored server list One destination server.
Wherein, step is also realized when the background service environmental structure program is executed by the processor:
The configuration file is parsed, to obtain the configuration requirement of the background service environment;
Wherein, the background service environmental structure program is executed described in step by the processor according to the configuration file The first object server is configured, to realize building for background service environment, including step:
The first object server is configured according to the configuration requirement, to realize building for background service environment.
Wherein, step is also realized when the background service environmental structure program is executed by the processor:Obtain described The configuration information of each server in one destination server;
Number of servers needed for the background service environmental structure is determined according to the configuration file;
Wherein, described that the first object server is configured according to the configuration file, to realize background service environment It builds, including step:
According to the configuration information of each server and the required number of servers from the first object The higher server of configuration information is chosen in server as the second destination server;
Second destination server is configured according to the configuration file, to realize building for background service environment.
Wherein, the present invention also provides another embodiments, that is, provide a kind of computer readable storage medium, the meter Calculation machine readable storage medium storing program for executing is stored with background service environmental structure program, and the background service environmental structure program can be by least one A processor executes, so that at least one processor is executed such as the step of above-mentioned background service environmental structure method.
It should be appreciated that in embodiments of the present invention, alleged processor 601 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 602 may include that Trackpad, fingerprint adopt sensor (finger print information and fingerprint for acquiring user Directional information), microphone etc., output equipment 603 may include display (LCD etc.), loud speaker etc..
The memory 604 may include read-only memory and random access memory, and to processor 601 provide instruction and Data.The a part of of memory 604 can also include nonvolatile RAM.For example, memory 604 can also be deposited Store up the information of device type.
The computer readable storage medium can be the storage inside list of the mobile terminal described in aforementioned any embodiment Member, for example, mobile terminal hard disk or memory.The computer readable storage medium can also be the external storage of the terminal The plug-in type hard disk being equipped in equipment, such as the mobile terminal, intelligent memory card (Smart Media Card, SMC), safety Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable storage medium Matter can also both include the terminal internal storage unit and also including External memory equipment.The computer readable storage medium For storing other programs and data needed for the computer program and the terminal.The computer readable storage medium It can be also used for temporarily storing the data that has exported or will export.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the shifting of foregoing description The specific work process of dynamic terminal and module, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed mobile terminal and method, Ke Yitong Other modes are crossed to realize.For example, the apparatus embodiments described above are merely exemplary, for example, the module is drawn Point, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple module or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed Mutual coupling, direct-coupling or communication connection can be by the INDIRECT COUPLING of some interfaces, device or unit or Communication connection can also be electricity, mechanical or other form connections.
The module illustrated as separating component may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention Purpose.
In addition, each function module in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, can also be during two or more units are integrated in one unit.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of background service environmental structure method is applied to server, which is characterized in that the method includes the steps:
Receive the configuration file for carrying background service environment builds instruction;
Instruction is built described in response, and the first mesh to match with the configuration file is searched in pre-stored server list Mark server;
The first object server is configured according to the configuration file, to realize building for background service environment.
2. background service environmental structure method according to claim 1, which is characterized in that the configuration file includes hard Part information builds instruction described in the response, searches in pre-stored server list and match with the configuration file First object server, including:
Instruction is built described in response, and the first mesh to match with the hardware information is searched in pre-stored server list Mark server.
3. background service environmental structure method according to claim 2, which is characterized in that the method further includes step:
The configuration file is parsed, to obtain the configuration requirement of the background service environment;
Wherein, described that the first object server is configured according to the configuration file, to realize building for background service environment, Including:
The first object server is configured according to the configuration requirement, to realize building for background service environment.
4. background service environmental structure method according to claim 2, which is characterized in that further include in the configuration file Software information, it is described that the first object server to match with the hardware information is searched in pre-stored server list Later, described that the first object server is configured according to the configuration file, with before realizing the building of background service environment, The method further includes step:
Detect whether the first object server matches with the software information;
Wherein, described that the first object server is configured according to the configuration file, to realize building for background service environment, Including:If detecting the first object server to mismatch with the software information, according to software information configuration First object server, to realize building for background service environment.
5. the background service environmental structure method according to any one of Claims 1 to 4, which is characterized in that the side Method further includes step:
Obtain the configuration information of each server in the first object server;
Number of servers needed for the background service environmental structure is determined according to the configuration file;
Wherein, described that the first object server is configured according to the configuration file, to realize building for background service environment, Including step:
According to the configuration information of each server and the required number of servers from the first object service The higher server of configuration information is chosen in device as the second destination server;
Second destination server is configured according to the configuration file, to realize building for background service environment.
6. a kind of server, which is characterized in that the server includes:It memory, processor and is stored on the memory And the background service environmental structure program that can be run on the processor, the background service environmental structure program is by the place Reason device realizes following steps when executing:
Receive the configuration file for carrying background service environment builds instruction;
Instruction is built described in response, and the first mesh to match with the configuration file is searched in pre-stored server list Mark server;
The first object server is configured according to the configuration file, to realize building for background service environment.
7. server according to claim 6, which is characterized in that the configuration file includes hardware information, after described Platform service environment builds program and builds instruction described in processor execution step response, in pre-stored server list The step of first object server that middle lookup matches with the configuration file, specifically includes step:
Instruction is built described in response, and the first mesh to match with the hardware information is searched in pre-stored server list Mark server.
8. server according to claim 7, which is characterized in that the background service environmental structure program is by the processing Device also realizes step when executing:
The configuration file is parsed, to obtain the configuration requirement of the background service environment;
Wherein, the background service environmental structure program is executed by the processor and is configured according to the configuration file described in step The first object server, to realize building for background service environment, including step:
The first object server is configured according to the configuration requirement, to realize building for background service environment.
9. the server according to any one of claim 7~8, which is characterized in that the background service environmental structure Program also realizes step when being executed by the processor:
Obtain the configuration information of each server in the first object server;
Number of servers needed for the background service environmental structure is determined according to the configuration file;
Wherein, described that the first object server is configured according to the configuration file, to realize building for background service environment, Including step:
According to the configuration information of each server and the required number of servers from the first object service The higher server of configuration information is chosen in device as the second destination server;
Second destination server is configured according to the configuration file, to realize building for background service environment.
10. a kind of computer readable storage medium, which is characterized in that be stored with backstage on the computer readable storage medium and take Business environmental structure program is realized when the background service environmental structure program is executed by processor as any in claim 1 to 5 Described in background service environmental structure method the step of.
CN201810388225.7A 2018-04-26 2018-04-26 Background service environmental structure method, server and computer readable storage medium Pending CN108595222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810388225.7A CN108595222A (en) 2018-04-26 2018-04-26 Background service environmental structure method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810388225.7A CN108595222A (en) 2018-04-26 2018-04-26 Background service environmental structure method, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108595222A true CN108595222A (en) 2018-09-28

Family

ID=63609879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810388225.7A Pending CN108595222A (en) 2018-04-26 2018-04-26 Background service environmental structure method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108595222A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828779A (en) * 2018-12-26 2019-05-31 中国平安人寿保险股份有限公司 Environment changing method, apparatus, terminal installation and storage medium
CN112988168A (en) * 2019-11-29 2021-06-18 北京沃东天骏信息技术有限公司 Method and device for building environment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156845A1 (en) * 2005-12-30 2007-07-05 Akamai Technologies, Inc. Site acceleration with content prefetching enabled through customer-specific configurations
CN102185900A (en) * 2011-04-18 2011-09-14 北京新媒传信科技有限公司 Application service platform system and method for developing application services
US20110302573A1 (en) * 2010-06-03 2011-12-08 Microsoft Corporation Metadata driven automatic deployment of distributed server systems
CN202077062U (en) * 2011-04-18 2011-12-14 北京新媒传信科技有限公司 Application service platform system
CN103257852A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Method and device for building development environment of distributed application system
CN105743680A (en) * 2014-12-11 2016-07-06 深圳云之家网络有限公司 Cluster disposition method and disposition device
CN107528708A (en) * 2016-06-21 2017-12-29 天脉聚源(北京)科技有限公司 A kind of method and system for arranging Linux server cluster

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156845A1 (en) * 2005-12-30 2007-07-05 Akamai Technologies, Inc. Site acceleration with content prefetching enabled through customer-specific configurations
US20110302573A1 (en) * 2010-06-03 2011-12-08 Microsoft Corporation Metadata driven automatic deployment of distributed server systems
CN102185900A (en) * 2011-04-18 2011-09-14 北京新媒传信科技有限公司 Application service platform system and method for developing application services
CN202077062U (en) * 2011-04-18 2011-12-14 北京新媒传信科技有限公司 Application service platform system
CN103257852A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Method and device for building development environment of distributed application system
CN105743680A (en) * 2014-12-11 2016-07-06 深圳云之家网络有限公司 Cluster disposition method and disposition device
CN107528708A (en) * 2016-06-21 2017-12-29 天脉聚源(北京)科技有限公司 A kind of method and system for arranging Linux server cluster

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828779A (en) * 2018-12-26 2019-05-31 中国平安人寿保险股份有限公司 Environment changing method, apparatus, terminal installation and storage medium
CN112988168A (en) * 2019-11-29 2021-06-18 北京沃东天骏信息技术有限公司 Method and device for building environment

Similar Documents

Publication Publication Date Title
CN107464162B (en) Commodity association method and device and computer-readable storage medium
CN107967135B (en) Calculation engine implementation method, electronic device and storage medium
CN107872528B (en) Message pushing method and device
CN110459222A (en) Sound control method, phonetic controller and terminal device
CN102750629B (en) Schedule association method and device
CN110083381A (en) The method and device of increment upgrading
CN107958365B (en) Material information changing method and device, storage medium and electronic equipment
CN106919427A (en) A kind of method to set up, setting device and electronic equipment
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN109829457A (en) A kind of image processing method, equipment and computer readable storage medium
CN108804175A (en) Multilingual adaptation method, mobile terminal and computer readable storage medium
CN108205568A (en) Method and device based on label selection data
CN111277991A (en) Operator name display method and device, mobile terminal and storage medium
WO2014146450A1 (en) Method, device and system for data searching
CN108595222A (en) Background service environmental structure method, server and computer readable storage medium
CN109840120A (en) Decouple micro services dissemination method, electronic device and computer readable storage medium
US20150169425A1 (en) Electronic device and operating method thereof
CN102541639B (en) CPU (Central Processing Unit) card data processing method, CPU card data processing system and CPU card
CN108092784A (en) A kind of method, terminal and computer-readable medium for creating group
CN113282850B (en) Resource tag management method, device, electronic equipment, system and storage medium
US10643252B2 (en) Banner display method of electronic device and electronic device thereof
CN107679222A (en) Image processing method, mobile terminal and computer-readable recording medium
CN112416784A (en) Interface checking method, system and device based on configuration center and storage medium
CN107729145A (en) Application program progress control method and device

Legal Events

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

Application publication date: 20180928