CN116450162A - System and method for deploying and installing interface interactive service components - Google Patents

System and method for deploying and installing interface interactive service components Download PDF

Info

Publication number
CN116450162A
CN116450162A CN202310432058.2A CN202310432058A CN116450162A CN 116450162 A CN116450162 A CN 116450162A CN 202310432058 A CN202310432058 A CN 202310432058A CN 116450162 A CN116450162 A CN 116450162A
Authority
CN
China
Prior art keywords
installation
service component
packages
package
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310432058.2A
Other languages
Chinese (zh)
Inventor
王元伟
谢峥
高庆官
王鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Cyber Peace Technology Co Ltd
Original Assignee
Nanjing Cyber Peace 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 Nanjing Cyber Peace Technology Co Ltd filed Critical Nanjing Cyber Peace Technology Co Ltd
Priority to CN202310432058.2A priority Critical patent/CN116450162A/en
Publication of CN116450162A publication Critical patent/CN116450162A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/451Execution arrangements for user interfaces
    • 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

Abstract

The invention discloses an interface interactive service component deployment and installation system and method, which are used for generating a customized operating system image file through an image customizing module; guiding a user to perform installation configuration operation through the interactive deployment installation module, comprising: the network configuration unit is used for checking user input, writing a unified configuration file after configuration is effective, and reading the configuration file when the service component package is installed; the configuration information unit is used for setting variable information required by installation of the service component package and writing the information into a unified configuration file; a service component installation selection unit for selecting a plurality of service component packages to be installed; the business component installation unit is used for calling an installation script in the business component package based on the unified configuration file according to a preset installation sequence and executing the installation of each business component package; the root password modifying unit is used for modifying the root password and encrypting and storing the root password. The invention can reduce the operation difficulty and improve the deployment efficiency.

Description

System and method for deploying and installing interface interactive service components
Technical Field
The invention relates to an interface interactive service component deployment and installation system and method, belonging to the field of computer software.
Background
As shown in fig. 1, the current field environment needs to deploy a service application, and the flow is approximately: 1. engineers install operating systems using official iso images: manually setting information such as partition codes, root passwords and the like; 2. the root user logs in the system to manually configure network information; 3. uploading each business component installation package: decompression one by one, manual modification of configuration, installation one by one. 4. Multiple servers in the cluster repeat the above operations. The existing service application installation and deployment mode has the following problems: (1) the problem of incomplete installation of the first-line deployment official mirror image of a delivery engineer and basic rpm is solved, the installation is required to be manually executed, and the installation is easy to miss; the root password is sometimes set as a simple password (potential safety hazard) for operation convenience; the root partition needs to be set to xfs format (mount to configure xfs_quota quota function). (2) Profile modification: vi, more manual modification places are ordered, the problems of incomplete configuration or other possible misoperation exist, the operation is complex, and the efficiency is low; (3) the packaging formats of the business departments are not uniform, the decompression modes are different, and the operation difficulty is increased; the business packages have a dependency relationship, the installation sequence among the components is required to be strictly followed, whether the dependency packages are installed or not is required to be inquired before the installation, and if the sequence can be set in advance, the efficiency is improved; (4) the servers are required to be installed one by one manually, the efficiency is low (5), and an operator is required to master certain linux related commands in the installation and deployment process, so that the usability is poor.
Disclosure of Invention
The invention aims to: aiming at the problems in the prior art, the invention aims to provide an interface interactive service component deployment and installation system and method, which can reduce operation difficulty and improve deployment efficiency.
The technical scheme is as follows: in order to achieve the aim of the invention, the invention adopts the following technical scheme:
an interface interactive business component deployment installation system, comprising:
the mirror image customizing module is used for eliminating redundant rpm packages of an operating system, increasing basic rpm packages relied by service components, writing ks.cfg files to realize automatic installation of the operating system, and increasing custom rpm packages for creating an installation user, wherein the installation user has root authority, and displaying a graphical interaction interface after logging in; generating a new operating system image file;
and, an interactive deployment installation module comprising:
the network configuration unit is used for an operator to configure network information based on an interactive interface mode, checking user input, writing a network card configuration file after confirming no errors, and restarting network service to take effect; writing the network information into a unified configuration file for reading when the service component package is installed;
the method comprises the steps of obtaining a configuration information unit, setting variable information comprising node type, language type, calculation node number and IP information required by service component package installation by an operator based on an interactive interface mode, writing the information into a unified configuration file, and reading the information when the service component package is installed;
the business component installation selection unit is used for operators to select a plurality of business component packages to be installed based on an interactive interface mode; the business component package is provided with a unified naming specification and an installation script interface and is stored under a designated file directory;
the business component installation unit is used for calling an installation script in the business component package based on the unified configuration file according to an installation sequence pre-configured according to the dependency relationship among the components and executing the installation of each business component package;
and the root password modification unit is used for modifying the root password and encrypting and storing the root password after the business component package is installed.
Preferably, in the network configuration unit, the configured network information includes configuration information of a Web portal, a management portal, a mirror portal and a Trunk portal; in the configuration information acquisition unit, the node type comprises a control node and a calculation node in a cluster environment; wherein the control node is configured to receive the user request and schedule the computing node for processing.
Preferably, the service component package naming unifies and starts with INSTALL_RESROUCE, ends with tar.gz, and the installation script is install.sh; the service component package is compressed and decompressed according to the agreed secret key.
Preferably, the interactive deployment installation module further provides information display units including a network information query unit, a display available installation package inventory unit, and/or a display service installation dependent configuration information unit.
Preferably, the service component installation selection unit supports an operator to manually set the installation sequence of the service component package; in the service component installation unit, service component packages are automatically ordered according to the following mode: and storing the installation packages selected by the operator in the temporary file in sequence, traversing a preset installation package installation sequence list, storing the installation packages in a new list if the installation packages are matched with the package names selected by the operator, deleting the matched items from the temporary file, and after traversing, sequentially adding the installation packages to the new list if the temporary file has the rest installation packages.
Preferably, the service component installation unit supports parallel installation of a plurality of server nodes, establishes communication between the server nodes when the plurality of server nodes are configured, copies a service installation package to a remote server, and remotely executes a decompression command through ssh; and the installation process on the operation node is put in the background for operation, and simultaneously the remote server is connected in parallel for installation, and whether the installation process is ended is judged by circularly checking whether the installation process PID exists.
An interface interactive service component deployment and installation method comprises the following steps:
removing redundant rpm packages of an operating system, adding a basic rpm package relied by a service component, writing a ks.cfg file to realize automatic installation of the operating system, adding a custom rpm package for creating an installation user, and generating a new operating system image file;
completing the installation of an operating system based on automatic response, and automatically creating an ftp user for transmitting files and an installation user with root authority;
after the installation user logs in, displaying a graphical interaction interface, and entering interactive deployment and installation;
receiving network information configured by an operator, checking user input, writing a network card configuration file after confirming no error, and restarting network service to take effect; writing the network information into a unified configuration file for reading when the service component package is installed;
receiving variable information, including node type, language type, calculated node number and IP information, required by service component package installation set by an operator, and writing the information into a unified configuration file for reading when the service component package is installed;
receiving a plurality of business component packages which are selected by an operator and need to be installed; the business component package is provided with a unified naming specification and an installation script interface and is stored under a designated file directory;
according to the preset installation sequence according to the dependency relationship among the components, based on the unified configuration file, invoking an installation script in the service component package, and executing the installation of each service component package;
after the business component package is installed, the root password is modified and stored in an encrypted mode.
A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program when loaded into the processor implementing the steps of the interface interactive service component deployment and installation method.
The beneficial effects are that: compared with the prior art, the invention has the following advantages:
1. the invention customizes the iso mirror image of the system, completes the automatic installation of the system by a ks.cfg automatic response mode, has simpler and more convenient system installation and avoids the error of system setting.
2. The invention customizes the iso image of the system, adds a supplementary basic rpm package, and avoids neglected loading; and encapsulating the script used by the installation user (tmpinstallusr) into an rpm package, improving the encapsulation and portability, automatically creating ftp users and related configurations, and the like.
3. The whole process of business package installation avoids root user login, interfaces operation, and the background performs rationality check on user input, thereby reducing risks of configuration errors and misoperation.
4. The packaging requirements of the service component installation packages are unified, a plurality of service components can be installed at one time, a plurality of servers can be installed in parallel, manual installation one by one is not needed, and the deployment efficiency is improved.
5. And the whole graphical interactive interface operation of installation and configuration reduces the operation difficulty, increases the usability, and can complete deployment without knowing the related command of the linux by a user.
Drawings
FIG. 1 is a flow chart of a prior art business component deployment installation.
Fig. 2 is a flowchart of service component deployment and installation according to an embodiment of the present invention.
FIG. 3 is a schematic diagram of a graphical interactive interface homepage (network configuration) according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a network connection of a server according to an embodiment of the invention.
Fig. 5 is a schematic diagram of a network information configuration flow in an embodiment of the present invention.
Fig. 6 is a schematic diagram of Web portal selection in an embodiment of the present invention.
Fig. 7 is a schematic diagram of Web portal configuration in an embodiment of the present invention.
Fig. 8 is a schematic diagram of selecting a management network card according to an embodiment of the invention.
Fig. 9 is a schematic diagram of a management network card configuration according to an embodiment of the invention.
Fig. 10 is a schematic diagram of a configuration information acquisition flow in an embodiment of the present invention.
Fig. 11 is a schematic diagram of node type configuration in an embodiment of the present invention.
FIG. 12 is a diagram illustrating a mirror portal selection in accordance with an embodiment of the present invention.
Fig. 13 is a schematic diagram of Trunk portal selection in an embodiment of the present invention.
FIG. 14 is a schematic diagram of virtual machine address pool configuration in an embodiment of the present invention.
FIG. 15 is a schematic diagram of language type configuration in an embodiment of the present invention.
Fig. 16 is a schematic diagram of a computing node configuration in an embodiment of the present invention.
FIG. 17 is a schematic diagram of a graphical interactive interface homepage (mounting assembly) in an embodiment of the present invention
Fig. 18 is a schematic diagram of service component packet selection in an embodiment of the present invention.
Fig. 19 is a schematic diagram illustrating the determination of the installation order of service components according to an embodiment of the present invention.
Fig. 20 is a schematic diagram of a parallel installation flow of multiple servers in an embodiment of the invention.
Detailed Description
The technical scheme of the invention will be clearly and completely described below with reference to the accompanying drawings and specific embodiments.
In order to reduce deployment difficulty and error probability and improve deployment efficiency, the embodiment of the invention discloses an interface interactive service component deployment and installation system which can be handed to personnel who hardly understand shell commands to operate through interface interactive deployment. The system mainly comprises a mirror image customizing module and an interactive deployment and installation module, wherein the mirror image customizing module is used for customizing an operating system mirror image, and realizes the whole-course automatic answer installation of the operating system by writing a ks.cfg file, namely, the operations of root password setting, disk partition size and format, ftp user creation, tmpinstallusr user creation, xfs_quota configuration parameter setting and the like are automatically completed, and manual setting is not needed. The interactive deployment installation module provides units such as network configuration, configuration information acquisition, service component installation selection, service component installation, root password modification and the like, and the whole-process installation and configuration are realized in an interface interaction mode without a shell command of a user, so that the installation of a plurality of service component packages and the parallel installation of a plurality of servers are completed at one time according to a given installation sequence. After deployment is completed, automatically modifying the root password into a random complex password, and storing a password ciphertext; the ciphertext can be decrypted only by specific personnel, so that the system security is improved.
The main unit core functions in the interactive deployment and installation module are as follows:
the network configuration unit is used for an operator to configure network information based on an interactive interface mode, checking user input, writing a network card configuration file after confirming no errors, and restarting network service to take effect; writing the network information into a unified configuration file for reading when the service component package is installed;
the method comprises the steps of obtaining a configuration information unit, setting variable information comprising node type, language type, calculation node number and IP information required by service component package installation by an operator based on an interactive interface mode, writing the information into a unified configuration file, and reading the information when the service component package is installed;
the business component installation selection unit is used for operators to select a plurality of business component packages to be installed based on an interactive interface mode; the business component package has unified naming standards and an installation script interface and is stored under a designated file directory;
the business component installation unit is used for calling an installation script in the business component package based on the unified configuration file according to an installation sequence pre-configured according to the dependency relationship among the components and executing the installation of each business component package;
the root password modification unit is used for modifying the root password and encrypting and storing the root password after the business component package is installed;
the network information inquiry unit is used for displaying the network information which is configured currently and comprises information such as a network card name, a configured IP address and the like;
displaying an available installation package list unit for a user to check and sequentially select service packages to be installed;
and displaying the service installation dependency configuration information unit for a user to check the installation dependency relationship among the service packages.
FIG. 2 illustrates a detailed flow of an interface interactive service component deployment and installation method according to an embodiment of the present invention, after a user-defined operating system image file is generated, the operating system installation is completed based on automatic response, and an ftp user for transmitting the file and an installation user with root authority are automatically created; after the installation user logs in, displaying a graphical interaction interface, and entering interactive deployment and installation; receiving network information configured by an operator, checking user input, writing a network card configuration file after confirming no error, and restarting network service to take effect; writing the network information into a unified configuration file for reading when the service component package is installed; receiving variable information, including node type, language type, calculated node number and IP information, required by service component package installation set by an operator, and writing the information into a unified configuration file for reading when the service component package is installed; receiving a plurality of business component packages which are selected by an operator and need to be installed; according to the preset installation sequence according to the dependency relationship among the components, based on the unified configuration file, invoking an installation script in the service component package, and executing the installation of each service component package; after the business component package is installed, the root password is modified and stored in an encrypted mode.
Supporting parallel installation of a plurality of server nodes, establishing communication among the server nodes when the plurality of server nodes are configured, copying a service installation package to a remote server, and remotely executing a decompression command through ssh; and the installation process on the operation node is put in the background for operation, and simultaneously the remote server is connected in parallel for installation, and whether the installation process is ended is judged by circularly checking whether the installation process PID exists.
The flow related to the embodiment of the present invention will be described in detail with reference to specific configurations.
1. Custom iso system mirroring
The generation process of the custom iso image file of the operating system can refer to the existing file, such as a method and a system for compiling an RPM software package based on a Linux system disclosed in patent application CN107577466A and a method for generating a custom Linux image by an interactive interface disclosed in patent application CN 110888648A. Some of the main configurations involved in the inventive business scenario are described below.
(1) Through the automatic response of the ks.xfg file, system partition and root password setting and the like are completed, and the mount quota limit (the limit to a disk when a dock container is created by a training platform) is increased:
(2) Adding basic rpm package and custom rpm package, re-editing combs.xml file under BaseOS/repodata directory, adding required installation package in < id > core part, such as
<packagereq type="mandatory">tar</packagereq>
<packagereq type="mandatory">libaio-devel</packagereq>
< packagereq type= "manager" > tmpinstallusrpkg </packagereq > (this is a custom rpm package)
……
So add all the basic rpm names needed to be installed into, then add the needed rpm package file under the BaseOS/Packages directory, regenerate the rpm index by executing the following commands under the BaseOS/directory:
(3) Creation of tmpinstallusr user specification: modifying/etc/passwd files, changing User ID (UID) and Group ID (GID) into 0:0, namely, tmpinstallusr user has root authority (super user), and avoiding installation interruption caused by insufficient authority; customizing the user shell as/home/tmpinstallusr/shell; the user logs in to automatically execute the script and displays the graphical interactive interface. The user information is as follows:
(4) Creating ftp user specification: adding an ftp user to the ks.cfg file for uploading an installation package; detailed configuration is not described here, and the user name is ftp_user; cipher ftp_password.
(5) Generating iso mirror commands
Generating CentOS8_Mini_OS iso image file
2. Packaging requirements of each business component
The folder naming requirement is "INSTALL_RESROUCE_", which is the name of each component.
The unified suffix of the compressed packet naming is tar.gz: INSTALL_RESROUCE_, tar
Each business component installation script must be install
Install package compress command specifying an encryption key value, such as QWEasd123:
a decompress command specifying decompression to/tmp directory:
3. interactive interface configuration
In this embodiment, the interactive interface may be implemented by two graphical scripts, i.e., a whisptail and a dialog. After the operating system is installed, tmpinstallusr user logs in (password: 123456), automatically executes the user shell (i.e.)
/home/tmpinstallusr/shell) provides a menu of functions as shown in fig. 3.
Functional description:
sequence number Description of the functionality
1 Configuring network information
2 Querying network information
3 Acquiring service installation dependent configuration information
4 Installation business component
5 Checking system service status
6 Displaying a list of available installation packages
7 Modifying root user ssh login password
t Designated network card indicator lamp flashes, so that network card positioning is facilitated
3.1 configuring a network
The platform deployment network topology is shown in fig. 4, and the network port function description:
firstly selecting a network card, if the position of the network is not determined, the physical server can assign the position of the network card on the network card flash lamp positioning server through t (if the virtual machine is a virtual machine, the network card can be positioned according to the displayed MAC address).
The network configuration implementation flow is shown in fig. 9, the network card names and mac addresses of all available network cards of the server are listed on a configuration network page, an operator selects a Web network card, and after getting back, a network card IP, a gateway and a mask are input; the Web network card IP, gateway and mask are input, submitted, and after verification is successful, the Web network card IP, gateway and mask are input into the message network card configuration, as shown in fig. 6 and 7.
As shown in fig. 8 and 9, a management network card (the used network card is not displayed any more) is selected, the management network card IP and the mask are configured, submitted, and after verification is successful, the network card configuration file is written.
Specifically, the verification of rationality of the user input network information includes: 1. checking whether the IP meets the specification;
2. checking whether the mask is legal; 3. checking whether the gateway meets the specification; 4. checking whether the IP and the gateway belong to the same network segment; the ip first segment cannot be 127.
Writing the network configuration information into the network card configuration file after the network information is successfully checked
The original configuration file is backed up before the network card is written, so that the back-off reconfiguration is convenient; restarting the network service, enabling configuration to be effective, and writing network configuration information into a unified configuration file.
The configuration is completed, and the current configured network information can be displayed through an option 2; if the network configuration needs to be modified, a "1" reconfiguration may be selected.
3.2 acquiring configuration information
Option 3 is to obtain configuration information, and this stage will save information set by the operator to a unified configuration file, and read information from the unified configuration file when all service components are installed. The main flow of the configuration information acquisition stage is shown in fig. 10.
The option '3' is selected to enter a configuration stage, only main configuration information and a screenshot are extracted in the embodiment, and different configuration information can be customized according to service requirements in actual use.
Fig. 11-16 illustrate the setting of node type, language type related information. The node types include a controller node (control node) and a computer node (computing node), wherein the controller node provides an API interface, accepts a user request, and schedules the computer node to process the request. A mirror portal, a trunk portal, an IP address pool (IP range usable by the starting virtual machine default) range of the selected node, and the like. If a plurality of computing nodes are set, the computing nodes are installed in parallel during installation, the current operation server detects the communication with other computing node servers and creates mutual trust, and the installation stage executes an installation script through ssh remote connection.
3.3 service package installation
The service installation package is uploaded by the ftp user, and the software tool is recommended to be FileZilla. The background modifies the ftp user root directory through the color, and the uploading installation packages are all stored under the ftp user home directory.
As shown in FIG. 17, after the installation package uploading is completed, the "4" carriage return is selected, and all installation package lists meeting the naming standards are listed. As the service is continuously developed, the number of installed service packages is also continuously increased, and after the number of installed service packages is increased, the installation sequence is also complicated, so that the user only needs to select the service packages to be installed, the background automatically adjusts the installation sequence, and the interface of the installed packages is selected as shown in fig. 18.
If the selected installation package is among the known installation packages, the installation order is automatically adjusted, and if there are packages that are not within the known range (rarely present), the package is placed in the final installation. The order of installation packages is shown to be confirmed by the user as in fig. 19.
And selecting a BeginInstallal carriage return, and entering an installation flow. If "manual_set" is selected, the operator is allowed to manually Set the installation order (stepwise selection of packages to be installed, and the user-selected packages are saved in order in the background).
The automatic ordering can be realized in the following way:
and storing the installation packages selected by the operator into a temporary file in sequence, setting a known installation package installation sequence list in the script, traversing the list one by one, storing the installation packages into a new list if the installation packages are matched with the package names selected by the operator, deleting the matched items from the temporary file, and after traversing, sequentially adding the installation packages into the new list if the temporary file has the rest installation packages.
The specific installation process is shown in fig. 20, and specifically includes: after the installation packages are confirmed, the installation packages are decompressed one by one, if the installation packages with decompression failure give prompts, after all decompression is completed, if other server nodes exist, the service installation packages are copied to other servers, and the ssh remotely executes decompression commands;
ssh$NodeIP"openssl des3-d-k QWEasd123-salt-pbkdf2-in
/home/ftp/INSTALL_RESROUCE_***.tar.gz|tarxzf--C/tmp"
and the installation is executed in a background mode, and meanwhile, the parallel ssh is connected with other servers to execute the installation, whether the safety is finished or not is judged by circularly checking whether the PID exists, and the installation log is stored in a log file.
nohupssh$NodeIP"cd/tmp/***;bash install.sh>>/tmp/install***.log 2>&1"&
compute_install_pid=$!
Checking whether the current process ends the kill-0PID:
while kill-0$compute_install_pid 2>/dev/null;do
sleep 10;
done
check installation results: performing a check after all security packages of all nodes are installed, the check items including but not limited to the following information:
(1) Whether the installation log has error reporting information or not
(2) Enumerating monitoring ports, checking whether the port states of all servers are normal ss-tuln
(3) Enumerating required services, checking whether the service state is normal
(4) Checking whether key interfaces of business components are normal
If the abnormal condition exists in the inspection, the node IP and the error reporting information are stored in the log, and all the nodes are uniformly displayed after the inspection. If there is no error message, then display "Installation completed-! "
4 setting root random password
The service package is installed, and the root password modification is completed by selecting 7Modify root ssh login password. If the modify root password operation is not performed, the crontab timing task will automatically modify the root password (crontab modifies the root password once a weekly timing).
root password encryption storage:
root password decryption:
and creating an ordinary user ops, limiting available commands of a user through lshell, and only checking that the root_login_password has no deletion and modification permission.
Based on the same inventive concept, the computer system disclosed in the embodiment of the invention comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of the above-mentioned interface interactive service component deployment and installation method when being loaded to the processor.

Claims (10)

1. An interface interactive service component deployment and installation system, comprising:
the mirror image customizing module is used for eliminating redundant rpm packages of an operating system, increasing basic rpm packages relied by service components, writing ks.cfg files to realize automatic installation of the operating system, and increasing custom rpm packages for creating an installation user, wherein the installation user has root authority, and displaying a graphical interaction interface after logging in; generating a new operating system image file;
and, an interactive deployment installation module comprising:
the network configuration unit is used for an operator to configure network information based on an interactive interface mode, checking user input, writing a network card configuration file after confirming no errors, and restarting network service to take effect; writing the network information into a unified configuration file for reading when the service component package is installed;
the method comprises the steps of obtaining a configuration information unit, setting variable information comprising node type, language type, calculation node number and IP information required by service component package installation by an operator based on an interactive interface mode, writing the information into a unified configuration file, and reading the information when the service component package is installed;
the business component installation selection unit is used for operators to select a plurality of business component packages to be installed based on an interactive interface mode; the business component package is provided with a unified naming specification and an installation script interface and is stored under a designated file directory;
the business component installation unit is used for calling an installation script in the business component package based on the unified configuration file according to an installation sequence pre-configured according to the dependency relationship among the components and executing the installation of each business component package;
and the root password modification unit is used for modifying the root password and encrypting and storing the root password after the business component package is installed.
2. The interface interactive service component deployment and installation system according to claim 1, wherein in the network configuration unit, the configured network information includes configuration information of a Web portal, a management portal, a mirror portal, and a Trunk portal; in the configuration information acquisition unit, the node type comprises a control node and a calculation node in a cluster environment; wherein the control node is configured to receive the user request and schedule the computing node for processing.
3. The interface interactive service component deployment and installation system according to claim 1, wherein the service component package naming is unified starting with INSTALL_RESROUCE and ending with tar.gz, and the installation script is install.sh; the service component package is compressed and decompressed according to the agreed secret key.
4. The interface interactive service component deployment and installation system of claim 1, wherein the interactive deployment and installation module further provides information display units including a network information query unit, a display available installation package inventory unit, and/or a display service installation dependent configuration information unit.
5. The interface interactive service component deployment and installation system according to claim 1, wherein the service component installation selection unit supports an operator to manually set an installation order of service component packages; in the service component installation unit, service component packages are automatically ordered according to the following mode: and storing the installation packages selected by the operator in the temporary file in sequence, traversing a preset installation package installation sequence list, storing the installation packages in a new list if the installation packages are matched with the package names selected by the operator, deleting the matched items from the temporary file, and after traversing, sequentially adding the installation packages to the new list if the temporary file has the rest installation packages.
6. The interface interactive service component deployment and installation system according to claim 1, wherein in the service component installation unit, a plurality of server nodes are supported for parallel installation, when the plurality of server nodes are configured, communication between the server nodes is established, a service installation package is copied to a remote server, and a decompression command is remotely executed through ssh; and the installation process on the operation node is put in the background for operation, and simultaneously the remote server is connected in parallel for installation, and whether the installation process is ended is judged by circularly checking whether the installation process PID exists.
7. The method for deploying and installing the interface interactive service component is characterized by comprising the following steps:
removing redundant rpm packages of an operating system, adding a basic rpm package relied by a service component, writing a ks.cfg file to realize automatic installation of the operating system, adding a custom rpm package for creating an installation user, and generating a new operating system image file;
completing the installation of an operating system based on automatic response, and automatically creating an ftp user for transmitting files and an installation user with root authority;
after the installation user logs in, displaying a graphical interaction interface, and entering interactive deployment and installation;
receiving network information configured by an operator, checking user input, writing a network card configuration file after confirming no error, and restarting network service to take effect; writing the network information into a unified configuration file for reading when the service component package is installed;
receiving variable information, including node type, language type, calculated node number and IP information, required by service component package installation set by an operator, and writing the information into a unified configuration file for reading when the service component package is installed;
receiving a plurality of business component packages which are selected by an operator and need to be installed; the business component package is provided with a unified naming specification and an installation script interface and is stored under a designated file directory;
according to the preset installation sequence according to the dependency relationship among the components, based on the unified configuration file, invoking an installation script in the service component package, and executing the installation of each service component package;
after the business component package is installed, the root password is modified and stored in an encrypted mode.
8. The method for deploying and installing interface interactive service components according to claim 7, wherein when a user selects a service component package, an operator is supported to manually set the installation order of the service component package; when the installation is executed according to the service component dependency relationship, the service component packages are automatically ordered according to the following mode: and storing the installation packages selected by the operator in the temporary file in sequence, traversing a preset installation package installation sequence list, storing the installation packages in a new list if the installation packages are matched with the package names selected by the operator, deleting the matched items from the temporary file, and after traversing, sequentially adding the installation packages to the new list if the temporary file has the rest installation packages.
9. The method for deploying and installing an interface interactive service component according to claim 7, wherein a plurality of server nodes are supported for parallel installation, communication between the server nodes is established when the plurality of server nodes are configured, service installation packages are copied to a remote server, and a decompression command is remotely executed through ssh; and the installation process on the operation node is put in the background for operation, and simultaneously the remote server is connected in parallel for installation, and whether the installation process is ended is judged by circularly checking whether the installation process PID exists.
10. A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program when loaded into the processor implements the steps of the interface interactive service component deployment and installation method according to any of claims 7-9.
CN202310432058.2A 2023-04-21 2023-04-21 System and method for deploying and installing interface interactive service components Pending CN116450162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310432058.2A CN116450162A (en) 2023-04-21 2023-04-21 System and method for deploying and installing interface interactive service components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310432058.2A CN116450162A (en) 2023-04-21 2023-04-21 System and method for deploying and installing interface interactive service components

Publications (1)

Publication Number Publication Date
CN116450162A true CN116450162A (en) 2023-07-18

Family

ID=87131806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310432058.2A Pending CN116450162A (en) 2023-04-21 2023-04-21 System and method for deploying and installing interface interactive service components

Country Status (1)

Country Link
CN (1) CN116450162A (en)

Similar Documents

Publication Publication Date Title
US8825806B2 (en) Selection and configuration of storage-area network storage device and computing device
US7146612B2 (en) Method and system for receiving a software image from a customer for installation into a computer system
CN105786564A (en) Automatic custom installation and deployment method for Oracle
CN107741852B (en) Service deployment method based on cluster software
US11483199B2 (en) Linking multiple enrollments on a client device
CN112491606A (en) Method for automatically deploying high-availability cluster of service system based on infrastructure
US7242499B2 (en) System for creating a virtual file server to provide data files
US7707571B1 (en) Software distribution systems and methods using one or more channels
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN113238835B (en) Virtual machine configuration method, device, server and system
CN113626286A (en) Multi-cluster instance processing method and device, electronic equipment and storage medium
CN111026723A (en) Big data cluster management control method and device, computer equipment and storage medium
CN110928554A (en) Deployment method, device, equipment and storage medium
CN112463203A (en) SELinux management configuration method, system, equipment and medium
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN109992295B (en) Version management method and server
CN112114746A (en) Automatic deployment method of distributed storage cluster
CN116450162A (en) System and method for deploying and installing interface interactive service components
CN108053288B (en) Service arrangement issuing method and device
CN115344273A (en) Method and system for running application software based on shelf system
CN117319196B (en) User server cluster environment deployment management system and method
CN116614323B (en) Cloud storage enterprise network management method and system based on Rclone
CN112019527B (en) Method and system for setting fixed MAC address of embedded equipment
CN111427589B (en) Data space deployment method and device of big data cluster resource management system
WO2022134918A1 (en) Virtual machine attribute changing method and apparatus, storage medium, and electronic 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