CN111124449B - Service system deployment method and device based on CF card and extinux guide mode - Google Patents

Service system deployment method and device based on CF card and extinux guide mode Download PDF

Info

Publication number
CN111124449B
CN111124449B CN201911315977.1A CN201911315977A CN111124449B CN 111124449 B CN111124449 B CN 111124449B CN 201911315977 A CN201911315977 A CN 201911315977A CN 111124449 B CN111124449 B CN 111124449B
Authority
CN
China
Prior art keywords
preset
partition
operating system
service
target
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
CN201911315977.1A
Other languages
Chinese (zh)
Other versions
CN111124449A (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.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity 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 DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN201911315977.1A priority Critical patent/CN111124449B/en
Publication of CN111124449A publication Critical patent/CN111124449A/en
Application granted granted Critical
Publication of CN111124449B publication Critical patent/CN111124449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/4401Bootstrapping

Landscapes

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

Abstract

The invention provides a business system deployment method and device based on a CF card and an extinux guiding mode, which relate to the technical field of computer systems and comprise the following steps: firstly, starting a preset CF card on an operated host, carrying out operating system boot loading through extinux, then configuring an operating system based on a preset process script to obtain a target operating system, and finally deploying the service system on the basis of the target operating system by using a preset service start script. The method stores the operating system and the preset service program file by using different partitions of the CF card, realizes system software integration, and quickly and automatically meets the deployment requirements of the operating system and the service system through the preset process script and the preset service starting script, thereby effectively relieving the technical problem of low installation efficiency of the service system deployment method in the prior art.

Description

Service system deployment method and device based on CF card and extinux guide mode
Technical Field
The present invention relates to the technical field of computer systems, and in particular, to a method and an apparatus for deploying a service system based on a CF card and an extinux boot mode.
Background
For the B-end product, besides the development quality of the software level, the perfect production filling process is also a key factor influencing the product quality. If the filling production mode is not mature and stable, the operation and maintenance cost of the product is increased, more unreliability is brought, and various problems caused by non-standard production in the production process can be brought to the product to influence the product use.
In the prior art, automatic installation of an operating system is mostly implemented based on a PXE (Preboot Execution Environment), a DHCP (Dynamic Host Configuration Protocol) and a Kickstart, where the PXE technology is used to enable the operating system to be started through a network, the DHCP technology is used to allocate network-related Configuration information such as an IP address, a subnet mask and a gateway to a user in a local area network, and a Kickstart Configuration file is used to enable the operating system to be automatically installed. The method can complete the installation of the standardized system, but the deployment of the service layer still needs manual operation, and is greatly influenced by the professional level of installation personnel and the installation environment, so that the service system is too long in deployment time and slow in installation speed.
In summary, the service system deployment method in the prior art has the technical problem of low installation efficiency.
Disclosure of Invention
The invention aims to provide a business system deployment method and a business system deployment device based on a CF card and an extinux guiding mode, so as to relieve the technical problem of low installation efficiency of the business system deployment method in the prior art.
In a first aspect, an embodiment provides a service system deployment method based on a CF card and an extinux guidance mode, including: starting a preset CF card on an operated host, and conducting operating system boot loading through extinux, wherein the preset CF card at least comprises: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file; configuring the operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system; and deploying a service system on the basis of the target operating system by using a preset service starting script.
In an optional embodiment, configuring the operating system based on a preset process script to obtain a target operating system includes: mounting the second partition to the operating system to obtain a first operating system; executing a preset system layer operation on the first operating system to obtain a second operating system, wherein the preset system layer operation at least comprises the following steps: setting a firewall policy; installing a dependency package required by the service system on the second operating system to obtain a third operating system; and reading the key information of the operated host to generate a dynamic password, and applying the dynamic password on the third operating system to obtain the target operating system.
In an optional embodiment, deploying a service system on the basis of the target operating system by using a preset service start script includes: reading the hard disk information of the operated host, and judging whether the hard disk has an independent disk redundant array; if yes, judging whether a preset partition exists in the hard disk, wherein the preset partition at least comprises the following steps: the system comprises a system exchange partition, a home partition and a data disk partition; if yes, mounting the preset subarea; if the preset partition does not exist in the hard disk, performing partition operation on the hard disk to obtain the preset partition, and mounting the preset partition; judging whether a target service system file corresponding to a target partition exists in the target partition, wherein the target partition is any one of the preset partitions; and if so, skipping the step of deploying the service program and starting the service program.
In an alternative embodiment, the method further comprises: and if the hard disk does not have the redundant array of independent disks, closing the operating system.
In an alternative embodiment, the method further comprises: if the target service system file corresponding to the target partition does not exist in the target partition, copying the service program file in the second partition to a preset directory, wherein the preset directory is a directory which needs to be installed by an application program; performing corresponding service deployment based on the service program file in the preset directory; setting the business service as a system starting service; and starting the service program.
In an alternative embodiment, the method further comprises: creating an operating system image by using a KS configuration file; partitioning the CF card to be processed according to preset requirements to obtain a first partition and a second partition; mounting the first partition and the second partition to a CF card manufacturing host; installing the operating system to the first partition using a preset command; and copying the preset service program file to the second partition to obtain the preset CF card.
In an alternative embodiment, the method further comprises: reading the target network card information of the operated host, wherein the target network card information comprises: network card sequence and network card name; and configuring network card information in a preset standby information file by using the target network card information, wherein the preset standby information file is stored in the second partition.
In an optional embodiment, the second partition is a partition encrypted based on a preset encryption policy.
In a second aspect, an embodiment provides a service system deployment apparatus based on a CF card and an extinux guidance mode, including: a loading module, configured to start a preset CF card on an operated host, and perform operating system boot loading through extinux, where the preset CF card at least includes: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file; the configuration module is used for configuring the operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system; and the deployment module is used for deploying the service system on the basis of the target operating system by utilizing a preset service starting script.
In an alternative embodiment, the configuration module comprises: the mounting unit is used for mounting the second partition to the operating system to obtain a first operating system; an execution unit, configured to execute a preset system layer operation on the first operating system to obtain a second operating system, where the preset system layer operation at least includes: setting a firewall policy; the installation unit is used for installing the dependency package required by the service system on the second operating system to obtain a third operating system; and the encryption unit is used for reading the key information of the operated host to generate a dynamic password and applying the dynamic password on the third operating system to obtain the target operating system.
In the prior art, the operation system is mostly deployed manually after being automatically installed, and the deployment mode is greatly influenced by the professional level of an installer and the installation environment, so that the service system is too long in deployment time and low in installation speed. Compared with the prior art, the invention provides a service system deployment method based on a CF card and an extinux guiding mode, which comprises the steps of firstly starting a preset CF card on an operated host, and carrying out operating system guiding loading through the extinux, wherein the preset CF card at least comprises the following components: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file; then configuring an operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system; and finally, deploying the service system on the basis of the target operating system by using a preset service starting script. The method stores the operating system and the preset service program file by using different partitions of the CF card, realizes system software integration, and quickly and automatically meets the deployment requirements of the operating system and the service system through the preset process script and the preset service starting script, thereby effectively relieving the technical problem of low installation efficiency of the service system deployment method in the prior art.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a service system deployment method based on a CF card and an extinux guidance manner according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating configuring an operating system based on a preset process script to obtain a target operating system according to an embodiment of the present invention;
fig. 3 is a flowchart of deploying a service system on the basis of a target operating system by using a preset service start script according to an embodiment of the present invention;
fig. 4 is a flowchart of another service system deployment method based on a CF card and an extinux boot mode according to an embodiment of the present invention;
fig. 5 is a functional block diagram of a service system deployment apparatus based on a CF card and an extinux guidance manner according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
The existing service host filling technology is mainly divided into two types, the first type is manual filling according to a production manual, and the mode is greatly influenced by the level of an installer and the installation environment, for example, multiple assemblies may be neglected during system installation, and the field environment is influenced or needs to be refilled due to fatal influences caused by selecting wrong parameters and the like; the second method is to adopt PXE + DHCP + Kickstart to realize automatic installation of the operating system, and then deploy the service layer manually, although the operating system is installed automatically, the service layer deployment still needs manual participation, and the same technical problem exists as the first method: the installation efficiency is low, the PXE and the DHCP are greatly influenced by the network, and when the system layer is damaged, the recoverability is poor, and the influence on the service is relatively large. In view of this, the present invention provides a service system deployment method based on a CF card and an extinux boot method, so as to alleviate the above technical problems.
Example one
An embodiment of the present invention provides a service system deployment method based on a CF card and an extinux boot mode, as shown in fig. 1, the method specifically includes the following steps:
step S101, starting a preset CF card on the operated host, and conducting operating system boot loading through the extinux.
The CF card (Compact Flash) is used as a storage device, the Flash memory is used revolutionarily, the CF card has the characteristics of permanently storing information, no power supply, high speed, light weight, low power consumption, small volume and the like, the CF card can be directly installed on a controller interface on a chip, a driver is not used, no moving part is used, the possibility of mechanical failure is low, data is safer, and the CF card becomes a good multifunctional storage system, and the controller capable of being carried randomly enables the CF card to be compatible with various platforms, such as DOS, windows, OS/2, mac and UNIX.
extinux is a variation of sysLinux booted from the Linux file system, works in the same way as sysLinux but with some minor modifications and optimizations, sysLinux is a powerful bootloader and is compatible with various media, its purpose is to simplify the time to first install Linux and to build a service or other special purpose boot disk, its installation is simple, once sysLinux is installed well, sysLinux boot disk can boot various DOS based tools, as well as MS-DOS/Windows or any other operating system.
In the method for deploying the service system in the embodiment of the present invention, a preset CF card is first started on an operated host, and an operating system is booted and loaded through extinux, so as to complete a partial start configuration of the operating system, wherein the preset CF card at least includes two partitions: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, the second partition is used for storing preset service program files, the purpose is that the operating system and the preset service program files are stored in a partitioned mode while system software is integrated, a CF card is used as a high-speed read-write storage device, and extinux is a loading mode for quickly deploying and guiding the system, so that the stability and the efficiency of the system can be improved. The embodiment of the present invention does not specifically limit the partition of the CF card, as long as the operating system and the preset service program file can be stored in a partition, other preset backup information files, for example, the system configuration loading class file, may be selectively stored in the second partition, and may also be stored in other partitions outside the first partition and the second partition under the condition that the CF card is divided into 3 partitions or more.
And S102, configuring the operating system based on the preset process script to obtain a target operating system.
After the partial starting configuration is completed, the operating system is configured based on the preset process script stored in the process starting directory of the operating system, and a target operating system is obtained, so that the target operating system meets the condition of deploying the service system.
And step S103, deploying the service system on the basis of the target operating system by using a preset service starting script.
After the target operating system is obtained, a preset service starting script is used for deploying the service system on the basis of the target operating system.
In the prior art, the operation system is automatically installed and then the service system is manually deployed, and the deployment mode is greatly influenced by the professional level of installation personnel and the installation environment, so that the service system is too long in deployment time and low in installation speed. Compared with the prior art, the invention provides a service system deployment method based on CF cards and an extinux guide mode, which comprises the steps of firstly starting the preset CF cards on an operated host computer, and carrying out operating system guide loading through the extinux, wherein the preset CF cards at least comprise the following components: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file; then configuring an operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system; and finally, deploying the service system on the basis of the target operating system by using a preset service starting script. The method stores the operating system and the preset service program file by using different partitions of the CF card, realizes system software integration, and quickly and automatically meets the deployment requirements of the operating system and the service system through the preset process script and the preset service start script, thereby effectively relieving the technical problem of low installation efficiency of the service system deployment method in the prior art.
The implementation process of the service system deployment method provided by the present invention is briefly introduced above, and the related contents thereof are described in detail below.
In an optional implementation manner, as shown in fig. 2, in the step S102, configuring the operating system based on the preset process script to obtain the target operating system, specifically, the method includes the following steps:
step S201, mount the second partition to the operating system, to obtain the first operating system.
Step S202, a preset system layer operation is executed on the first operating system to obtain a second operating system.
And step S203, installing a dependency package required by the service system on the second operating system to obtain a third operating system.
Step S204, reading the key information of the operated host to generate a dynamic password, and applying the dynamic password on the third operating system to obtain the target operating system.
In this embodiment of the present invention, the running of the preset process script is to configure the operating system, so that the configured operating system (target operating system) has a condition for deploying the service system, specifically, to obtain the target operating system, first mount the second partition storing the preset service program file, that is, start the application, and then execute the preset system layer operation, where the preset system layer operation includes: setting firewall policy, time zone setting and the like, presetting a dependency package required by a service system after system layer operation is finished, and finally reading key information of an operated host to generate a dynamic password and apply the dynamic password.
The process of how to obtain the target operating system is described in detail above, and the process of how to deploy the service system based on the target operating system by using the preset service start script is described in detail below.
In an optional implementation manner, as shown in fig. 3, in the step S103, deploying the service system on the basis of the target operating system by using a preset service start script specifically includes the following steps:
step S301, reading the hard disk information of the operated host, and judging whether the hard disk has the redundant array of independent disks.
If yes, step S302 is executed, and if no, step S303 is executed to close the operating system.
Specifically, to deploy the service system, a raid group (redundant array of independent disks) is required to be provided on the operated host, so that the hard disk information of the operated host is read first, and if the raid group exists, the following step S302 is executed, otherwise, the operating system is closed.
Step S302, judging whether the hard disk has a preset partition.
If yes, step S304 is executed, and if no, step S305 is executed.
Step S304, mounting the preset subarea;
step S305, performing partition operation on the hard disk to obtain a preset partition, and mounting the preset partition;
after it is determined that there is a raid group, it is further determined whether the hard disk has a preset partition, that is, a partition required for deploying a service system, where the preset partition in the embodiment of the present invention at least includes: the method includes that a system exchanges partitions, home partitions and data disk partitions, if the preset partitions are determined to exist, the preset partitions are mounted, if the preset partitions do not exist, a hard disk needs to be partitioned according to functions of the preset partitions, and the preset partitions obtained by the partitions are mounted.
After the pre-configured partition is successfully mounted, the following step S306 is further performed to avoid the repeated deployment of the service system.
Step S306, judging whether a target service system file corresponding to the target partition exists in the target partition.
If yes, step S307 is executed, and if not, steps S308 to S311 are executed.
Step S307, skipping the step of deploying the service program, and starting the service program.
The idea adopted by the embodiment of the present invention is to use the specific file of the specific partition as a verification object, that is, if the specific file exists in the specific partition, the specific file represents that the service system has been deployed and does not need to be deployed repeatedly. Therefore, in order to avoid the repeated deployment of the service system, whether a target service system file corresponding to a target partition exists in the target partition is judged firstly, wherein the target partition is any one of the preset partitions, and if the target partition exists, the step of deploying the service program can be skipped, and the service program is started; if the target partition does not have the target file corresponding to the target partition, the following four steps are executed.
Step S308, copying the service program file in the second partition to a preset directory.
Step S309, perform corresponding service deployment based on the service program file in the preset directory.
Step S310, the business service is set as the system starting service.
Step S311, start the service program.
Specifically, in order to deploy the service system, first, the service program file stored in the second partition of the preset CF card is copied to a preset directory (a directory in which an application program needs to be installed), then, corresponding service deployment is performed based on the service program file, in order to enhance the deployment speed of the service system, the service is set as a system start service, so that the service system can be automatically started, and finally, the service program is started, so that the deployment of the service system is completed.
The process of how to deploy the service system is described in detail above, and the process of manufacturing the preset CF card used in the embodiment of the present invention is described in detail below.
In an alternative embodiment, the method further comprises the steps of:
in step S401, an operating system image is created by using the KS configuration file.
Specifically, to implement automatic deployment of an operating system and a service system, an operating system image needs to be created in a KS (kiskstart) configuration file manner, and settings are mainly performed on a system base root directory partition format, an initial password, an installation package module, and the like.
Kickstart is an unattended installation. The working principle of the method is to record various parameters needing manual intervention filling in the installation process and generate a file named ks. If parameters are to be filled in during the installation process, the installation program firstly searches a ks.cfg file and automatically responds according to the parameters of the file. Cfg files cover all parameters that need to be filled in that may occur during installation, enabling unattended automatic installation. And the customized operating system can be manufactured.
And step S402, partitioning the CF card to be processed according to preset requirements to obtain a first partition and a second partition.
Step S403, mount the first partition and the second partition to the CF card manufacturing host.
Step S404, install the operating system to the first partition by using a preset command.
Step S405, copying the preset service program file to the second partition to obtain the preset CF card.
To manufacture a preset CF card meeting the deployment requirement of a service system, firstly, the CF card to be processed is identified on a CF card manufacturing host, corresponding partitioning is carried out on the CF card to be processed according to the requirement (a first partition and a second partition are obtained in the embodiment of the invention), then, the first partition and the second partition are mounted to the CF card manufacturing host, finally, an operating system is installed to the first partition by using a preset command, a preset service program file is copied to the second partition, and then the preset CF card is obtained, wherein the preset command can select a live-iso-to-disk command, and a preset process script is stored in a process starting directory of the operating system.
In an alternative embodiment, as shown in fig. 4, the method further comprises the steps of:
and step S104, reading the target network card information of the operated host.
Step S105, configuring network card information in the preset standby information file by using the target network card information.
In order to perfect the deployment of the service system, after the service program is started, the network card information of the operated host needs to be adjusted, and the target network card information of the operated host is firstly read, wherein the target network card information includes: and then configuring network card information in a preset standby information file by using the target network card information, and further completing the automatic setting of the IP address, wherein the preset standby information file is also stored in a second partition of the preset CF card.
In order to avoid the risk of leakage during the use of the system, in an optional embodiment, the second partition is a partition encrypted based on a preset encryption policy, preferably, after the preset service program file is copied to the second partition, the second partition is encrypted using cryptset, where the preset encryption policy is LUKS, and accordingly, when a file stored in the second partition is to be accessed, a decryption step needs to be performed first, and the related operation is finished, and the second partition needs to be re-locked (encrypted).
In summary, the embodiments of the present invention provide a service system deployment method based on a CF card and an extinux boot mode, where the method uses the CF card as a storage container, creates an operating system image according to requirements, writes an operating system and a preset service program file into different partitions of the CF card, starts the operating system using the CF card as a boot disk, and then performs distribution application and system-related configuration on the preset service program file in the card through an automation script, so that system software is integrated, thereby quickly completing the deployment requirement of the operating system and the service system, and effectively alleviating the technical problem of low installation efficiency of the service system deployment method in the prior art.
The CF card is a high-speed read-write storage device, the extinux is a loading mode for quickly deploying and guiding the system, the CF card and the extinux are combined to increase the stability and the efficiency of the system, an operating system installed in the CF card is provided with a recovery mechanism, certain wrong system layer operations can be solved after restarting, the security problems such as horse hanging of the system layer and the like can be prevented, and further, if the second partition adopts an encryption mode, the leakage risk in the using process of the system can be effectively avoided.
Example two
The embodiment of the present invention further provides a service system deployment device based on the CF card and the extinux guidance mode, where the service system deployment device based on the CF card and the extinux guidance mode is mainly used to execute the service system deployment method based on the CF card and the extinux guidance mode provided in the first embodiment, and the service system deployment device based on the CF card and the extinux guidance mode provided in the embodiment of the present invention is specifically described below.
Fig. 5 is a functional block diagram of a service system deployment apparatus based on a CF card and an extinux guidance mode according to an embodiment of the present invention, and as shown in fig. 5, the apparatus mainly includes: a loading module 100, a configuration module 200, a deployment module 300, wherein:
a loading module 100, configured to start a preset CF card on an operated host, and perform operating system boot loading through extinux, where the preset CF card at least includes: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file.
The configuration module 200 is configured to configure an operating system based on a preset process script to obtain a target operating system, where the preset process script is stored in a process start directory of the operating system.
The deployment module 300 is configured to deploy the service system based on the target operating system by using a preset service start script.
In the prior art, the operation system is automatically installed and then the service system is manually deployed, and the deployment mode is greatly influenced by the professional level of installation personnel and the installation environment, so that the service system is too long in deployment time and low in installation speed. Compared with the prior art, the invention provides a service system deployment device based on a CF card and an extinux guiding mode, which is characterized in that firstly, a preset CF card is started on an operated host, and the operation system is guided and loaded through the extinux, wherein the preset CF card at least comprises the following components: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file; then configuring an operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system; and finally, deploying the service system on the basis of the target operating system by using a preset service starting script. The device stores the operating system and the preset service program file by using different partitions of the CF card, realizes system software integration, and quickly and automatically meets the deployment requirements of the operating system and the service system through the preset process script and the preset service start script, thereby effectively relieving the technical problem of low installation efficiency of the service system deployment method in the prior art.
Optionally, the configuration module 200 includes:
and the mounting unit is used for mounting the second partition to the operating system to obtain the first operating system.
An execution unit, configured to execute a preset system layer operation on a first operating system to obtain a second operating system, where the preset system layer operation at least includes: and setting a firewall policy.
And the installation unit is used for installing the dependency package required by the service system on the second operating system to obtain a third operating system.
And the encryption unit is used for reading the key information of the operated host to generate a dynamic password and applying the dynamic password on the third operating system to obtain the target operating system.
Optionally, the deployment module 300 is specifically configured to:
and reading the hard disk information of the operated host, and judging whether the hard disk has the redundant array of independent disks.
If yes, judging whether a preset partition exists in the hard disk, wherein the preset partition at least comprises the following steps: a system switch partition, a home partition, and a data disk partition.
And if so, mounting the preset partition.
And if the hard disk does not have the preset partition, performing partition operation on the hard disk to obtain the preset partition, and mounting the preset partition.
And judging whether a target service system file corresponding to the target partition exists in the target partition, wherein the target partition is any one of the preset partitions.
And if so, skipping the step of deploying the service program, and starting the service program.
Optionally, the deployment module 300 is further configured to:
and if the hard disk does not have the redundant array of independent disks, closing the operating system.
Optionally, the deployment module 300 is further configured to:
and if the target service system file corresponding to the target partition does not exist in the target partition, copying the service program file in the second partition to a preset directory, wherein the preset directory is a directory which needs to be installed by the application program.
And performing corresponding service deployment based on the service program file in the preset directory.
And setting the business service as a system starting service.
The service program is started.
Optionally, the apparatus is further configured to:
an operating system image is created in the manner of a KS configuration file.
Partitioning the CF card to be processed according to a preset requirement to obtain a first partition and a second partition;
and mounting the first partition and the second partition to a CF card manufacturing host.
And installing the operating system to the first partition by using a preset command, and copying a preset service program file to the second partition to obtain a preset CF card.
Optionally, the apparatus is further configured to:
reading target network card information of the operated host, wherein the target network card information comprises: network card order and network card name.
And configuring network card information in a preset standby information file by using the target network card information, wherein the preset standby information file is stored in the second partition.
Optionally, the second partition is a partition encrypted based on a preset encryption policy.
EXAMPLE III
Referring to fig. 6, an embodiment of the present invention provides an electronic device, including: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the processor 60 is arranged to execute executable modules, such as computer programs, stored in the memory 61.
The memory 61 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 62 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The memory 61 is configured to store a program, and the processor 60 executes the program after receiving an execution instruction, where the method performed by the apparatus defined by the flow program disclosed in any embodiment of the present invention may be applied to the processor 60, or implemented by the processor 60.
The processor 60 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware integrated logic circuits or software in the processor 60. The Processor 60 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed 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 directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 61, and the processor 60 reads the information in the memory 61 and, in combination with its hardware, performs the steps of the above method.
The computer program product of the method and the apparatus for deploying a service system based on a CF card and an extinux boot mode provided in the embodiments of the present invention includes a computer-readable storage medium storing a nonvolatile program code executable by a processor, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
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 non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings or the orientations or positional relationships that the products of the present invention are conventionally placed in use, and are only used for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Furthermore, the terms "horizontal", "vertical", "suspended" and the like do not imply that the components are absolutely horizontal or suspended, but may be slightly inclined. For example, "horizontal" merely means that the direction is more horizontal than "vertical" and does not mean that the structure must be perfectly horizontal, but may be slightly inclined.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A service system deployment method based on CF card and extinux guide mode is characterized by comprising the following steps:
starting a preset CF card on an operated host, and conducting operating system boot loading through extinux, wherein the preset CF card at least comprises: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file;
configuring the operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system;
deploying a service system on the basis of the target operating system by using a preset service starting script;
the deploying the service system on the basis of the target operating system by using the preset service start script comprises the following steps:
reading the hard disk information of the operated host, and judging whether the hard disk has an independent disk redundant array;
if yes, judging whether a preset partition exists in the hard disk, wherein the preset partition at least comprises the following steps: the system comprises a system exchange partition, a home partition and a data disk partition;
if yes, mounting the preset subarea;
if the preset partition does not exist in the hard disk, performing partition operation on the hard disk to obtain the preset partition, and mounting the preset partition;
judging whether a target service system file corresponding to a target partition exists in the target partition, wherein the target partition is any one of the preset partitions;
and if so, skipping the step of deploying the service program and starting the service program.
2. The method of claim 1, wherein configuring the operating system based on a pre-defined process script to obtain a target operating system comprises:
mounting the second partition to the operating system to obtain a first operating system;
executing a preset system layer operation on the first operating system to obtain a second operating system, wherein the preset system layer operation at least comprises the following steps: setting a firewall policy;
installing a dependency package required by the service system on the second operating system to obtain a third operating system;
and reading the key information of the operated host to generate a dynamic password, and applying the dynamic password on the third operating system to obtain the target operating system.
3. The method of claim 1, further comprising:
and if the hard disk does not have the redundant array of independent disks, closing the operating system.
4. The method of claim 1, further comprising:
if the target service system file corresponding to the target partition does not exist in the target partition, copying the service program file in the second partition to a preset directory, wherein the preset directory is a directory which needs to be installed by an application program;
performing corresponding service deployment based on the service program file in the preset directory;
setting the business service as a system starting service;
and starting the service program.
5. The method of claim 1, further comprising:
creating an operating system image by using the KS configuration file;
partitioning the CF card to be processed according to a preset requirement to obtain a first partition and a second partition;
mounting the first partition and the second partition to a CF card manufacturing host;
installing the operating system to the first partition with a preset command; and
and copying the preset service program file to the second partition to obtain the preset CF card.
6. The method of claim 1, further comprising:
reading the target network card information of the operated host, wherein the target network card information comprises: network card sequence and network card name;
and configuring network card information in a preset standby information file by using the target network card information, wherein the preset standby information file is stored in the second partition.
7. The method of claim 1, wherein the second partition is a partition encrypted based on a preset encryption policy.
8. A service system deployment device based on CF card and extinux guiding mode is characterized by comprising:
a loading module, configured to start a preset CF card on an operated host, and perform operating system boot loading through extinux, where the preset CF card at least includes: the system comprises a first partition and a second partition, wherein the first partition is used for installing an operating system, and the second partition is used for storing a preset service program file;
the configuration module is used for configuring the operating system based on a preset process script to obtain a target operating system, wherein the preset process script is stored in a process starting directory of the operating system;
the deployment module is used for deploying the service system on the basis of the target operating system by utilizing a preset service starting script;
the deployment module is specifically configured to:
reading the hard disk information of the operated host, and judging whether the hard disk has an independent disk redundant array;
if yes, judging whether a preset partition exists in the hard disk, wherein the preset partition at least comprises the following steps: the system comprises a system exchange partition, a home partition and a data disk partition;
if yes, mounting the preset subarea;
if the preset partition does not exist in the hard disk, performing partition operation on the hard disk to obtain the preset partition, and mounting the preset partition;
judging whether a target service system file corresponding to a target partition exists in the target partition, wherein the target partition is any one of the preset partitions;
and if so, skipping the step of deploying the service program and starting the service program.
9. The apparatus of claim 8, wherein the configuration module comprises:
the mounting unit is used for mounting the second partition to the operating system to obtain a first operating system;
an execution unit, configured to execute a preset system layer operation on the first operating system to obtain a second operating system, where the preset system layer operation at least includes: setting a firewall policy;
the installation unit is used for installing the dependency package required by the service system on the second operating system to obtain a third operating system;
and the encryption unit is used for reading the key information of the operated host to generate a dynamic password and applying the dynamic password on the third operating system to obtain the target operating system.
CN201911315977.1A 2019-12-18 2019-12-18 Service system deployment method and device based on CF card and extinux guide mode Active CN111124449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911315977.1A CN111124449B (en) 2019-12-18 2019-12-18 Service system deployment method and device based on CF card and extinux guide mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911315977.1A CN111124449B (en) 2019-12-18 2019-12-18 Service system deployment method and device based on CF card and extinux guide mode

Publications (2)

Publication Number Publication Date
CN111124449A CN111124449A (en) 2020-05-08
CN111124449B true CN111124449B (en) 2023-01-20

Family

ID=70500334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911315977.1A Active CN111124449B (en) 2019-12-18 2019-12-18 Service system deployment method and device based on CF card and extinux guide mode

Country Status (1)

Country Link
CN (1) CN111124449B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1536484A (en) * 2003-04-02 2004-10-13 2000 Movable operation system and method for loading said system
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
CN101038551A (en) * 2006-03-16 2007-09-19 南京大学 Method for implementing the start of Linux operation system in mobile hard disk
JP2009271582A (en) * 2008-04-30 2009-11-19 Brother Ind Ltd Computer system, program, and system start method for computer system
CN102520989A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent colony system deployment method based on U disk
CN103514015A (en) * 2013-09-16 2014-01-15 亚太宝龙科技(湖南)有限公司 Method and device for booting operation system from storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100428156C (en) * 2005-09-27 2008-10-22 胡元志 Method for completely running operating system in multi storage media and its operating system
US9286046B2 (en) * 2011-12-21 2016-03-15 Advanced Micro Devices, Inc. Method and apparatus for distributed operating system image deployment
CN104572154A (en) * 2013-10-23 2015-04-29 北京天地超云科技有限公司 Quick deployment method for RHEL (red hat enterprise Linux) operating system and applications
CN104468199A (en) * 2014-11-23 2015-03-25 国云科技股份有限公司 Frame and running method suitable for deployment and management of Linux distributed system
CN105824678A (en) * 2016-05-17 2016-08-03 浪潮电子信息产业股份有限公司 Method and device for installing operating system
CN109634687A (en) * 2018-12-19 2019-04-16 恒为科技(上海)股份有限公司 The starting method and apparatus of application software in a kind of embedded Linux system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1536484A (en) * 2003-04-02 2004-10-13 2000 Movable operation system and method for loading said system
CN101038551A (en) * 2006-03-16 2007-09-19 南京大学 Method for implementing the start of Linux operation system in mobile hard disk
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
JP2009271582A (en) * 2008-04-30 2009-11-19 Brother Ind Ltd Computer system, program, and system start method for computer system
CN102520989A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent colony system deployment method based on U disk
CN103514015A (en) * 2013-09-16 2014-01-15 亚太宝龙科技(湖南)有限公司 Method and device for booting operation system from storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Tornado2.0下用CF卡作启动盘的详细步骤;huazaicola;《http://blog.csdn.net/huazaicola/article/details/6148737》;20110118;1-7 *

Also Published As

Publication number Publication date
CN111124449A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN109274722B (en) Data sharing method and device and electronic equipment
CN101325513B (en) Method, equipment and system for upgrading software
EP3518099B1 (en) Installation of operating system
CN107368331B (en) Configuration file updating method and device for application program
CN107608681B (en) Operating system installation method and device and server
CN101546270A (en) Automatic installation method for Linux operation system, device and system
CN110879712A (en) Cloud data center physical host installation method and related device
US9098373B2 (en) Software update methodology
CN113391828B (en) Method and system for realizing system disk RAID division and installing operating system
CN113238835B (en) Virtual machine configuration method, device, server and system
CN103577210A (en) System and method for mounting between mobile terminals
CN114201239B (en) System adapting method and device, electronic equipment and storage medium
CN106547602B (en) Method for manufacturing operating system mirror image suitable for iSCSI protocol remote wireless loading
US6401201B2 (en) Arrangements offering firmware support for different input/output (I/O) types
CN111124449B (en) Service system deployment method and device based on CF card and extinux guide mode
CN115951920A (en) Mobile equipment upgrading method and device, storage unit and mobile equipment
CN102169445A (en) Security upgrading method for BootRom
CN113010195B (en) System upgrading method, storage medium and terminal equipment
CN112566286B (en) Set top box AP mode realization method and device, set top box and storage medium
Cisco Loading System Images and Configuration Files
Cisco Loading System Images and Configuration Files
CN113885926A (en) Operating system online upgrading method based on security chip
CN113127026A (en) Virtual machine component processing method and device
JP2002304299A (en) Method, system and program for installing cluster system
CN116055310B (en) Method, device and network equipment for recovering user configuration information

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