技术领域technical field
本发明涉及基于linux的多机智能服务部署工具。The invention relates to a linux-based multi-computer intelligent service deployment tool.
背景技术Background technique
现有专利中公开了“一种软件自动化部署方法、装置及终端”,为了解决多台机器需要安装软并进行配置的大量工作可能引起的效率问题。The existing patent discloses "a software automatic deployment method, device and terminal", in order to solve the efficiency problem that may be caused by the large amount of work required to install software and configure multiple machines.
现有技术中存在Linux软件单机安装脚本,存在的技术问题是:多台服务器安装软件,需要每一台单独下载程序,配置,启动服务,步骤繁琐,也容易出错。There is a Linux software stand-alone installation script in the prior art, and the technical problem is: to install the software on multiple servers, each server needs to download the program, configure, and start the service separately. The steps are cumbersome and error-prone.
发明内容Contents of the invention
为解决现有技术存在的不足,本发明公开了多机智能服务部署系统及方法,在一台机器上执行安装程序,指定需要安装的服务器ip,用户名密码之后,可以自动在所有服务器上部署软件,并自动获取所需配置信息更新配置文件,最后启动程序。In order to solve the shortcomings of the existing technology, the present invention discloses a multi-machine intelligent service deployment system and method. After executing the installation program on one machine, specifying the server ip to be installed, user name and password, it can be automatically deployed on all servers software, and automatically obtain the required configuration information to update the configuration file, and finally start the program.
为实现上述目的,本发明的具体方案如下:To achieve the above object, the specific scheme of the present invention is as follows:
多机智能服务部署方法,包括以下步骤:The multi-machine intelligent service deployment method includes the following steps:
在所有需要部署的机器上安装配置服务;Install configuration services on all machines that need to be deployed;
在主机上配置与备机对应的IP列表;Configure the IP list corresponding to the standby machine on the main machine;
主机安装服务端,执行安装脚本;The host installs the server and executes the installation script;
根据IP列表,服务端自动登录到列表中的机器上执行安装流程;According to the IP list, the server automatically logs in to the machines in the list to perform the installation process;
判断IP列表中是否有未执行安装过程的机器,如果有,循环执行安装步骤,如果无,结束。Determine whether there are machines in the IP list that have not executed the installation process. If so, execute the installation steps in a loop. If not, end.
进一步的,主机安装服务端,执行安装脚本时,服务端根据预先配置,自动生成配置文件,读取生成的配置文件,启动服务。Further, when the host installs the server and executes the installation script, the server automatically generates a configuration file according to the pre-configuration, reads the generated configuration file, and starts the service.
进一步的,根据IP列表,服务端自动登录到列表中的机器上执行安装流程时,根据客户端上的IP及端口信息,自动生成配置文件,读取生成的配置文件,启动服务。Further, according to the IP list, when the server automatically logs in to the machines in the list to perform the installation process, it automatically generates a configuration file according to the IP and port information on the client, reads the generated configuration file, and starts the service.
进一步的,在所有需要部署的机器上安装配置rsh,FTP服务,此步骤为必要步骤,如果不能正确安装,则中断执行。Further, install and configure rsh and FTP services on all machines that need to be deployed. This step is a necessary step. If it cannot be installed correctly, the execution will be interrupted.
多机智能服务部署系统,包括:Multi-machine intelligent service deployment system, including:
配置服务安装模块,用于在所有需要部署的机器上安装配置服务;The configuration service installation module is used to install the configuration service on all machines that need to be deployed;
IP列表生成模块,用于在主机上配置与备机对应的IP列表;The IP list generation module is used to configure the IP list corresponding to the standby machine on the host computer;
服务端安装模块,用于在主机安装服务端,执行安装脚本;The server installation module is used to install the server on the host and execute the installation script;
安装流程执行模块,用于根据IP列表,服务端自动登录到列表中的机器上执行安装流程;The installation process execution module is used to automatically log in the server to the machines in the list to execute the installation process according to the IP list;
判断模块,用于判断IP列表中是否有未执行安装过程的机器,如果有,循环执行安装步骤,如果无,结束。The judging module is used to judge whether there is a machine in the IP list that has not executed the installation process. If yes, execute the installation steps in a loop, and if not, end.
进一步的,服务端安装模块,主机安装服务端,执行安装脚本时,服务端根据预先配置,自动生成配置文件,读取生成的配置文件,启动服务。Further, the server installs the module, the host installs the server, and when the installation script is executed, the server automatically generates a configuration file according to the pre-configuration, reads the generated configuration file, and starts the service.
进一步的,安装流程执行模块,,根据IP列表,服务端自动登录到列表中的机器上执行安装流程时,根据客户端上的IP及端口信息,自动生成配置文件,读取生成的配置文件,启动服务。启动步骤可以包含对已安装并启动的程序进行关闭,但是不做记录,强行关闭之后重新启动。Further, the installation process execution module, according to the IP list, when the server automatically logs in to the machine in the list to execute the installation process, automatically generates a configuration file according to the IP and port information on the client, and reads the generated configuration file. Start the service. The startup step can include closing the installed and started programs, but not recording them, and restarting after forcibly closing them.
进一步的,配置服务安装模块,在所有需要部署的机器上安装配置rsh,FTP服务,此步骤为必要步骤,如果不能正确安装,则中断执行。Further, configure the service installation module to install and configure rsh and FTP services on all machines that need to be deployed. This step is a necessary step. If it cannot be installed correctly, the execution will be interrupted.
进一步的,主机通过交换机与多个备机通讯。Further, the host communicates with multiple standby machines through the switch.
一种包含上述多机智能服务部署系统的终端。A terminal including the above-mentioned multi-computer intelligent service deployment system.
本发明的有益效果:Beneficial effects of the present invention:
本发明主机以及所有备机需要连入同一个网络,保证可以正常通信;运行一次即在所有目标机器上安装完所有程序,极大的简化了安装流程,并且在有效提示信息及输入格式限制的保证下,减少了出错可能。The main machine and all backup machines of the present invention need to be connected to the same network to ensure normal communication; all programs are installed on all target machines after running once, which greatly simplifies the installation process, and the effective prompt information and input format restrictions Guaranteed to reduce the possibility of error.
本方法是在服务端对客户端进行监控,由服务端发起部署流程,不同于在客户端上发起部署请求;本方法对客户端上已经部署过的,会重新部署一次,以保证所部署过的程序及配置是最新的,另外,部署过程中的可控性更好。This method is to monitor the client on the server, and the server initiates the deployment process, which is different from initiating a deployment request on the client; this method will redeploy once deployed on the client to ensure that the deployed The programs and configurations are up-to-date. In addition, the controllability during the deployment process is better.
附图说明Description of drawings
图1本发明的方法流程图;Fig. 1 method flowchart of the present invention;
图2本发明的硬件架构图。Fig. 2 is a hardware architecture diagram of the present invention.
具体实施方式:detailed description:
下面结合附图对本发明进行详细说明:The present invention is described in detail below in conjunction with accompanying drawing:
多机智能服务部署方法,包括以下步骤:The multi-machine intelligent service deployment method includes the following steps:
在所有需要部署的机器上安装配置服务;Install configuration services on all machines that need to be deployed;
在主机上配置与备机对应的IP列表;Configure the IP list corresponding to the standby machine on the main machine;
主机安装服务端,执行安装脚本;The host installs the server and executes the installation script;
根据IP列表,服务端自动登录到列表中的机器上执行安装流程;According to the IP list, the server automatically logs in to the machines in the list to perform the installation process;
判断IP列表中是否有未执行安装过程的机器,如果有,循环执行安装步骤,如果无,结束。Determine whether there are machines in the IP list that have not executed the installation process. If so, execute the installation steps in a loop. If not, end.
主机安装服务端,执行安装脚本时,服务端根据预先配置,自动生成配置文件,读取生成的配置文件,启动服务。When the host installs the server and executes the installation script, the server automatically generates a configuration file according to the pre-configuration, reads the generated configuration file, and starts the service.
根据IP列表,服务端自动登录到列表中的机器上执行安装流程时,根据客户端上的IP及端口信息,自动生成配置文件,读取生成的配置文件,启动服务。According to the IP list, when the server automatically logs in to the machine in the list to perform the installation process, it automatically generates a configuration file according to the IP and port information on the client, reads the generated configuration file, and starts the service.
在所有需要部署的机器上安装配置rsh,FTP服务,此步骤为必要步骤,如果不能正确安装,则中断执行。Install and configure rsh and FTP services on all machines that need to be deployed. This step is a necessary step. If it cannot be installed correctly, the execution will be interrupted.
多机智能服务部署系统,包括:Multi-machine intelligent service deployment system, including:
配置服务安装模块,用于在所有需要部署的机器上安装配置服务;The configuration service installation module is used to install the configuration service on all machines that need to be deployed;
IP列表生成模块,用于在主机上配置与备机对应的IP列表;The IP list generation module is used to configure the IP list corresponding to the standby machine on the host computer;
服务端安装模块,用于在主机安装服务端,执行安装脚本;The server installation module is used to install the server on the host and execute the installation script;
安装流程执行模块,用于根据IP列表,服务端自动登录到列表中的机器上执行安装流程;The installation process execution module is used to automatically log in the server to the machines in the list to execute the installation process according to the IP list;
判断模块,用于判断IP列表中是否有未执行安装过程的机器,如果有,循环执行安装步骤,如果无,结束。The judging module is used to judge whether there is a machine in the IP list that has not executed the installation process. If yes, execute the installation steps in a loop, and if not, end.
服务端安装模块,主机安装服务端,执行安装脚本时,服务端根据预先配置,自动生成配置文件,读取生成的配置文件,启动服务。The server installs the module, the host installs the server, and when the installation script is executed, the server automatically generates a configuration file according to the pre-configuration, reads the generated configuration file, and starts the service.
安装流程执行模块,,根据IP列表,服务端自动登录到列表中的机器上执行安装流程时,根据客户端上的IP及端口信息,自动生成配置文件,读取生成的配置文件,启动服务。启动步骤可以包含对已安装并启动的程序进行关闭,但是不做记录,强行关闭之后重新启动。The installation process execution module, according to the IP list, when the server automatically logs in to the machine in the list to execute the installation process, automatically generates a configuration file according to the IP and port information on the client, reads the generated configuration file, and starts the service. The startup step can include closing the installed and started programs, but not recording them, and restarting after forcibly closing them.
配置服务安装模块,在所有需要部署的机器上安装配置rsh,FTP服务,此步骤为必要步骤,如果不能正确安装,则中断执行。Configure the service installation module to install and configure rsh and FTP services on all machines that need to be deployed. This step is a necessary step. If it cannot be installed correctly, the execution will be interrupted.
主机通过交换机与多个备机通讯。The master communicates with multiple standbys through a switch.
一种包含上述多机智能服务部署系统的终端。A terminal including the above-mentioned multi-computer intelligent service deployment system.
更为详细的实施例子,如图1所示,多机智能服务部署方法:For a more detailed implementation example, as shown in Figure 1, the multi-machine intelligent service deployment method:
1在所有需要部署的机器上安装配置rsh,FTP(sftp)服务,此步骤为必要步骤,如果不能正确安装,则中断执行。1 Install and configure rsh and FTP (sftp) services on all machines that need to be deployed. This step is a necessary step. If it cannot be installed correctly, the execution will be interrupted.
2在主机上配置好其他机器的IP列表;2 Configure the IP list of other machines on the host;
3主机安装服务端,执行安装脚本;3 The host installs the server and executes the installation script;
3.1服务端根据预先配置,自动生成配置文件;3.1 The server automatically generates configuration files according to the pre-configuration;
3.2读取3.1生成的配置文件,启动服务;3.2 Read the configuration file generated in 3.1 and start the service;
4根据第2步的IP列表,服务端自动登录到列表中的机器上执行安装流程;4 According to the IP list in step 2, the server automatically logs in to the machines in the list to perform the installation process;
4.1根据坐在客户端上的ip,端口等信息,自动生成配置文件;4.1 According to the ip, port and other information sitting on the client, the configuration file is automatically generated;
4.2读取4.1生成的配置文件,启动服务;4.2 Read the configuration file generated in 4.1 and start the service;
5判断第2步列表中是否有未执行安装过程的机器,如果有,循环执行第4步,如果无,结束;5. Determine whether there are machines in the list of step 2 that have not executed the installation process. If so, execute step 4 in a loop. If not, end;
6安装结束。6The installation is complete.
如图2所示,系统构成就是由配置文件,安装程序脚本,需要在客户端上运行的程序组成;安装程序读取配置文件,将需要在客户端上运行的程序复制到客户端上面,并且启动这些程序。As shown in Figure 2, the system consists of configuration files, installer scripts, and programs that need to run on the client; the installer reads the configuration file, copies the programs that need to run on the client to the client, and Start these programs.
服务端:本文中的服务端指运行在服务器上的一段程序,也可简称为服务,例如webservice服务。Server: The server in this article refers to a program running on the server, which can also be called a service for short, such as webservice.
交换机:将多台服务器连接在一起的网络设备。Switch: A network device that connects multiple servers together.
主机、备机:主机和备机是逻辑上的划分,物理上(硬件,操作系统和安装的软件)主机和备机没有区别。从所有服务器中挑出一台作为主机,其他作为备机,在主机上执行安装程序。Host and backup: The host and backup are logically divided. Physically (hardware, operating system, and installed software) there is no difference between the host and backup. Pick one of all servers as the master, and the others as backups, and execute the installation program on the master.
上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific implementation of the present invention has been described above in conjunction with the accompanying drawings, it does not limit the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, those skilled in the art do not need to pay creative work Various modifications or variations that can be made are still within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610736889.9ACN106161107B (en) | 2016-08-26 | 2016-08-26 | Multi-machine intelligent service deployment system and method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610736889.9ACN106161107B (en) | 2016-08-26 | 2016-08-26 | Multi-machine intelligent service deployment system and method |
| Publication Number | Publication Date |
|---|---|
| CN106161107Atrue CN106161107A (en) | 2016-11-23 |
| CN106161107B CN106161107B (en) | 2019-05-10 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610736889.9AActiveCN106161107B (en) | 2016-08-26 | 2016-08-26 | Multi-machine intelligent service deployment system and method |
| Country | Link |
|---|---|
| CN (1) | CN106161107B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109286692A (en)* | 2018-09-30 | 2019-01-29 | 山东浪潮云投信息科技有限公司 | A kind of method of configuration server IPMI static ip address |
| CN114816444A (en)* | 2021-01-28 | 2022-07-29 | 网联清算有限公司 | A monitoring program deployment method, device, electronic device, and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103019732A (en)* | 2012-12-25 | 2013-04-03 | 深圳市天维尔通讯技术有限公司 | Method and system for installation and deployment of integrated software based on province, city and county |
| CN104375859A (en)* | 2014-10-29 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing nodes BMC in batch for Rack complete machine cabinet |
| CN104572269A (en)* | 2015-01-19 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Quick cluster deployment method based on Linux operation system |
| CN105159704A (en)* | 2015-08-05 | 2015-12-16 | 浪潮(北京)电子信息产业有限公司 | Method and apparatus for batch deployment of operation systems |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103019732A (en)* | 2012-12-25 | 2013-04-03 | 深圳市天维尔通讯技术有限公司 | Method and system for installation and deployment of integrated software based on province, city and county |
| CN104375859A (en)* | 2014-10-29 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing nodes BMC in batch for Rack complete machine cabinet |
| CN104572269A (en)* | 2015-01-19 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Quick cluster deployment method based on Linux operation system |
| CN105159704A (en)* | 2015-08-05 | 2015-12-16 | 浪潮(北京)电子信息产业有限公司 | Method and apparatus for batch deployment of operation systems |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109286692A (en)* | 2018-09-30 | 2019-01-29 | 山东浪潮云投信息科技有限公司 | A kind of method of configuration server IPMI static ip address |
| CN114816444A (en)* | 2021-01-28 | 2022-07-29 | 网联清算有限公司 | A monitoring program deployment method, device, electronic device, and storage medium |
| Publication number | Publication date |
|---|---|
| CN106161107B (en) | 2019-05-10 |
| Publication | Publication Date | Title |
|---|---|---|
| JP7670629B2 (en) | SECURITY ENHANCED AUTOMATICALLY DEPLOYED INFORMATION TECHNOLOGY (IT) SYSTEM AND METHOD - Patent application | |
| JP5941542B2 (en) | Deploy test environments by making pre-built environments available instantly | |
| CN103189839B (en) | The system and method disposed for the automatization of multiunit computer environment | |
| WO2019184164A1 (en) | Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium | |
| US20130007726A1 (en) | Virtual machine disk image installation | |
| CN106469068B (en) | Application program deployment method and system | |
| CN110286921B (en) | CDH method for automatically installing distributed big data platform | |
| CN108616384B (en) | Centralized service management deployment tool and method | |
| CN106325953A (en) | Weblogic cluster one-key automatic deployment method | |
| CN109254783A (en) | A kind of server system installation method, device, equipment and readable storage medium storing program for executing | |
| CN112214227A (en) | Edge server mirror image customization and deployment system and method | |
| CN106855819A (en) | A method for automatically deploying an operating system | |
| CN112948008B (en) | Method for managing physical bare machine based on Ironic | |
| JP2015046075A (en) | Information processing apparatus, control method therefor, and computer program | |
| CN102447732A (en) | Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development | |
| CN113517996B (en) | A network card equipment polling method, system and related devices | |
| CN107911467A (en) | A kind of the service operations management system and method for scripting operation | |
| CN110737444A (en) | Remote self-adaptive dynamic deployment method and system for operating system based on firmware | |
| CN107766055A (en) | A kind of client linux system installation method based on GUI module | |
| CN106161107A (en) | Multimachine intelligent service deployment system and method | |
| US9207928B2 (en) | Computer-readable medium, apparatus, and methods of automatic capability installation | |
| US9348849B1 (en) | Backup client zero-management | |
| CN118170401A (en) | Cross-release replacement system of Linux operating system | |
| CN111045616A (en) | Time-consuming printing method, device, device and storage medium | |
| CN105282180B (en) | Method and device for processing service authentication |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | Address after:250101 block B, Yinhe building, 2008 Xinjie street, hi tech Zone, Ji'nan, Shandong. Applicant after:Shandong Luneng Intelligent Technology Co., Ltd. Address before:250101 B block 626, Yinhe building, 2008 Xinjie street, Ji'nan high tech Zone, Shandong. Applicant before:Shandong Luneng Intelligent Technology Co., Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | Address after:250101 Electric Power Intelligent Robot Production Project 101 in Jinan City, Shandong Province, South of Feiyue Avenue and East of No. 26 Road (ICT Industrial Park) Patentee after:National Network Intelligent Technology Co., Ltd. Address before:250101 block B, Yinhe building, 2008 Xinjie street, hi tech Zone, Ji'nan, Shandong. Patentee before:Shandong Luneng Intelligent Technology Co., Ltd. | |
| CP03 | Change of name, title or address | ||
| TR01 | Transfer of patent right | Effective date of registration:20201221 Address after:Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province Patentee after:Shandong Luneng Software Technology Co.,Ltd. intelligent electrical branch Address before:250101 power intelligent robot production project 101 south of Feiyue Avenue and east of No.26 Road (in ICT Industrial Park) in Suncun District of Gaoxin, Jinan City, Shandong Province Patentee before:National Network Intelligent Technology Co.,Ltd. | |
| TR01 | Transfer of patent right | ||
| CP01 | Change in the name or title of a patent holder | Address after:Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province Patentee after:Shandong luruan Digital Technology Co.,Ltd. smart energy branch Address before:Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province Patentee before:Shandong Luneng Software Technology Co.,Ltd. intelligent electrical branch | |
| CP01 | Change in the name or title of a patent holder |