CN112804097B - Private cloud deployment method, device and server - Google Patents

Private cloud deployment method, device and server Download PDF

Info

Publication number
CN112804097B
CN112804097B CN202110005408.8A CN202110005408A CN112804097B CN 112804097 B CN112804097 B CN 112804097B CN 202110005408 A CN202110005408 A CN 202110005408A CN 112804097 B CN112804097 B CN 112804097B
Authority
CN
China
Prior art keywords
file
information
basic information
service code
deployed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110005408.8A
Other languages
Chinese (zh)
Other versions
CN112804097A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110005408.8A priority Critical patent/CN112804097B/en
Publication of CN112804097A publication Critical patent/CN112804097A/en
Application granted granted Critical
Publication of CN112804097B publication Critical patent/CN112804097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a private cloud deployment method, a private cloud deployment device and a private cloud deployment server, which relate to the technical field of cloud computing and comprise the following steps: acquiring basic information and configuration files of a service system to be deployed; the configuration file comprises an information replacement file, wherein the information replacement file comprises a plurality of information replacement variables, and the information replacement variables are used for configuring basic information into an initial cloud service code; configuring an initial cloud service code by using basic information and a configuration file to obtain a private cloud deployment package corresponding to a service system to be deployed; and deploying the private cloud deployment package to the service system to be deployed. The method and the device can effectively reduce the cost of private cloud deployment and improve the reliability of private cloud deployment.

Description

Private cloud deployment method, device and server
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a private cloud deployment method, device and server.
Background
Cloud computing is a brand-new network application concept, and can provide quick and safe cloud computing service and data storage service on websites, for private cloud in the cloud computing field, in the prior art, when the cloud computing privatization deployment is carried out, the cloud computing is generally configured one to one and deployed to a client server, and each privatization deployment needs one to one transformation, so that the deployment cost is high, and error modification is extremely easy to occur in the configuration process, so that the reliability of the privatization deployment is poor.
Disclosure of Invention
Accordingly, the present invention aims to provide a private cloud deployment method, device and server, which can effectively reduce the cost of private cloud deployment and improve the reliability of private cloud deployment.
In a first aspect, an embodiment of the present invention provides a method for deploying a private cloud, where the method is applied to a server, and the server stores an initial cloud service code, and the method includes: acquiring basic information and configuration files of a service system to be deployed; the configuration file comprises an information replacement file, wherein the information replacement file comprises a plurality of information replacement variables, and the information replacement variables are used for configuring the basic information into the initial cloud service code; configuring the initial cloud service code by utilizing the basic information and the configuration file to obtain a private cloud deployment package corresponding to the service system to be deployed; and deploying the private cloud deployment package to the service system to be deployed.
In one embodiment, the configuration file further includes a run command file; the step of configuring the initial cloud service code by using the basic information and the configuration file to obtain a private cloud deployment package corresponding to the service system to be deployed comprises the following steps: configuring the basic information into the initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code; executing the operation command in the operation command file on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed.
In one embodiment, the step of configuring the basic information into the initial cloud service code based on the information replacement file and the running command file to obtain a target cloud service code includes: replacing an information replacement variable corresponding to the basic information in the information replacement file by using the basic information to obtain a target replacement file; the information replacement variables are in one-to-one correspondence with the basic information; and executing the read command in the operation command file, reading the basic information contained in the target replacement file, and configuring the read basic information into the initial cloud service code to obtain a target cloud service code.
In one embodiment, the information replacement variable is in the form of a placeholder.
In an embodiment, the step of executing the operation command in the operation command file on the target cloud service code to obtain the private cloud deployment package corresponding to the service system to be deployed includes: and executing the packaging command in the running command file, and executing packaging processing on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed.
In one embodiment, the step of obtaining basic information of the service system to be deployed includes: and acquiring the basic information of the service system to be deployed from the designated storage area of the server.
In a second aspect, an embodiment of the present invention further provides a private cloud deployment apparatus, where the apparatus is applied to a server, and the server stores an initial cloud service code, and the apparatus includes: the acquisition module is used for acquiring basic information and configuration files of the service system to be deployed; the configuration file comprises an information replacement file, wherein the information replacement file comprises a plurality of information replacement variables, and the information replacement variables are used for configuring the basic information into the initial cloud service code; the configuration module is used for configuring the initial cloud service code by utilizing the basic information and the configuration file to obtain a private cloud deployment package corresponding to the service system to be deployed; the deployment module is used for deploying the private cloud deployment package to the service system to be deployed.
In one embodiment, the configuration file further includes a run command file; the configuration module is further configured to: configuring the basic information into the initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code; executing the operation command in the operation command file on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed.
In a third aspect, an embodiment of the present invention further provides a server, including a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs the method according to any of the first aspects provided.
In a fourth aspect, embodiments of the present invention also provide a computer storage medium storing computer software instructions for use with any of the methods provided in the first aspect.
The method, the device and the server for deploying private cloud are applied to the server, the server stores an initial cloud service code, basic information and configuration files of a service system to be deployed are firstly obtained, then the basic information and the configuration files are utilized to configure the initial cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed, the private cloud deployment package is deployed to the service system to be deployed, the configuration files comprise information replacement files, the information replacement files comprise a plurality of information replacement variables, and the information replacement variables are used for configuring the basic information to the initial cloud service code. According to the method, the basic information can be configured to the initial cloud service code by using the replacement file containing the information replacement variable, so that the corresponding private cloud deployment package is obtained.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for deploying private cloud according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a proprietary deployment platform according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a private cloud deployment device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The cloud computing field typically includes public and private clouds: the public cloud can be understood as that all data are uniformly stored in servers of cloud computing manufacturers, and all servers are uniformly provided by the cloud computing manufacturers; private clouds may be understood as the deployment of data and services in a client company's server, which, based on security and data privacy considerations, requires both cloud computing functionality and the deployment of data and services in a client's server, thereby providing cloud computing services to client companies or client sub-departments, which are only used internally by client companies. The privatization deployment can be understood as that a client company entrusts a cloud computing manufacturer to deploy cloud computing service in a server of the client company, the cloud computing manufacturer reforms the existing cloud computing service, replaces related information of the cloud computing manufacturer in the existing cloud computing service with related information of the client company, and deploys the replaced cloud computing service in the server of the client company to realize public cloud privatization deployment. At present, the privatization deployment is usually one-to-one transformation, and the problems of higher cost, poor reliability and the like exist in the mode, based on the method, the device and the server for deploying the private cloud, the cost of the private cloud deployment can be effectively reduced, and meanwhile, the reliability of the private cloud deployment is improved.
For the sake of understanding the present embodiment, first, a detailed description is given of a private cloud deployment method disclosed in the present embodiment, where the method is applied to a server, and the server stores an initial cloud service code, in one embodiment, the initial cloud service code may be a public cloud, where the initial cloud service code includes a plurality of replaceable variables, and on the basis of replacing the replaceable variables in the initial cloud service code with relevant information of a client company, the private cloud deployment may be implemented, and referring to a flow chart of a private cloud deployment method shown in fig. 1, the method mainly includes steps S102 to S106:
s102, basic information and configuration files of a service system to be deployed are obtained. The service system to be deployed, namely the client company, basic information, namely relevant information of the client company, such as company name, company domain name, contact mode, office address and the like, the configuration file comprises an operation command file and an information replacement file, the operation command file is a command set required for configuring an initial cloud service code, such as a reading command, a packaging command and the like, the information replacement file comprises a plurality of information replacement variables, the information replacement variables are used for configuring the basic information into the initial cloud service code, and the information replacement variables can be in a placeholder form. In one embodiment, the basic information of the service system to be deployed may be stored in the designated storage area in advance, so that when the private cloud of the service system to be deployed is deployed, the basic information of the service system to be deployed may be acquired from the designated storage area.
And S104, configuring the initial cloud service codes by using the basic information and the configuration file to obtain private cloud deployment packages corresponding to the service systems to be deployed. In one embodiment, the information replacement variable can be replaced by basic information, so that the basic information in the replaced information replacement file is read by using the operation command file in the configuration file and replaced to the corresponding replaceable variable in the initial cloud service code, and then the operation command file is used for packaging the replaced initial cloud service code, so that the private cloud deployment package can be obtained.
S106, deploying the private cloud deployment package to the service system to be deployed. Optionally, the private cloud deployment package may be sent to the service system to be deployed, and deployment of the private cloud deployment package is performed in the service system to be deployed, so that a user of the service system to be deployed uses the private cloud service provided by the private cloud deployment package.
According to the private cloud deployment method provided by the embodiment of the invention, basic information can be configured to the initial cloud service code by using the replacement file containing the information replacement variable, so that the corresponding private cloud deployment package is obtained.
In one embodiment, when the above step S102 is performed, the basic information of the service system to be deployed may be acquired from the designated storage area of the server. In practical applications, a proprietary deployment platform may be constructed, where a common module (i.e. the above specified storage area) is configured in the platform, where basic information is stored in the common module, referring to a schematic diagram of a proprietary deployment platform shown in fig. 2, fig. 2 illustrates that a domain name (domain: ksyun. Com), a company name (company_name: jin Shanyun), and a contact address (tell: 183 xxxxxxxxx) are stored in the common module, and in addition, a related website of the service system to be deployed may also be stored in the common module.
In order to facilitate understanding the step S104, the embodiment of the present invention further provides an implementation manner of configuring an initial cloud service code by using basic information and a configuration file to obtain a private cloud deployment package corresponding to a service system to be deployed, which is described in the following steps 1 to 2:
and step 1, configuring basic information into an initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code. The target cloud service code is the initial cloud service code which is completed by replacement. In practical application, the privately-arranged platform acquires two files, namely a replacement file (replacement. Data. Tpl) and a running command file (buildfile). The information replacement variable in the information replacement file can be in a placeholder form, the information replacement file can be called a placeholder file, various information replacement variables required by the configuration of the initial cloud service code are stored, and the information replacement variable corresponds to the basic information. The run command file contains commands to be executed after the privately deployed platform replaces the contents of the replace. Data. Tpl file, such as a package build (i.e., the package instructions described above), and the like.
For easy understanding, the embodiment of the present invention further provides an implementation manner of obtaining the target cloud service code, see the following steps 1.1 to 1.2:
and 1.1, replacing information replacement variables corresponding to the basic information in the file by using the basic information replacement information to obtain the target replacement file. In a specific implementation, the information replacement variables are in one-to-one correspondence with the basic information, such as the code shown below:
”domain”:”<$common.domain$>”,
”company_name”:”<$common.company_name$>”,
”is_ksc”:”<$common.is_ksc$>”
based on the codes, taking domain as a sign, when domain values in the replace. Data. Tpl files are replaced, the privately-arranged platform reads domain variables under a common module in configuration of the privately-arranged platform, so that domain names in basic information are replaced into information replacement variables domain until all the basic information is replaced, and a target replacement file is obtained.
And step 1.2, executing a read command in the operation command file, reading basic information contained in the target replacement file, and configuring the read basic information into an initial cloud service code to obtain a target cloud service code. In practical application, after the target replacement file is obtained, a reading operation can be performed on the target replacement file by using a reading command so as to read the basic information represented in the target replacement file, and the read basic information is configured into the initial cloud service code, so that the target cloud service code is obtained.
And step 2, executing the operation command in the operation command file on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed. In one embodiment, a packaging command in the running command file may be executed, and packaging processing is executed on the target cloud service code, so as to obtain a private cloud deployment package corresponding to the service system to be deployed.
In order to facilitate understanding, an application example of a private cloud deployment method is provided in the embodiment of the present invention, taking building a private cloud of Jin Shanyun (a service system) as an example, replacing a copy.data.tpl of the a service system by a privately-deployed platform, then reading the content of a buildfile by the privately-deployed platform and executing a packaging command, where the packaging command includes replacing a corresponding placeholder in an initial cloud service code with the content of the copy.data.tpl, and finally generating a compressed package that is the privately-deployed package to be deployed to Jin Shanyun.
In summary, according to the private cloud deployment method provided by the embodiment of the invention, the placeholder is used for replacing the basic information related to the private cloud deployment, and after the privatized deployment platform replaces the replace. The embodiment of the invention can realize public cloud privatization configuration by using the placeholder, and realize private cloud deployment of different client companies by using one set of codes, thereby effectively reducing deployment cost and improving deployment reliability.
For the private cloud deployment method provided in the foregoing embodiment, the embodiment of the present invention provides a private cloud deployment device, where the device is applied to a server, and the server stores an initial cloud service code, and referring to a schematic structural diagram of the private cloud deployment device shown in fig. 3, the device mainly includes the following parts:
the acquiring module 302 is configured to acquire basic information and a configuration file of a service system to be deployed; the configuration file comprises an information replacement file, wherein the information replacement file comprises a plurality of information replacement variables, and the information replacement variables are used for configuring basic information into an initial cloud service code.
The configuration module 304 is configured to configure the initial cloud service code by using the basic information and the configuration file, so as to obtain a private cloud deployment package corresponding to the service system to be deployed.
The deployment module 306 is configured to deploy the private cloud deployment package to the service system to be deployed.
According to the private cloud deployment device provided by the embodiment of the invention, basic information can be configured to the initial cloud service code by utilizing the replacement file containing the information replacement variable, so that a corresponding private cloud deployment package is obtained.
In one embodiment, the configuration file further includes a run command file; the configuration module 304 is further configured to: configuring basic information into an initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code; executing the operation command in the operation command file on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed.
In one embodiment, the configuration module 304 is further configured to: replacing information replacement variables corresponding to the basic information in the file by using the basic information replacement information to obtain a target replacement file; the information replacement variables are in one-to-one correspondence with the basic information; executing a read command in the operation command file, reading basic information contained in the target replacement file, and configuring the read basic information into the initial cloud service code to obtain the target cloud service code.
In one embodiment, the information replacement variable takes the form of a placeholder.
In one embodiment, the configuration module 304 is further configured to: and executing the packaging command in the running command file, and executing packaging processing on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed.
In one embodiment, the obtaining module 302 is further configured to: and acquiring basic information of the service system to be deployed from the designated storage area of the server.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
The embodiment of the invention provides a server, which specifically comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the embodiments described above.
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, the processor 40, the communication interface 43 and the memory 41 being connected by the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The memory 41 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and the at least one other network element is achieved via at least one communication interface 43 (which may be wired or wireless), which may use the internet, a wide area network, a local network, a metropolitan area network, etc.
Bus 42 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
The memory 41 is configured to store a program, and the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus for flow defining disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40 or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in processor 40. The processor 40 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (Digital Signal Processing, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 41 and the processor 40 reads the information in the memory 41 and in combination with its hardware performs the steps of the method described above.
The computer program product of the readable storage medium provided by the embodiment of the present invention includes a computer readable storage medium storing a program code, where the program code includes instructions for executing the method described in the foregoing method embodiment, and the specific implementation may refer to the foregoing method embodiment and will not be described herein.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A method for deploying a private cloud, the method being applied to a server, the server storing an initial cloud service code, the method comprising:
acquiring basic information and configuration files of a service system to be deployed; the configuration file comprises an operation command file and an information replacement file, wherein the operation command file is a command set required for configuring an initial cloud service code, the information replacement file comprises a plurality of information replacement variables, and the information replacement variables are used for configuring the basic information into the initial cloud service code;
configuring the initial cloud service code by utilizing the basic information and the configuration file to obtain a private cloud deployment package corresponding to the service system to be deployed;
deploying the private cloud deployment package to the service system to be deployed so as to realize private cloud deployment of different client companies through a set of codes;
the step of configuring the initial cloud service code by using the basic information and the configuration file to obtain a private cloud deployment package corresponding to the service system to be deployed comprises the following steps:
configuring the basic information into the initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code;
executing the operation command in the operation command file on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed;
the step of configuring the basic information into the initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code comprises the following steps:
replacing an information replacement variable corresponding to the basic information in the information replacement file by using the basic information to obtain a target replacement file; the information replacement variables are in one-to-one correspondence with the basic information;
and executing the read command in the operation command file, reading the basic information contained in the target replacement file, and configuring the read basic information into the initial cloud service code to obtain a target cloud service code.
2. The method of claim 1, wherein the information substitution variable is in the form of a placeholder.
3. The method of claim 1, wherein the step of executing the operation command in the operation command file on the target cloud service code to obtain the private cloud deployment package corresponding to the service system to be deployed comprises:
and executing the packaging command in the running command file, and executing packaging processing on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed.
4. The method according to claim 1, wherein the step of obtaining basic information of the service system to be deployed comprises:
and acquiring the basic information of the service system to be deployed from the designated storage area of the server.
5. A private cloud deployment apparatus, the apparatus being applied to a server, the server storing initial cloud service code, the apparatus comprising:
the acquisition module is used for acquiring basic information and configuration files of the service system to be deployed; the configuration file comprises an operation command file and an information replacement file, wherein the operation command file is a command set required for configuring an initial cloud service code, the information replacement file comprises a plurality of information replacement variables, and the information replacement variables are used for configuring the basic information into the initial cloud service code;
the configuration module is used for configuring the initial cloud service code by utilizing the basic information and the configuration file to obtain a private cloud deployment package corresponding to the service system to be deployed;
the deployment module is used for deploying the private cloud deployment package to the service system to be deployed so as to realize private cloud deployment of different client companies through a set of codes;
the configuration module is further configured to:
configuring the basic information into the initial cloud service code based on the information replacement file and the operation command file to obtain a target cloud service code;
executing the operation command in the operation command file on the target cloud service code to obtain a private cloud deployment package corresponding to the service system to be deployed;
the configuration module is further configured to:
replacing an information replacement variable corresponding to the basic information in the information replacement file by using the basic information to obtain a target replacement file; the information replacement variables are in one-to-one correspondence with the basic information;
and executing the read command in the operation command file, reading the basic information contained in the target replacement file, and configuring the read basic information into the initial cloud service code to obtain a target cloud service code.
6. A server comprising a processor and a memory;
the memory has stored thereon a computer program which, when executed by the processor, performs the method of any of claims 1 to 4.
7. A computer storage medium storing computer software instructions for use with the method of any one of claims 1 to 4.
CN202110005408.8A 2021-01-04 2021-01-04 Private cloud deployment method, device and server Active CN112804097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110005408.8A CN112804097B (en) 2021-01-04 2021-01-04 Private cloud deployment method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110005408.8A CN112804097B (en) 2021-01-04 2021-01-04 Private cloud deployment method, device and server

Publications (2)

Publication Number Publication Date
CN112804097A CN112804097A (en) 2021-05-14
CN112804097B true CN112804097B (en) 2023-06-27

Family

ID=75807996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110005408.8A Active CN112804097B (en) 2021-01-04 2021-01-04 Private cloud deployment method, device and server

Country Status (1)

Country Link
CN (1) CN112804097B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113708971A (en) * 2021-08-30 2021-11-26 济南浪潮数据技术有限公司 Openstack cloud platform deployment method and related device
CN115580646A (en) * 2022-09-08 2023-01-06 中国建设银行股份有限公司 Middleware configuration method, device, server, medium and product
CN116150105B (en) * 2023-04-20 2023-07-11 北京云唤维科技有限公司 Reading and analyzing method and system for electronic file long-term storage package
CN116501335B (en) * 2023-06-28 2023-09-19 北京安锐卓越信息技术股份有限公司 Deployment method, device and medium of one-stop type station building system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775806A (en) * 2016-11-18 2017-05-31 国云科技股份有限公司 A kind of method of private clound application of upgrading
CN107749896A (en) * 2017-11-13 2018-03-02 天津开心生活科技有限公司 Private clound concurrency control method and device, storage medium and electric terminal
CN108964968A (en) * 2018-03-27 2018-12-07 深圳市康拓普信息技术有限公司 Service access management method and system under a kind of container cloud environment
CN112130866A (en) * 2020-10-09 2020-12-25 腾讯科技(深圳)有限公司 Application deployment method and related device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9258262B2 (en) * 2012-04-30 2016-02-09 Racemi, Inc. Mailbox-based communications system for management communications spanning multiple data centers and firewalls

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775806A (en) * 2016-11-18 2017-05-31 国云科技股份有限公司 A kind of method of private clound application of upgrading
CN107749896A (en) * 2017-11-13 2018-03-02 天津开心生活科技有限公司 Private clound concurrency control method and device, storage medium and electric terminal
CN108964968A (en) * 2018-03-27 2018-12-07 深圳市康拓普信息技术有限公司 Service access management method and system under a kind of container cloud environment
CN112130866A (en) * 2020-10-09 2020-12-25 腾讯科技(深圳)有限公司 Application deployment method and related device

Also Published As

Publication number Publication date
CN112804097A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN112804097B (en) Private cloud deployment method, device and server
CN107729041B (en) Application program hot updating method, device, terminal and storage medium
CN110058873B (en) Application page updating method, device, equipment and storage medium
CN107122289B (en) Method, device and system for system regression testing
US10599413B2 (en) Method and device for identifying file
CN106462430B (en) Application upgrade package obtaining method and device
JP2012529115A (en) Web page optimization
CN111104201A (en) System migration method and device, electronic equipment and storage medium
CN112667246B (en) Application function expansion method and device and electronic equipment
CN105938436A (en) Startup control method of operation system and terminal
CN102779029A (en) Method and device for scrambling JavaScript code
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN116522368A (en) Firmware decryption analysis method for Internet of things equipment, electronic equipment and medium
CN106874173B (en) Page template testing method and device
CN111177703A (en) Method and device for determining data integrity of operating system
CN113468118B (en) File increment storage method, device and storage medium based on blockchain
CN111124525A (en) Website function implementation method and device
CN112187783A (en) Authentication method and device, electronic equipment and storage medium
CN117149631A (en) Parameter verification method, device, equipment and medium
CN109002710B (en) Detection method, detection device and computer readable storage medium
CN114124521B (en) Cloud primary security arrangement method and device, electronic equipment and computer readable medium
CN106293620B (en) Method for detecting parameters in Flash Rom by intel platform
CN113948164A (en) Clinical medicine management method, device, equipment and computer readable storage medium
CN111209137B (en) Data access control method and device, data access equipment and system
CN110321133B (en) H5 application deployment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant