[go: up one dir, main page]

CN104391715B - A method and device for installing application programs based on linux system - Google Patents

A method and device for installing application programs based on linux system Download PDF

Info

Publication number
CN104391715B
CN104391715B CN201410643924.3A CN201410643924A CN104391715B CN 104391715 B CN104391715 B CN 104391715B CN 201410643924 A CN201410643924 A CN 201410643924A CN 104391715 B CN104391715 B CN 104391715B
Authority
CN
China
Prior art keywords
configuration
application program
information
server
configuration file
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.)
Expired - Fee Related
Application number
CN201410643924.3A
Other languages
Chinese (zh)
Other versions
CN104391715A (en
Inventor
胡嘉彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201410643924.3A priority Critical patent/CN104391715B/en
Publication of CN104391715A publication Critical patent/CN104391715A/en
Application granted granted Critical
Publication of CN104391715B publication Critical patent/CN104391715B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of application program installation method and device based on Linux system, this method comprises the following steps:Application program erecting device obtains the application program of pre-installation;The application program of acquisition is automatically installed in linux equipment by application program erecting device;Application program erecting device automatically configures configuration file corresponding to the application program.Application program installation method and device of the present invention based on Linux system can install application program automatically in linux equipment, and application program is automatically configured, improve the efficiency of installation application program, human cost and time cost are saved, and reduces the error rate of installation application program.

Description

一种基于linux系统的应用程序安装方法和装置A method and device for installing application programs based on linux system

技术领域technical field

本发明涉及linux操作系统领域,尤其涉及一种基于linux系统的应用程序安装方法和装置。The invention relates to the field of linux operating systems, in particular to a method and device for installing application programs based on the linux system.

背景技术Background technique

现有在linux系统上安装多个应用程序时,一般采用手动安装的方式。这种方法不仅安装的速度很慢、效率很低,而且可能由于安装人员对安装手册不熟悉等原因导致出现一些配置上的错误与问题。例如要安装一个web项目,安装完成后,需要配置web.xml、application.properties、server.xml、webservice.properties、jdbc.properties等文件。在这些文件中,主要修改的地方都是互联网协议地址与端口,结构都十分的相似,很容易出现错误。因此,现有技术中在linux系统上进行应用程序安装时存在安装效率低、出错率高的问题。Currently, when multiple application programs are installed on the linux system, manual installation is generally adopted. This method not only has a slow installation speed and low efficiency, but also may cause some configuration errors and problems due to reasons such as the installation personnel are not familiar with the installation manual. For example, to install a web project, after the installation is complete, you need to configure web.xml, application.properties, server.xml, webservice.properties, jdbc.properties and other files. In these files, the main modification is the Internet protocol address and port, the structure is very similar, and it is easy to make mistakes. Therefore, there are problems of low installation efficiency and high error rate when installing application programs on the Linux system in the prior art.

发明内容Contents of the invention

本发明是为了解决现有技术中的上述不足而完成的,本发明的目的在于提出一种基于linux系统的应用程序安装方法和装置,能够解决现有技术中在linux系统上手动安装应用程序效率低、出错率高的问题。The present invention is completed in order to solve the above-mentioned deficiencies in the prior art. The purpose of the present invention is to propose a method and device for installing application programs based on the Linux system, which can solve the problem of manually installing application programs on the Linux system in the prior art. low and high error rates.

为达此目的,本发明采用以下技术方案:For reaching this purpose, the present invention adopts following technical scheme:

第一方面,本发明提供了一种基于linux系统的应用程序安装方法,包括以下步骤:In a first aspect, the present invention provides a method for installing application programs based on a linux system, comprising the following steps:

应用程序安装装置获取预安装的应用程序;The application installer acquires pre-installed applications;

应用程序安装装置将获取的所述应用程序自动安装在linux设备上;The application program installation device automatically installs the obtained application program on the linux device;

应用程序安装装置自动配置所述应用程序对应的配置文件。The application program installation device automatically configures the configuration file corresponding to the application program.

进一步地,所述应用程序安装装置获取预安装的应用程序包括以下步骤:Further, the obtaining of the pre-installed application by the application installation device includes the following steps:

读取安装信息文件,获取安装信息,所述安装信息包括应用程序名称和对应的服务器信息,所述服务器信息包括服务器登陆用户名和服务器登陆密码;Read the installation information file to obtain the installation information, the installation information includes the name of the application program and the corresponding server information, and the server information includes the server login user name and the server login password;

根据所述服务器信息连接所述服务器;connect to the server according to the server information;

根据所述应用程序名称从Yum仓库中下载所述应用程序。Download the application program from the Yum repository according to the application program name.

进一步地,所述应用程序安装装置自动配置所述应用程序对应的配置文件包括以下步骤:Further, the automatic configuration of the configuration file corresponding to the application by the application installation device includes the following steps:

读取配置信息文件,获取配置文件信息,所述配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;Reading the configuration information file to obtain configuration file information, the configuration file information includes any one or more of the application program name, the location of the corresponding configuration file, and the location to be configured in the configuration file;

读取安装信息文件,获取配置信息,所述配置信息包括所述应用程序对应的服务器信息和配置内容,所述服务器信息包括服务器登陆用户名和服务器登陆密码,所述配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;Read the installation information file to obtain configuration information, the configuration information includes server information and configuration content corresponding to the application program, the server information includes server login user name and server login password, and the configuration content includes server Internet protocol address, Any one or more of port, database username, database password, and database Internet Protocol address;

根据所述服务器信息连接所述服务器;connect to the server according to the server information;

根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件。Configure the configuration file according to the location of the configuration file, the location to be configured in the configuration file, and the configuration content.

进一步地,所述根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件包括以下步骤:Further, according to the location of the configuration file, the location and configuration content in the configuration file, configuring the configuration file includes the following steps:

根据配置文件的位置下载所述配置文件;Download the configuration file according to the location of the configuration file;

根据配置文件中需要配置的位置和配置内容配置所述配置文件;Configure the configuration file according to the location and configuration content that need to be configured in the configuration file;

将配置后的配置文件上传至服务器。Upload the configured configuration file to the server.

进一步地,所述根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件后还包括以下步骤:Further, according to the location of the configuration file, the location and configuration content in the configuration file, configuring the configuration file also includes the following steps:

将配置之前的配置文件进行备份。Back up the configuration file before configuration.

第二方面,本发明提供了一种基于linux系统的应用程序安装装置,包括:In a second aspect, the present invention provides a device for installing application programs based on a linux system, comprising:

应用程序获取模块,用于应用程序安装装置获取预安装的应用程序;An application program obtaining module, used for the application program installation device to obtain pre-installed application programs;

应用程序自动安装模块,用于应用程序安装装置将获取的所述应用程序自动安装在linux设备上;The application program automatic installation module is used for the application program installation device to automatically install the obtained application program on the linux device;

应用程序自动配置模块,用于应用程序安装装置自动配置所述应用程序对应的配置文件。The application program automatic configuration module is used for the application program installation device to automatically configure the configuration file corresponding to the application program.

进一步地,所述应用程序获取模块包括:Further, the application acquisition module includes:

安装信息获取单元,用于读取安装信息文件,获取安装信息,所述安装信息包括应用程序名称和对应的服务器信息,所述服务器信息包括服务器登陆用户名和服务器登陆密码;The installation information acquisition unit is used to read the installation information file and obtain the installation information, the installation information includes the name of the application program and the corresponding server information, and the server information includes the server login user name and server login password;

服务器连接第一单元,用于根据所述服务器信息连接所述服务器;a server connection first unit, configured to connect to the server according to the server information;

应用程序下载单元,用于根据所述应用程序名称从Yum仓库中下载所述应用程序。The application program downloading unit is configured to download the application program from the Yum repository according to the application program name.

进一步地,所述应用程序自动配置模块包括:Further, the application automatic configuration module includes:

配置文件信息获取单元,用于读取配置信息文件,获取配置文件信息,所述配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;The configuration file information acquisition unit is used to read the configuration information file and obtain the configuration file information. The configuration file information includes any one or more of the application program name, the location of the corresponding configuration file, and the location to be configured in the configuration file. item;

配置信息获取单元,用于读取安装信息文件,获取配置信息,所述配置信息包括所述应用程序对应的服务器信息和配置内容,所述服务器信息包括服务器登陆用户名和服务器登陆密码,所述配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;The configuration information obtaining unit is used to read the installation information file and obtain the configuration information, the configuration information includes the server information and configuration content corresponding to the application program, the server information includes the server login user name and the server login password, the configuration The content includes any one or more of the server Internet Protocol address, port, database user name, database password, and database Internet Protocol address;

服务器连接第二单元,用于根据所述服务器信息连接所述服务器;a server connection second unit, configured to connect to the server according to the server information;

配置信息配置单元,用于根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件。The configuration information configuration unit is configured to configure the configuration file according to the location of the configuration file, the location to be configured in the configuration file, and the configuration content.

进一步地,所述配置信息配置单元包括:Further, the configuration information configuration unit includes:

配置文件下载子单元,用于根据配置文件的位置下载所述配置文件;a configuration file downloading subunit, configured to download the configuration file according to the location of the configuration file;

配置子单元,用于根据配置文件中需要配置的位置和配置内容配置所述配置文件;The configuration subunit is used to configure the configuration file according to the location and configuration content that need to be configured in the configuration file;

配置文件上传子单元,用于将配置后的配置文件上传至服务器。The configuration file upload subunit is used to upload the configured configuration file to the server.

进一步地,所述配置信息配置单元还包括:Further, the configuration information configuration unit further includes:

备份子单元,用于将配置之前的配置文件进行备份。The backup subunit is used to back up the configuration files before configuration.

本发明所述的基于linux系统的应用程序安装方法和装置,通过对获取的预安装的应用程序进行自动安装和配置,实现了在linux设备上自动安装应用程序,并对其进行自动配置,提高了应用程序的安装效率,节省了人力成本和时间成本,并减少了出错的概率。The application program installation method and device based on the linux system of the present invention realizes the automatic installation and automatic configuration of the application program on the linux device by automatically installing and configuring the acquired pre-installed application program, thereby improving the It improves the installation efficiency of the application program, saves labor costs and time costs, and reduces the probability of errors.

附图说明Description of drawings

为了更加清楚地说明本发明示例性实施例的技术方案,下面对描述实施例中所需要用到的附图做一简单介绍。显然,所介绍的附图只是本发明所要描述的一部分实施例的附图,而不是全部的附图,对于本领域普通技术人员,在不付出创造性劳动的前提下,还可以根据这些附图得到其他的附图。In order to illustrate the technical solutions of the exemplary embodiments of the present invention more clearly, the following briefly introduces the drawings used in describing the embodiments. Apparently, the drawings introduced are only the drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. Those of ordinary skill in the art can also obtain the Other attached drawings.

图1是本发明实施例一提供的基于linux系统的应用程序安装方法的流程示意图。FIG. 1 is a schematic flowchart of a method for installing an application program based on a linux system provided by Embodiment 1 of the present invention.

图2是本发明实施例一提供的基于linux系统的应用程序安装方法中的步骤S11的流程示意图。FIG. 2 is a schematic flowchart of step S11 in the method for installing an application program based on a linux system provided by Embodiment 1 of the present invention.

图3是本发明实施例一提供的基于linux系统的应用程序安装方法中的安装信息文件模板的示意图。FIG. 3 is a schematic diagram of an installation information file template in an application installation method based on a Linux system provided by Embodiment 1 of the present invention.

图4是本发明实施例一提供的基于linux系统的应用程序安装方法中的步骤S13的流程示意图。FIG. 4 is a schematic flowchart of step S13 in the method for installing an application program based on a linux system provided by Embodiment 1 of the present invention.

图5是本发明实施例一提供的基于linux系统的应用程序安装方法中的配置信息文件模板的示意图。FIG. 5 is a schematic diagram of a configuration information file template in an application program installation method based on a linux system provided by Embodiment 1 of the present invention.

图6是本发明实施例一提供的基于linux系统的应用程序安装方法中的步骤S44的流程示意图。FIG. 6 is a schematic flowchart of step S44 in the method for installing an application program based on a linux system according to Embodiment 1 of the present invention.

图7是本发明实施例二提供的基于linux系统的应用程序安装方法的流程示意图。FIG. 7 is a schematic flowchart of a method for installing an application program based on a linux system provided by Embodiment 2 of the present invention.

图8是本发明实施例三提供的基于linux系统的应用程序安装装置的结构示意图。FIG. 8 is a schematic structural diagram of an application installation device based on a linux system provided by Embodiment 3 of the present invention.

图9是本发明实施例三提供的基于linux系统的应用程序安装装置中的应用程序获取模块的结构示意图。FIG. 9 is a schematic structural diagram of an application acquisition module in an application installation device based on a linux system provided by Embodiment 3 of the present invention.

图10是本发明实施例三提供的基于linux系统的应用程序安装装置中的应用程序自动配置模块的结构示意图。FIG. 10 is a schematic structural diagram of an application automatic configuration module in an application installation device based on a linux system provided by Embodiment 3 of the present invention.

图11是本发明实施例三提供的基于linux系统的应用程序安装装置中的配置信息配置单元的结构示意图。FIG. 11 is a schematic structural diagram of a configuration information configuration unit in an application program installation device based on a Linux system provided by Embodiment 3 of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,以下将结合本发明实施例中的附图,通过具体实施方式,完整地描述本发明的技术方案。显然,所描述的实施例是本发明的一部分实施例,而不是全部的实施例,基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动的前提下获得的所有其他实施例,均落入本发明的保护范围之内。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be fully described below through specific implementation in combination with the drawings in the embodiments of the present invention. Apparently, the described embodiments are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts, All fall within the protection scope of the present invention.

实施例一:Embodiment one:

图1给出了本发明实施例一提供的基于linux系统的应用程序安装方法的流程示意图。FIG. 1 shows a schematic flowchart of a method for installing an application program based on a linux system provided by Embodiment 1 of the present invention.

如图1,本实施例一提供的基于linux系统的应用程序安装方法包括以下步骤:As shown in Figure 1, the application program installation method based on the linux system provided by the first embodiment includes the following steps:

步骤S11、应用程序安装装置获取预安装的应用程序;Step S11, the application program installation device obtains the pre-installed application program;

如图2所示,本步骤S11包括以下步骤:As shown in Figure 2, this step S11 includes the following steps:

步骤S21、读取安装信息文件,获取安装信息,安装信息包括应用程序名称和对应的服务器信息,服务器信息包括服务器登陆用户名和服务器登陆密码;Step S21, read the installation information file to obtain the installation information, the installation information includes the name of the application program and the corresponding server information, and the server information includes the server login user name and server login password;

本步骤中,安装信息文件可以由安装方提供,其内容为规划的服务器互联网协议地址和端口,安装信息文件可以是一个excel(表格)文档,其内容可以包括应用程序名称、服务器互联网协议地址、端口、服务器登陆用户名、服务器登陆密码、需要配置的数据库互联网协议地址、数据库用户名和数据库密码,安装方可以将相应的信息填入图3所示的模板中。In this step, the installation information file can be provided by the installer, and its content is the planned server Internet protocol address and port, and the installation information file can be an excel (table) document, and its content can include application program name, server Internet protocol address, Port, server login user name, server login password, database IP address to be configured, database user name and database password, the installer can fill in the corresponding information into the template shown in Figure 3.

步骤S22、根据服务器信息连接服务器;Step S22, connect to the server according to the server information;

本步骤中,根据获取的服务器登录用户名和服务器登录密码,连接到服务器上,该服务器需要安装获取的应用程序名称对应的应用程序。In this step, connect to the server according to the obtained server login user name and server login password, and the server needs to install the application program corresponding to the obtained application program name.

步骤S23、根据应用程序名称从Yum仓库中下载应用程序。Step S23, downloading the application program from the Yum repository according to the application program name.

本步骤中,从Yum仓库中下载获取的应用程序名称对应的应用程序,该Yum仓库为liuux系统下用于存储各种应用程序的仓库。。In this step, the application program corresponding to the obtained application program name is downloaded from the Yum warehouse, which is a warehouse for storing various application programs under the liuux system. .

步骤S12、应用程序安装装置将获取的应用程序自动安装在linux设备上;Step S12, the application installation device automatically installs the acquired application on the linux device;

本步骤中,将下载的应用程序安装在对应的服务器上。In this step, the downloaded application program is installed on a corresponding server.

步骤S13、应用程序安装装置自动配置应用程序对应的配置文件。Step S13, the application installation device automatically configures the configuration file corresponding to the application.

如图4所示,本步骤S13包括以下步骤:As shown in Figure 4, this step S13 includes the following steps:

步骤S41、读取配置信息文件,获取配置文件信息,配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;Step S41. Read the configuration information file to obtain the configuration file information. The configuration file information includes any one or more items of the application program name, the location of the corresponding configuration file, and the location to be configured in the configuration file;

本步骤中,配置信息文件可以由开发方提供,一般由应用程序安装手册的撰写人员填写,内容为安装方需要更改的配置文件中需要修改的位置,配置文件信息可以是一个excel文档,其内容可以包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置,开发方可以将相应的信息填入图5所示的模板中。In this step, the configuration information file can be provided by the developer, and generally filled in by the writer of the application installation manual. The content is the position that needs to be modified in the configuration file that the installer needs to change. It may include the name of the application program, the location of the corresponding configuration file, and the location to be configured in the configuration file, and the developer may fill in the corresponding information into the template shown in FIG. 5 .

本步骤中的配置信息文件由开发方填写可以出现缺少配置或错误配置的情况。配置信息文件采用excel文档的形式,对于不了解配置信息文件的安装方也能够安装应用程序,且操作方便。The configuration information file in this step is filled in by the developer, and there may be missing or wrong configurations. The configuration information file is in the form of an excel document, and the installer who does not know the configuration information file can also install the application program, and the operation is convenient.

步骤S42、读取安装信息文件,获取配置信息,配置信息包括应用程序对应的服务器信息和配置内容,服务器信息包括服务器登陆用户名和服务器登陆密码,配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;Step S42, read the installation information file, obtain the configuration information, the configuration information includes the server information and configuration content corresponding to the application program, the server information includes the server login user name and the server login password, and the configuration content includes the server IP address, port, and database user name , any one or more of database passwords and database Internet Protocol addresses;

本步骤中,根据读取配置信息文件获得的应用程序名称,读取安装信息文件,获取该应用程序名称对应的服务器信息和配置内容。In this step, according to the application program name obtained by reading the configuration information file, the installation information file is read to obtain the server information and configuration content corresponding to the application program name.

步骤S43、根据服务器信息连接服务器;Step S43, connect to the server according to the server information;

本步骤中,根据获取的服务器登录用户名和服务器登录密码,连接到服务器上,该服务器需要配置安装完成的上述应用程序名称对应的应用程序。In this step, connect to the server according to the obtained server login user name and server login password, and the server needs to be configured with the application program corresponding to the above application program name that has been installed.

步骤S44、根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置配置文件。Step S44, configure the configuration file according to the location of the configuration file, the location and configuration content in the configuration file that need to be configured.

本步骤中,根据获取的配置文件的位置、配置文件中需要配置的位置和配置内容,配置配置文件。In this step, configure the configuration file according to the location of the obtained configuration file, the location and configuration content to be configured in the configuration file.

如图6所示,本步骤S44包括以下步骤:As shown in Figure 6, this step S44 includes the following steps:

步骤S61、根据配置文件的位置下载配置文件;Step S61, downloading the configuration file according to the location of the configuration file;

本步骤中,根据获取的配置文件的位置信息将配置文件下载到相应的服务器上。In this step, the configuration file is downloaded to a corresponding server according to the obtained location information of the configuration file.

步骤S62、根据配置文件中需要配置的位置和配置内容配置配置文件;Step S62, configure the configuration file according to the location and configuration content to be configured in the configuration file;

步骤S63、将配置之前的配置文件进行备份;Step S63, backing up the configuration file before configuration;

本步骤中,在服务器上将配置之前的配置文件进行备份。In this step, the configuration file before configuration is backed up on the server.

步骤S64、将配置后的配置文件上传至服务器。Step S64, uploading the configured configuration file to the server.

本实施例一提供的基于linux系统的应用程序安装方法,通过对获取的预安装的应用程序进行自动安装和配置,实现了在linux设备上自动安装应用程序,并对其进行自动配置,提高了应用程序的安装效率,节省了人力成本和时间成本,并减少了出错的概率。The application program installation method based on the linux system provided by the first embodiment realizes the automatic installation and automatic configuration of the application program on the linux device by automatically installing and configuring the obtained pre-installed application program, which improves the The installation efficiency of the application program saves labor costs and time costs, and reduces the probability of errors.

实施例二:Embodiment two:

图7是本发明实施例二提供的基于linux系统的应用程序安装方法的流程示意图。FIG. 7 is a schematic flowchart of a method for installing an application program based on a linux system provided by Embodiment 2 of the present invention.

如图7所述,本发明实施例二提供的基于linux系统的应用程序安装方法包括以下步骤:As shown in FIG. 7, the application installation method based on the linux system provided by Embodiment 2 of the present invention includes the following steps:

步骤S701、读取安装信息文件,获取安装信息,安装信息包括应用程序名称和对应的服务器信息,服务器信息包括服务器登陆用户名和服务器登陆密码;Step S701, read the installation information file to obtain the installation information, the installation information includes the application name and the corresponding server information, the server information includes the server login user name and server login password;

步骤S702、根据服务器信息连接服务器;Step S702, connect to the server according to the server information;

步骤S703、根据应用程序名称从Yum仓库中下载应用程序;Step S703, downloading the application program from the Yum warehouse according to the application program name;

步骤S704、将获取的应用程序自动安装在服务器上;Step S704, automatically installing the obtained application program on the server;

步骤S705、判断安装信息文件中是否有下一个安装信息,如果是,则执行步骤S701;如果否,则执行以下步骤:Step S705, judging whether there is next installation information in the installation information file, if yes, execute step S701; if not, execute the following steps:

步骤S706、读取配置信息文件,获取配置文件信息,配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;Step S706, read the configuration information file, and obtain the configuration file information, the configuration file information includes any one or more items of the application program name, the location of the corresponding configuration file, and the location to be configured in the configuration file;

步骤S707、读取安装信息文件,获取配置信息,配置信息包括应用程序对应的服务器信息和配置内容,服务器信息包括服务器登陆用户名和服务器登陆密码,配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;Step S707, read the installation information file, obtain the configuration information, the configuration information includes the server information and configuration content corresponding to the application program, the server information includes the server login user name and the server login password, and the configuration content includes the server IP address, port, and database user name , any one or more of database passwords and database Internet Protocol addresses;

步骤S708、根据服务器信息连接服务器;Step S708, connect to the server according to the server information;

步骤S709、根据配置文件的位置、配置文件中需要配置的位置和配置内容,在服务器上配置配置文件;Step S709, configure the configuration file on the server according to the location of the configuration file, the location to be configured in the configuration file, and the configuration content;

步骤S710、判断配置信息文件是否有下一个配置文件信息,如果是,则执行步骤S706;如果否,则执行步骤S711、结束安装。Step S710, judging whether the configuration information file has the next configuration file information, if yes, execute step S706; if not, execute step S711, end the installation.

本实施例二提供的基于linux系统的应用程序安装方法能够自动安装和配置多个应用程序,提高了应用程序的安装效率,节省了人力成本和时间成本,并减少了出错的概率。The application program installation method based on the linux system provided in the second embodiment can automatically install and configure multiple application programs, which improves the installation efficiency of the application programs, saves labor costs and time costs, and reduces the probability of errors.

实施例三:Embodiment three:

图8给出了本发明实施例三提供的基于linux系统的应用程序安装装置的结构示意图。FIG. 8 shows a schematic structural diagram of an application installation device based on a linux system provided by Embodiment 3 of the present invention.

如图8所示,本发明实施例三提供的基于linux系统的应用程序安装装置包括:As shown in FIG. 8, the application program installation device based on the Linux system provided by Embodiment 3 of the present invention includes:

应用程序获取模块A81,用于应用程序安装装置获取预安装的应用程序;The application program obtaining module A81 is used for the application program installation device to obtain pre-installed application programs;

如图9所示,该应用程序获取模块A81包括:As shown in Figure 9, the application acquisition module A81 includes:

安装信息获取单元A91,用于读取安装信息文件,获取安装信息,所述安装信息包括应用程序名称和对应的服务器信息,所述服务器信息包括服务器登陆用户名和服务器登陆密码;The installation information obtaining unit A91 is used to read the installation information file and obtain the installation information, the installation information includes the name of the application program and the corresponding server information, and the server information includes the server login user name and the server login password;

服务器连接第一单元A92,用于根据所述服务器信息连接所述服务器;a server connection first unit A92, configured to connect to the server according to the server information;

应用程序下载单元A93,用于根据所述应用程序名称从Yum仓库中下载所述应用程序。The application program downloading unit A93 is configured to download the application program from the Yum repository according to the application program name.

应用程序自动安装模块A82,用于应用程序安装装置将获取的所述应用程序自动安装在linux设备上;The application program automatic installation module A82 is used for the application program installation device to automatically install the obtained application program on the linux device;

应用程序自动配置模块A83,用于应用程序安装装置自动配置所述应用程序对应的配置文件。The application program automatic configuration module A83 is used for the application program installation device to automatically configure the configuration file corresponding to the application program.

如图10所示,该应用程序自动配置模块A83包括:As shown in Figure 10, the application automatic configuration module A83 includes:

配置文件信息获取单元A101,用于读取配置信息文件,获取配置文件信息,所述配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;The configuration file information acquisition unit A101 is used to read the configuration information file and obtain the configuration file information, the configuration file information includes any one or Multiple;

配置信息获取单元A102,用于读取安装信息文件,获取配置信息,所述配置信息包括所述应用程序对应的服务器信息和配置内容,所述服务器信息包括服务器登陆用户名和服务器登陆密码,所述配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;The configuration information obtaining unit A102 is used to read the installation information file and obtain configuration information, the configuration information includes server information and configuration content corresponding to the application program, the server information includes server login user name and server login password, the The configuration content includes any one or more of the server Internet protocol address, port, database user name, database password, and database Internet protocol address;

服务器连接第二单元A103,用于根据所述服务器信息连接所述服务器;A server connection second unit A103, configured to connect to the server according to the server information;

配置信息配置单元A104,用于根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件。The configuration information configuration unit A104 is configured to configure the configuration file according to the location of the configuration file, the location to be configured in the configuration file, and the configuration content.

如图11所示,该配置信息配置单元A104包括:As shown in Figure 11, the configuration information configuration unit A104 includes:

配置文件下载子单元A111,用于根据配置文件的位置下载所述配置文件;The configuration file downloading subunit A111 is configured to download the configuration file according to the location of the configuration file;

配置子单元A112,用于根据配置文件中需要配置的位置和配置内容配置所述配置文件;The configuration subunit A112 is configured to configure the configuration file according to the location and configuration content that need to be configured in the configuration file;

备份子单元A113,用于将配置之前的配置文件进行备份;The backup subunit A113 is used to back up the configuration file before configuration;

配置文件上传子单元A113,用于将配置后的配置文件上传至服务器。The configuration file uploading subunit A113 is configured to upload the configured configuration file to the server.

本发明实施例三提供的基于linux系统的应用程序安装装置,通过对获取的预安装的应用程序进行自动安装和配置,实现了在linux设备上自动安装应用程序,并对其进行自动配置,提高了应用程序的安装效率,节省了人力成本和时间成本,并减少了出错的概率。The application installation device based on the linux system provided by the third embodiment of the present invention realizes the automatic installation and automatic configuration of the application program on the linux device by automatically installing and configuring the obtained pre-installed application program, thereby improving the It improves the installation efficiency of the application program, saves labor costs and time costs, and reduces the probability of errors.

上述仅为本发明的较佳实施例及所运用的技术原理。本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由权利要求的范围决定。The foregoing are only preferred embodiments of the present invention and the applied technical principles. The present invention is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the claims.

Claims (8)

1.一种基于linux系统的应用程序安装方法,其特征在于,包括以下步骤:1. A method for installing application programs based on linux system, characterized in that, comprising the following steps: 应用程序安装装置获取预安装的应用程序;The application installer acquires pre-installed applications; 应用程序安装装置将获取的所述应用程序自动安装在linux设备上;The application program installation device automatically installs the obtained application program on the linux device; 应用程序安装装置自动配置所述应用程序对应的配置文件;The application program installation device automatically configures the configuration file corresponding to the application program; 所述应用程序安装装置自动配置所述应用程序对应的配置文件,包括:The application installation device automatically configures the configuration file corresponding to the application, including: 读取配置信息文件,获取配置文件信息,所述配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;Reading the configuration information file to obtain configuration file information, the configuration file information includes any one or more of the application program name, the location of the corresponding configuration file, and the location to be configured in the configuration file; 所述配置信息文件由开发方提供;The configuration information file is provided by the developer; 读取安装信息文件,获取配置信息,所述配置信息包括所述应用程序对应的服务器信息和配置内容,所述服务器信息包括服务器登陆用户名和服务器登陆密码,所述配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;Read the installation information file to obtain configuration information, the configuration information includes server information and configuration content corresponding to the application program, the server information includes server login user name and server login password, and the configuration content includes server Internet protocol address, Any one or more of port, database username, database password, and database Internet Protocol address; 根据所述服务器信息连接所述服务器;connect to the server according to the server information; 根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件。Configure the configuration file according to the location of the configuration file, the location to be configured in the configuration file, and the configuration content. 2.根据权利要求1所述的基于linux系统的应用程序安装方法,其特征在于,所述应用程序安装装置获取预安装的应用程序包括以下步骤:2. the application program installation method based on linux system according to claim 1, is characterized in that, described application program installation device obtains the application program of preinstallation and comprises the following steps: 读取安装信息文件,获取安装信息,所述安装信息包括应用程序名称和对应的服务器信息,所述服务器信息包括服务器登陆用户名和服务器登陆密码;Read the installation information file to obtain the installation information, the installation information includes the name of the application program and the corresponding server information, and the server information includes the server login user name and the server login password; 根据所述服务器信息连接所述服务器;connect to the server according to the server information; 根据所述应用程序名称从Yum仓库中下载所述应用程序。Download the application program from the Yum repository according to the application program name. 3.根据权利要求1所述的基于linux系统的应用程序安装方法,其特征在于,所述根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件包括以下步骤:3. the application program installation method based on linux system according to claim 1, is characterized in that, described according to the position of configuration file, the position that needs to configure in configuration file and configuration content, configuring described configuration file comprises the following steps: 根据配置文件的位置下载所述配置文件;Download the configuration file according to the location of the configuration file; 根据配置文件中需要配置的位置和配置内容配置所述配置文件;Configure the configuration file according to the location and configuration content that need to be configured in the configuration file; 将配置后的配置文件上传至服务器。Upload the configured configuration file to the server. 4.根据权利要求3所述的基于linux系统的应用程序安装方法,其特征在于,所述根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件后还包括以下步骤:4. the application program installation method based on linux system according to claim 3, is characterized in that, described according to the position of configuration file, the position that needs to configure in configuration file and configuration content, after configuring described configuration file also comprises following step: 将配置之前的配置文件进行备份。Back up the configuration file before configuration. 5.一种基于linux系统的应用程序安装装置,其特征在于,包括:5. An application program installation device based on linux system, characterized in that, comprising: 应用程序获取模块,用于应用程序安装装置获取预安装的应用程序;An application program obtaining module, used for the application program installation device to obtain pre-installed application programs; 应用程序自动安装模块,用于应用程序安装装置将获取的所述应用程序自动安装在linux设备上;The application program automatic installation module is used for the application program installation device to automatically install the obtained application program on the linux device; 应用程序自动配置模块,用于应用程序安装装置自动配置所述应用程序对应的配置文件;The application program automatic configuration module is used for the application program installation device to automatically configure the configuration file corresponding to the application program; 所述应用程序自动配置模块,包括:The application automatic configuration module includes: 配置文件信息获取单元,用于读取配置信息文件,获取配置文件信息,所述配置文件信息包括应用程序名称、对应的配置文件的位置和配置文件中需要配置的位置中的任一项或多项;The configuration file information acquisition unit is used to read the configuration information file and obtain the configuration file information. The configuration file information includes any one or more of the application program name, the location of the corresponding configuration file, and the location to be configured in the configuration file. item; 所述配置信息文件由开发方提供;The configuration information file is provided by the developer; 配置信息获取单元,用于读取安装信息文件,获取配置信息,所述配置信息包括所述应用程序对应的服务器信息和配置内容,所述服务器信息包括服务器登陆用户名和服务器登陆密码,所述配置内容包括服务器互联网协议地址、端口、数据库用户名、数据库密码和数据库互联网协议地址中的任一项或多项;The configuration information obtaining unit is used to read the installation information file and obtain the configuration information, the configuration information includes the server information and configuration content corresponding to the application program, the server information includes the server login user name and the server login password, the configuration The content includes any one or more of the server Internet Protocol address, port, database user name, database password, and database Internet Protocol address; 服务器连接第二单元,用于根据所述服务器信息连接所述服务器;a server connection second unit, configured to connect to the server according to the server information; 配置信息配置单元,用于根据配置文件的位置、配置文件中需要配置的位置和配置内容,配置所述配置文件。The configuration information configuration unit is configured to configure the configuration file according to the location of the configuration file, the location to be configured in the configuration file, and the configuration content. 6.根据权利要求5所述的基于linux系统的应用程序安装装置,其特征在于,所述应用程序获取模块包括:6. the application program installation device based on linux system according to claim 5, is characterized in that, described application program obtaining module comprises: 安装信息获取单元,用于读取安装信息文件,获取安装信息,所述安装信息包括应用程序名称和对应的服务器信息,所述服务器信息包括服务器登陆用户名和服务器登陆密码;The installation information acquisition unit is used to read the installation information file and obtain the installation information, the installation information includes the name of the application program and the corresponding server information, and the server information includes the server login user name and server login password; 服务器连接第一单元,用于根据所述服务器信息连接所述服务器;a server connection first unit, configured to connect to the server according to the server information; 应用程序下载单元,用于根据所述应用程序名称从Yum仓库中下载所述应用程序。The application program downloading unit is configured to download the application program from the Yum repository according to the application program name. 7.根据权利要求5所述的基于linux系统的应用程序安装装置,其特征在于,所述配置信息配置单元包括:7. The application program installation device based on linux system according to claim 5, wherein the configuration information configuration unit comprises: 配置文件下载子单元,用于根据配置文件的位置下载所述配置文件;a configuration file downloading subunit, configured to download the configuration file according to the location of the configuration file; 配置子单元,用于根据配置文件中需要配置的位置和配置内容配置所述配置文件;The configuration subunit is used to configure the configuration file according to the location and configuration content that need to be configured in the configuration file; 配置文件上传子单元,用于将配置后的配置文件上传至服务器。The configuration file uploading subunit is used to upload the configured configuration file to the server. 8.根据权利要求7所述的基于linux系统的应用程序安装装置,其特征在于,所述配置信息配置单元还包括:8. The application program installation device based on linux system according to claim 7, wherein the configuration information configuration unit further comprises: 备份子单元,用于将配置之前的配置文件进行备份。The backup subunit is used to back up the configuration files before configuration.
CN201410643924.3A 2014-11-11 2014-11-11 A method and device for installing application programs based on linux system Expired - Fee Related CN104391715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410643924.3A CN104391715B (en) 2014-11-11 2014-11-11 A method and device for installing application programs based on linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410643924.3A CN104391715B (en) 2014-11-11 2014-11-11 A method and device for installing application programs based on linux system

Publications (2)

Publication Number Publication Date
CN104391715A CN104391715A (en) 2015-03-04
CN104391715B true CN104391715B (en) 2017-11-10

Family

ID=52609623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410643924.3A Expired - Fee Related CN104391715B (en) 2014-11-11 2014-11-11 A method and device for installing application programs based on linux system

Country Status (1)

Country Link
CN (1) CN104391715B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108574586A (en) * 2017-03-09 2018-09-25 北京百悟科技有限公司 A kind of matched application dispositions method of based role, system and device
CN109324882A (en) * 2018-08-22 2019-02-12 深圳点猫科技有限公司 Method and electronic equipment based on linux system control application program
CN109889582B (en) * 2019-01-29 2021-11-23 郑州云海信息技术有限公司 Network installation method and system based on unattended operation system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN102053848A (en) * 2009-11-06 2011-05-11 英业达集团(天津)电子技术有限公司 Automatic installation method for Linux operating system
CN103019791A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Software deploying method and system
CN103425511A (en) * 2013-08-16 2013-12-04 北京华胜天成科技股份有限公司 System and method of installing and deploying application software in cloud computing environment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8185891B2 (en) * 2007-05-14 2012-05-22 Red Hat, Inc. Methods and systems for provisioning software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN102053848A (en) * 2009-11-06 2011-05-11 英业达集团(天津)电子技术有限公司 Automatic installation method for Linux operating system
CN103019791A (en) * 2012-12-19 2013-04-03 中国电子科技集团公司第十五研究所 Software deploying method and system
CN103425511A (en) * 2013-08-16 2013-12-04 北京华胜天成科技股份有限公司 System and method of installing and deploying application software in cloud computing environment

Also Published As

Publication number Publication date
CN104391715A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
JP7055200B2 (en) Computer processing methods, appliances, systems, and programs to access the gateway management console
WO2019128392A1 (en) Method and apparatus for extracting service field, and electronic device and storage medium
US11689414B2 (en) Accessing gateway management console
US10700926B2 (en) Accessing gateway management console
CN104468843A (en) File uploading method and device
CN107920005A (en) A kind of intelligent terminal quickly networking installation and debugging system and method for work
CN104077131A (en) Component deployment system and method
CN104391715B (en) A method and device for installing application programs based on linux system
US11475982B2 (en) Medical record storage with electronic signature
CN106161119A (en) A kind of WebLogic middleware cluster automatic deployment instrument and method
CN110837377B (en) Application program updating method and device, storage medium and electronic equipment
CN103634665A (en) Version upgrading method and version upgrading device
CN114296864A (en) Method and equipment for converting iso mirror image into container mirror image
McNab et al. Managing virtual machines with Vac and Vcycle
JP6417046B2 (en) Technology that translates network resource requirements into zero rating network requirements
US20140167686A1 (en) Content download and synchronization
CN108595924B (en) Business authority management method and device, computer equipment and storage medium
CN105589964A (en) Method and system for remotely mounting file
CN103200260A (en) Resource transmission method, device and system
CN109347706A (en) A method and device for debugging communication equipment networking
CN110557507B (en) File transmission method and device, electronic equipment and computer readable storage medium
CN107391213A (en) A kind of method, apparatus of memory apparatus system upgrading and a kind of upgrade-system
CN106533764A (en) Configuration server, configuration client and configuration method and system
CN110390064A (en) File updating method, device and system, storage medium and electronic device
Bakir Setting Up a Raspberry Pi and Using It As a HomeKit Bridge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171110

CF01 Termination of patent right due to non-payment of annual fee