[go: up one dir, main page]

CN105335173A - Method, apparatus and system for initializing intelligent terminal device - Google Patents

Method, apparatus and system for initializing intelligent terminal device Download PDF

Info

Publication number
CN105335173A
CN105335173A CN201410310129.2A CN201410310129A CN105335173A CN 105335173 A CN105335173 A CN 105335173A CN 201410310129 A CN201410310129 A CN 201410310129A CN 105335173 A CN105335173 A CN 105335173A
Authority
CN
China
Prior art keywords
package
installation
installation package
terminal device
application software
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
CN201410310129.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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410310129.2A priority Critical patent/CN105335173A/en
Priority to PCT/CN2015/083102 priority patent/WO2016000623A1/en
Publication of CN105335173A publication Critical patent/CN105335173A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

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

Abstract

本发明公开了一种初始化智能终端设备的方法、装置及系统。该方法包括:编辑用于安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包并存储在服务器中;编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备;在所述服务器上安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务;触发待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。应用本发明,可以减少初始化所需的时间、提升初始化效率。

The invention discloses a method, device and system for initializing intelligent terminal equipment. The method includes: editing a description file for installing application software and using the edited description file to encapsulate the application software package into an installation package and storing it in the server; editing an installation package configuration file containing server address information, and configuring the configuration file to be Initialize the smart terminal device; install on the server a service for providing the installation package to the smart terminal device to be initialized, point the directory of the service to the storage path where the installation package is stored, and start the service; trigger The smart terminal device to be initialized reads the built-in installation package configuration file, obtains the installation package from the service started by the server and installs it according to the read installation package configuration file. By applying the present invention, the time required for initialization can be reduced and the initialization efficiency can be improved.

Description

初始化智能终端设备的方法、装置及系统Method, device and system for initializing intelligent terminal equipment

技术领域technical field

本发明涉及计算机初始化技术,具体涉及一种初始化智能终端设备的方法、装置及系统。The present invention relates to computer initialization technology, in particular to a method, device and system for initializing intelligent terminal equipment.

背景技术Background technique

随着计算机通信技术以及互联网技术的发展,智能终端设备,例如,可视电话机、会议终端机、移动电话、内置多媒体功能的个人计算机、个人数字助理、服务器的应用越来越广泛,应用的数量也越来越多。在智能终端设备上架后至交付给业务应用使用前,需要对智能终端设备进行环境的初始化,即对智能终端设备进行参数初始化配置以及安装应用程序软件,以使用户能够在基于初始化后的智能终端设备上使用相应的业务,初始化智能终端设备主要包括:With the development of computer communication technology and Internet technology, intelligent terminal equipment, such as videophones, conference terminals, mobile phones, personal computers with built-in multimedia functions, personal digital assistants, and servers, are more and more widely used. The number is also increasing. After the smart terminal device is put on the shelf and before it is delivered to the business application, it is necessary to initialize the environment of the smart terminal device, that is, to initialize the parameters of the smart terminal device and install the application software, so that the user can use the initialized smart terminal based on Using the corresponding service on the device, initializing the smart terminal device mainly includes:

1)智能终端设备参数初始化配置,包括:磁盘分区初始化配置、时间服务器初始化配置、域名服务器初始化配置、系统参数初始化配置、应用程序软件仓库源初始化配置以及主机名校正配置等。1) Intelligent terminal device parameter initialization configuration, including: disk partition initialization configuration, time server initialization configuration, domain name server initialization configuration, system parameter initialization configuration, application software warehouse source initialization configuration and host name correction configuration, etc.

2)应用程序软件安装。根据不同智能终端设备的用途,安装相应的操作系统,基于安装的操作系统,进行其他应用程序软件(操作系统为应用程序软件的一种)安装,应用程序软件包括但不限于:Lnmp(Linux、Nginx、Mysql、Php)、Lamp(Linux、Apache、MySQL、Perl/PHP/Python)、Memcached、Redis、Mongodb、Varnish、Haproxy。2) Application software installation. According to the purpose of different smart terminal devices, install the corresponding operating system, and based on the installed operating system, install other application software (the operating system is a kind of application software). The application software includes but is not limited to: Lnmp (Linux, Nginx, Mysql, Php), Lamp (Linux, Apache, MySQL, Perl/PHP/Python), Memcached, Redis, Mongodb, Varnish, Haproxy.

以对一台4CPU、8G随机存储器(RAM,RandomAccessMemory)的服务器进行初始化,即在服务器上编译安装Lnmp为例,包括如下步骤一、步骤二以及步骤三:Take the initialization of a server with 4CPU and 8G random access memory (RAM, RandomAccessMemory), that is, compile and install Lnmp on the server as an example, including the following steps 1, 2 and 3:

步骤一,安装Nginx,包括:Step 1, install Nginx, including:

a,解压Nginx软件包,该Nginx软件包为:tar–xzvfnginx-version.tar.gz;a, decompress the Nginx software package, the Nginx software package is: tar–xzvfnginx-version.tar.gz;

b,对解压的Nginx软件包进行手工编译(具体参数不对外公布):./configure;make–j4;b. Manually compile the decompressed Nginx software package (specific parameters are not announced): ./configure; make–j4;

c,安装编译的Nginx软件包:makeinstall。c, install the compiled Nginx package: makeinstall.

二,安装Php,包括:Second, install Php, including:

a,解压Php软件包,该Php软件包为:tar–xzvfphp-version.tar.gz;a, decompress the Php software package, the Php software package is: tar–xzvfphp-version.tar.gz;

b,手工编译解压的Php软件包(具体参数不对外公布):./configure;make–j4;b. Manually compile and decompress the Php software package (specific parameters are not announced): ./configure; make–j4;

c,安装编译的Php软件包:makeinstall。c, install the compiled Php package: makeinstall.

三,安装Mysql,包括:Three, install Mysql, including:

a,解压Mysql软件包,该Mysql软件包为:tar–xzvfphp-version.tar.gz;a. Decompress the Mysql package, the Mysql package is: tar–xzvfphp-version.tar.gz;

b,手工编译解压的Mysql软件包(具体参数不对外公布):./configure;make–j4;b. Manually compile and decompress the Mysql software package (specific parameters are not announced): ./configure; make–j4;

c,安装编译的Mysql软件包:makeinstall。c, install the compiled Mysql package: makeinstall.

所应说明的是,步骤一、步骤二以及步骤三并没有先后顺序之分,其中,在安装过程中,需要涉及一些手动编译、配置的操作流程,完成上述三个步骤之后,完成在服务器上编译安装Lnmp的流程。It should be noted that there is no order of steps 1, 2, and 3. During the installation process, some manual compilation and configuration operations are required. After completing the above three steps, complete the installation on the server. The process of compiling and installing Lnmp.

由上述可见,现有通过软件包手工编译的方式对智能终端设备进行初始化的方法,对于每一智能终端设备,需要安装人员进行一些手动编译、配置的操作流程,且一些配置操作为简单的重复配置操作,使得进行集群智能终端设备初始化所需的时间长、初始化效率低。具体来说,首先,当需要初始化的智能终端设备数量多,初始化每一智能终端设备都需要相应的时间,因而,总的初始化时间长;其次,智能终端设备初始化涵盖面广,例如,需要针对不同的应用场景,分别进行初始化;再次,在安装应用程序软件包的过程中,需要进行手动编译等操作,使得安装时间长;而且,需要监测安装流程,以防止在应用程序软件安装中出现问题;最后,每一智能终端设备的安装流程都是重复性的,使得安装人员完成安装所需的时间长。It can be seen from the above that the existing method of initializing smart terminal devices by manually compiling software packages requires installers to perform some manual compilation and configuration operations for each smart terminal device, and some configuration operations are simply repeated The configuration operation makes it take a long time and low initialization efficiency to initialize cluster smart terminal devices. Specifically, firstly, when there are a large number of smart terminal devices that need to be initialized, it takes a corresponding amount of time to initialize each smart terminal device, so the total initialization time is long; secondly, the initialization of smart terminal devices covers a wide range, for example, it is necessary to target Different application scenarios are initialized separately; again, in the process of installing the application software package, manual compilation and other operations are required, which makes the installation time long; moreover, the installation process needs to be monitored to prevent problems during the application software installation ; Finally, the installation process of each smart terminal device is repetitive, making it take a long time for installers to complete the installation.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的初始化智能终端设备的方法、装置及系统。In view of the above problems, the present invention is proposed to provide a method, device and system for initializing a smart terminal device that overcomes the above problems or at least partially solves the above problems.

依据本发明的一个方面,提供了初始化智能终端设备的方法,该方法包括:According to one aspect of the present invention, a method for initializing an intelligent terminal device is provided, the method comprising:

编辑用于安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包并存储在服务器中;Editing the instruction file for installing the application software and using the edited instruction file to package the application software package into an installation package and store it in the server;

编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备;Edit the installation package configuration file containing server address information, and configure it to the smart terminal device to be initialized;

在所述服务器上安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务;Installing on the server a service for providing the installation package to the smart terminal device to be initialized, pointing the directory of the service to the storage path where the installation package is stored, and starting the service;

触发待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。Trigger the smart terminal device to be initialized to read the built-in installation package configuration file, obtain the installation package from the service started by the server and install it according to the read installation package configuration file.

优选地,所述说明文件包含:前言部分以及安装流程部分,其中,Preferably, the description file includes: a preface part and an installation process part, wherein,

前言部分,用于设置应用程序软件包名以及应用程序软件对应的源代码压缩包名;The preamble part is used to set the name of the application software package and the name of the source code compressed package corresponding to the application software;

安装流程部分:用于设置应用程序软件的安装流程。Installation Flow Section: Used to set the installation flow of the application software.

优选地,所述说明文件还包含用于定义宏名以及宏名映射的内容的宏定义部分、和/或,用于描述应用程序软件包的简要介绍的描述部分。Preferably, the description file further includes a macro definition part for defining the macro name and the content of the macro name mapping, and/or a description part for describing a brief introduction of the application software package.

优选地,所述安装流程部分包括:准备阶段脚本段描述、编译阶段脚本段描述、安装阶段脚本段描述、清理阶段脚本段描述以及文件列表脚本段描述。Preferably, the installation process part includes: a description of the script section in the preparation phase, a description of the script section in the compilation phase, a description of the script section in the installation phase, a description of the script section in the cleaning phase, and a description of the script section in the file list.

优选地,所述安装流程部分还包括:安装后阶段脚本段描述、和/或,卸载前脚本段描述、和/或,卸载后阶段脚本段描述、和/或,日志脚本段描述。Preferably, the installation process part further includes: post-installation script section description, and/or pre-uninstallation script section description, and/or post-uninstallation script section description, and/or log script section description.

优选地,所述准备阶段脚本段描述包括:Preferably, the description of the preparation stage script segment includes:

A11,查询说明文件中的前言部分,获取待安装的应用程序软件是否需要依赖其它应用程序软件,如果是,安装依赖的所述其它应用程序软件,执行步骤A12,否则,直接执行步骤A12;A11, query the preamble in the description file to obtain whether the application software to be installed depends on other application software, if so, install the other application software that depends on it, and execute step A12, otherwise, directly execute step A12;

A12,将前言部分中的源代码压缩包名对应的源代码压缩包解压至预先设置的编译目录下。A12, decompress the source code compressed package corresponding to the source code compressed package name in the preface to the preset compilation directory.

优选地,所述利用编辑的说明文件封装应用程序软件包为安装包包括:Preferably, the packaging application software package using the edited description file as an installation package includes:

调用rpmbuild命令,指定应用程序软件包以及该应用程序软件包对应的说明文件,进行打包封装,生成安装包。Call the rpmbuild command, specify the application software package and the corresponding description file of the application software package, package and package it, and generate an installation package.

优选地,在所述生成安装包后,所述方法还包括:Preferably, after the installation package is generated, the method also includes:

对生成的安装包进行安装流程测试,如果未通过安装流程测试,修改说明文件,直至经过修改后生成的安装包通过安装流程测试。Perform the installation process test on the generated installation package. If it fails the installation process test, modify the description file until the modified installation package passes the installation process test.

优选地,所述方法还包括:Preferably, the method also includes:

根据应用场景,将通过安装流程测试的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包。According to the application scenario, the installation package that has passed the installation process test is combined, and the package configuration file is edited for the combined installation package, and the edited package configuration file and the combined installation package are packaged into an installation package.

优选地,所述编辑组包配置文件包括:Preferably, the editing group package configuration file includes:

安装yum-groups-manager命令;Install the yum-groups-manager command;

在每一安装包中,创建该每一安装包中文件对应的索引;In each installation package, create an index corresponding to the files in each installation package;

调用组包配置命令,将创建的索引应用在调用的组包配置命令中,得到组包配置文件。Call the group package configuration command, apply the created index to the called group package configuration command, and obtain the group package configuration file.

优选地,所述组包配置文件采用可扩展标记语言格式。Preferably, the package configuration file adopts an extensible markup language format.

优选地,所述根据读取的安装包配置文件,从服务器启动的服务中获取安装包包括:Preferably, said obtaining the installation package from the service started by the server according to the read installation package configuration file includes:

在服务器上安装超文本传输协议守护程序服务,并将超文本传输协议守护程序服务的目录指向存放安装包的安装包存储路径,启动超文本传输协议守护程序服务;The hypertext transfer protocol daemon service is installed on the server, and the directory of the hypertext transfer protocol daemon service is pointed to the installation package storage path where the installation package is stored, and the hypertext transfer protocol daemon service is started;

在待初始化智能终端设备上,编辑所述安装包存储路径映射的目录文件;On the smart terminal device to be initialized, edit the directory file of the installation package storage path mapping;

启动的待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包;The started smart terminal device to be initialized reads the built-in installation package configuration file, and obtains the installation package from the service started by the server according to the read installation package configuration file;

在所述安装包存储路径映射的目录文件安装所述安装包。The installation package is installed in the directory file mapped to the storage path of the installation package.

根据本发明的另一个方面提供了一种初始化智能终端设备的装置,该装置包括:打包模块、测试模块以及初始化通信模块,其中,According to another aspect of the present invention, there is provided an apparatus for initializing a smart terminal device, the apparatus includes: a packaging module, a testing module, and an initializing communication module, wherein,

打包模块,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包,输出至测试模块;接收测试模块输出的测试通过通知,将通过测试的安装包输出至初始化通信模块;接收测试模块输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,输出至测试模块;The packaging module is used to edit the description file for installing the application software and use the edited description file to package the application software package into an installation package and output it to the test module; receive the test pass notification output by the test module, and output the installation package that passes the test To initialize the communication module; receive the test failure notification output by the test module, modify the edited manual, and use the modified description file to repackage the application software package as an RPM package, and output it to the test module;

测试模块,用于对接收的安装包进行安装流程测试,如果未通过安装流程测试,向打包模块输出测试未通过通知,如果通过安装流程测试,向打包模块输出测试通过通知;The test module is used to perform an installation process test on the received installation package. If the installation process test fails, output a test failure notification to the packaging module, and output a test pass notification to the packaging module if the installation process test passes;

初始化通信模块,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装。The initialization communication module is used to edit the installation package configuration file containing the server address information, and configure it to the smart terminal device to be initialized, install the service for providing the installation package to the smart terminal device to be initialized, and transfer the service to the smart terminal device to be initialized. The directory of the directory points to the storage path for storing the installation package, starts the service, communicates with the intelligent terminal device to be initialized, and outputs the installation package to the intelligent terminal device to be initialized for installation.

优选地,所述打包模块还用于根据预先设置的应用场景,确认应用场景对应的安装包通过测试,将该应用场景对应的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包,输出至初始化通信模块。Preferably, the packaging module is also used to confirm that the installation package corresponding to the application scenario passes the test according to the preset application scenario, to combine the installation packages corresponding to the application scenario, and to edit the package configuration file for the combined installation package, Encapsulate the edited package configuration file and the combined installation package into an installation package, and output it to the initialization communication module.

优选地,所述说明文件包含:用于定义宏名以及宏名映射的内容的宏定义部分;用于设置应用程序软件包名以及应用程序软件对应的源代码压缩包名、编译时依赖的应用程序软件包信息、安装时依赖的应用程序软件包信息的前言部分;用于应用程序软件包的简要介绍的描述部分以及用于设置应用程序软件的安装流程的安装流程部分。Preferably, the description file includes: a macro definition part used to define the macro name and the content of the macro name mapping; used to set the application software package name and the source code compressed package name corresponding to the application software, and the application dependent upon compilation A preamble section for program package information, application package information on which installation depends; a description section for a brief introduction of the application package, and an installation process section for setting the installation process of the application software.

根据本发明的再一个方面提供了一种初始化智能终端设备的系统,该系统包括:安装包打包机、安装包测试机、服务器以及待初始化智能终端设备,其中,According to another aspect of the present invention, a system for initializing an intelligent terminal device is provided, the system includes: an installation package packaging machine, an installation package testing machine, a server, and an intelligent terminal device to be initialized, wherein,

安装包打包机,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包,输出至安装包测试机;接收安装包测试机输出的测试通过通知,将通过测试的安装包输出至服务器;接收安装包测试机输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,将重新封装的安装包输出至安装包测试机;The installation package packaging machine is used to edit the instruction file for installing the application software and use the edited instruction file to package the application software package into an installation package and output it to the installation package testing machine; receive the test pass notification output by the installation package testing machine, and The installation package that passes the test is output to the server; receive the test failure notification output by the installation package testing machine, modify the edited instructions, and use the modified instruction file to repackage the application software package as an RPM package, and repackage the installation package Output to the installation package testing machine;

安装包测试机,用于对接收的安装包进行安装流程测试,如果未通过安装流程测试,向安装打包机输出测试未通过通知,如果通过安装流程测试,向安装打包机输出测试通过通知;The installation package testing machine is used to perform the installation process test on the received installation package. If the installation process test fails, the test failure notification is output to the installation packager, and if the installation process test is passed, the test pass notification is output to the installation packager;

服务器,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装;The server is used to edit the installation package configuration file containing the server address information, and configure it to the intelligent terminal device to be initialized, install the service that provides the installation package to the intelligent terminal device to be initialized, and point the directory of the service to store The storage path of the installation package, starting the service, communicating with the intelligent terminal device to be initialized, so as to output the installation package to the intelligent terminal device to be initialized for installation;

待初始化智能终端设备,用于读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。The smart terminal device to be initialized is used to read the built-in installation package configuration file, and obtain and install the installation package from the service started by the server according to the read installation package configuration file.

优选地,所述安装打包机还用于根据预先设置的应用场景,确认应用场景对应的安装包通过测试,将该应用场景对应的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包,输出至服务器。Preferably, the installation packager is also used to confirm that the installation package corresponding to the application scenario passes the test according to the preset application scenario, to combine the installation packages corresponding to the application scenario, and to edit the package configuration file for the combined installation package , package the edited package configuration file and the combined installation package into an installation package, and output it to the server.

优选地,利用远程镜像自动同步技术将打包生成的安装包传输到安装包测试机。Preferably, the packaged and generated installation package is transmitted to the installation package testing machine by using the remote mirror automatic synchronization technology.

优选地,所述安装打包机包括:社区企业操作系统5安装打包机以及社区企业操作系统6安装打包机。Preferably, the installation packer includes: the community enterprise operating system 5 install packer and the community enterprise operating system 6 install packer.

根据本发明的初始化智能终端设备的方法、装置及系统,通过预先编辑安装应用程序软件的说明文件,利用编辑的说明文件封装应用程序软件包为RPM包,并在待初始化智能终端设备中预置包含服务器地址信息的安装包配置文件,待初始化智能终端设备在启动后通过内置的安装包配置文件从服务器中获取安装包,而由于安装包采用本发明实施例编辑的说明文件进行封装,使得智能终端设备在获取安装包后,可以自动进行安装,由此解决了初始化智能终端设备在人力、物力上成本浪费的技术问题,尤其是需要初始化的智能终端数量较多时,取得了减少初始化智能终端设备所需的时间、提升初始化效率的有益效果。According to the method, device and system for initializing intelligent terminal equipment of the present invention, by pre-editing and installing the description file of the application program software, using the edited description file to package the application program software package into an RPM package, and preset it in the intelligent terminal device to be initialized Including the installation package configuration file of the server address information, the smart terminal device to be initialized obtains the installation package from the server through the built-in installation package configuration file after startup, and since the installation package is packaged with the description file edited by the embodiment of the present invention, the smart After the terminal device obtains the installation package, it can be installed automatically, thus solving the technical problem of wasting manpower and material resources for initializing the smart terminal device, especially when there are a large number of smart terminals that need to be initialized, it has achieved a reduction in initializing the smart terminal device The time required, the beneficial effect of improving initialization efficiency.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1示出了本发明实施例初始化智能终端设备的方法流程;FIG. 1 shows a flow of a method for initializing a smart terminal device according to an embodiment of the present invention;

图2示出了本发明实施例初始化智能终端设备的装置结构;以及,Fig. 2 shows the structure of the device for initializing the smart terminal device according to the embodiment of the present invention; and,

图3示出了本发明实施例初始化智能终端设备的系统结构。FIG. 3 shows a system structure for initializing a smart terminal device according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

现有通过软件包手工编译对智能终端设备进行环境初始化的方法,对于每一智能终端设备,需要安装人员进行一些手动配置的操作,且一些配置操作为简单的重复配置操作,使得在待初始化智能终端设备数量较多的情况下,初始化所需的时间长、初始化效率低。The existing method of initializing the environment of intelligent terminal equipment through manual compilation of software packages requires the installer to perform some manual configuration operations for each intelligent terminal equipment, and some configuration operations are simple repeated configuration operations, so that the intelligent terminal equipment to be initialized When the number of terminal devices is large, the initialization takes a long time and the initialization efficiency is low.

黄狗更新修改(Yum,YellowdogUpdaterModified)服务器是一个在桌面操作系统(Fedora)和红帽(RedHat)以及软件与系统开发(SUSE,SoftwareandSystemDevelopment)、社区企业操作系统(CentOS,CommunityEnterpriseOperatingSystem)中的Shell前端软件包管理器,基于红帽软件管理工具(RPM,RedHatPackageManager),能够使得实现初始化后的智能终端设备可以从指定的服务器,自动下载RPM包进行应用程序安装、更新,并能自动处理应用程序的依赖性关系,实现一次安装应用程序所有依赖的软件包,而无须繁琐地一次次下载、安装。其中,可供Yum下载的RPM包由Linux社区维护,包括Fedora自身提供的应用程序软件包以及源自红帽软件管理工具软件包仓库(RPMfusion)和RPM的FedoraExtras应用程序软件包。根据安装方式的不同,Yum服务器既可以采用Yum技术,安装单个应用程序软件以及该应用程序软件的依赖关系,也可以采用Yum组(Yumgroup)技术,安装应用程序软件安装包,在该应用程序软件安装包中,包括有多个应用程序软件以及多个应用程序软件相对应的依赖关系。Yellow dog update modification (Yum, YellowdogUpdaterModified) server is a Shell front-end software in desktop operating system (Fedora) and Red Hat (RedHat) and software and system development (SUSE, SoftwareandSystemDevelopment), community enterprise operating system (CentOS, CommunityEnterpriseOperatingSystem) The package manager, based on the Red Hat software management tool (RPM, RedHat Package Manager), can enable the initialized smart terminal device to automatically download the RPM package from the specified server for application installation and update, and can automatically handle application dependencies Sexual relationship, realize the one-time installation of all dependent software packages of the application, without cumbersome downloading and installation again and again. Among them, the RPM package available for Yum download is maintained by the Linux community, including the application package provided by Fedora itself and the FedoraExtras application package from the Red Hat software management tool package warehouse (RPMfusion) and RPM. According to different installation methods, the Yum server can either use Yum technology to install a single application software and the dependencies of the application software, or use Yum group (Yumgroup) technology to install the application software installation package. The installation package includes multiple application software and dependencies corresponding to the multiple application software.

Yum服务器涉及到如下技术:The Yum server involves the following technologies:

1)RPM封包技术,用于对原生版本的应用程序软件进行个性化处理,使得个性化处理后的应用程序软件(RPM包)可以适用于不同的应用场景,用以节约应用程序软件编译、安装、调试所需的时间,减少人工成本。1) The RPM packaging technology is used to personalize the original version of the application software, so that the personalized processed application software (RPM package) can be applied to different application scenarios to save application software compilation and installation , Debugging time required to reduce labor costs.

2)Yum应用程序软件仓库管理技术,用于针对不同的应用场景,对RPM包进行组合,形成RPM组(RPMgroup)包,并对RPM组包进行集中统一管理,解决应用程序软件间的相互依赖以及各不同应用场景所需的应用程序软件包组,便于用户方便、快捷、高效完成指定任务。2) Yum application software warehouse management technology, which is used to combine RPM packages for different application scenarios to form RPM group (RPMgroup) packages, and conduct centralized and unified management of RPM group packages to solve the interdependence between application software As well as the application software package groups required by different application scenarios, it is convenient for users to complete specified tasks conveniently, quickly and efficiently.

3)远程镜像自动同步(Rsync,Remotesync)技术,采用客户端/服务器(C/S,Client/Server)模式,服务器(Yum服务器)存储利用RPM封包技术生成的RPM包或RPM组包,在实现初始化后的客户端与服务器建立网络连接后,能够自动从服务器下载并安装RPM包或RPM组包,从而实现应用程序软件安装的高效、可靠。3) Remote mirror automatic synchronization (Rsync, Remotesync) technology adopts the client/server (C/S, Client/Server) mode, and the server (Yum server) stores the RPM package or RPM package generated by the RPM package technology, and realizes After the initialized client establishes a network connection with the server, it can automatically download and install the RPM package or RPM group package from the server, thereby realizing efficient and reliable application software installation.

本发明实施例中,对于现有通过软件包手工编译的方式对智能终端设备进行初始化的方案在时间成本以及人力成本上的消耗,考虑将Yum技术以及Yumgroup技术应用于对智能终端设备进行初始化,从而解决初始化工作在人力、物力上成本的浪费,减少初始化所需的时间、提升初始化效率。具体来说,综合利用RPM封包技术、Rsync技术、Yum应用程序软件仓库管理技术,解决现有技术在初始化过程中的繁琐冗余步骤。In the embodiment of the present invention, considering the consumption of time and labor cost of the existing scheme of initializing the intelligent terminal equipment through software package manual compilation, consider applying Yum technology and Yumgroup technology to initialize the intelligent terminal equipment, In this way, the waste of manpower and material resources in the initialization work can be solved, the time required for initialization can be reduced, and the initialization efficiency can be improved. Specifically, RPM packaging technology, Rsync technology, and Yum application software warehouse management technology are comprehensively used to solve the cumbersome and redundant steps in the initialization process of the prior art.

图1示出了本发明实施例初始化智能终端设备的方法流程。参见图1,该流程包括:FIG. 1 shows the flow of a method for initializing a smart terminal device according to an embodiment of the present invention. Referring to Figure 1, the process includes:

步骤101,编辑用于安装应用程序软件的说明文件,利用编辑的说明文件封装应用程序软件包为安装包并存储在服务器中;Step 101, editing the description file for installing the application software, using the edited description file to package the application software package as an installation package and storing it in the server;

本步骤中,安装包包括但不限于RPM包。通过分析应用程序软件安装流程,并将应用程序安装流程编写为说明(Spec)文件,用以使利用编辑的说明文件封装应用程序软件包生成的RPM包,可以根据该编写的安装流程进行自动安装。其中,每一应用程序软件对应有一说明文件。In this step, the installation package includes but is not limited to an RPM package. By analyzing the application software installation process and writing the application installation process as a description (Spec) file, the RPM package generated by packaging the application software package with the edited description file can be automatically installed according to the written installation process . Wherein, each application software corresponds to a description file.

本发明实施例中,Spec文件是制作RPM包的说明书,Spec文件中包含:宏定义部分、前言部分、描述部分以及安装流程部分。其中,In the embodiment of the present invention, the Spec file is an instruction manual for making an RPM package, and the Spec file includes: a macro definition part, a preamble part, a description part and an installation process part. in,

宏定义部分,用于定义宏名以及宏名映射的内容,宏类似编程时的变量,如果后续应用中引用宏名,将会展开为该引用宏名映射的内容。通过利用宏定义,可以提高说明文件的可维护性、增强可移植性等。The macro definition part is used to define the macro name and the content of the macro name mapping. Macros are similar to variables in programming. If the macro name is referenced in subsequent applications, it will be expanded to the content of the reference macro name mapping. By using the macro definition, it is possible to improve the maintainability of the specification file, enhance the portability, and the like.

本发明实施例中,宏定义部分为可选项。In the embodiment of the present invention, the macro definition part is optional.

前言部分,用于设置应用程序软件包名、应用程序软件对应的源代码压缩包名、编译时依赖的应用程序软件包信息、安装时依赖的应用程序软件包信息等。其中,编译时依赖的应用程序软件包信息、安装时依赖的应用程序软件包信息为可选项,根据应用程序软件编译及安装是否需要依赖其它应用程序软件包确定。该前言部分还可以包括:版本号、发布(release)号等信息。The preamble part is used to set the name of the application software package, the name of the source code compressed package corresponding to the application software, the information of the application software package that is dependent on compilation, and the information on the application software package that is dependent on installation, etc. Wherein, the information of the application software packages that are dependent upon compilation and the information of application software packages that are dependent upon installation are optional items, and are determined according to whether the compilation and installation of the application software need to depend on other application software packages. The preamble may also include information such as version number and release number.

描述(%description)部分:该部分用于在用户不了解应用程序软件包时,可以通过RPM-qi等命令查询该应用程序软件包的简要介绍。Description (%description) part: This part is used to query the brief introduction of the application software package through commands such as RPM-qi when the user does not know the application software package.

本发明实施例中,描述部分为可选项。In the embodiment of the present invention, the description part is optional.

安装流程部分:用于设置应用程序软件的安装流程,包括以下脚本段描述:Installation process section: used to set the installation process of the application software, including the following script descriptions:

1.准备阶段(%pre),包括:1. Preparatory stage (% pre), including:

A11,查询说明文件中的前言部分,获取待安装的应用程序软件是否需要依赖其它应用程序软件,如果是,安装依赖的所述其它应用程序软件,执行步骤A12,否则,直接执行步骤A12;A11, query the preamble in the description file to obtain whether the application software to be installed depends on other application software, if so, install the other application software that depends on it, and execute step A12, otherwise, directly execute step A12;

本步骤中,如果待安装的应用程序软件需要依赖其它应用程序软件,例如,在安装应用程序软件A时,需要先安装应用程序软件B,则在该准备阶段,先对应用程序软件B进行安装。In this step, if the application software to be installed needs to depend on other application software, for example, when installing application software A, application software B needs to be installed first, then in this preparation stage, first install application software B .

A12,将前言部分中的源代码压缩包名对应的源代码压缩包解压至预先设置的编译目录下。A12, decompress the source code compressed package corresponding to the source code compressed package name in the preface to the preset compilation directory.

本步骤中,预先设置的编译目录可以通过上述宏定义的方式进行设置,例如,解压至BUILD目录下,用于为下一步编译阶段做好准备。In this step, the pre-set compilation directory can be set through the above-mentioned macro definition, for example, decompressed to the BUILD directory to prepare for the next compilation stage.

本发明实施例中,源代码压缩包名对应的源代码压缩包设置在应用程序软件包中。In the embodiment of the present invention, the source code compressed package corresponding to the name of the source code compressed package is set in the application software package.

2.编译阶段(%build):在该阶段,编译预先设置的编译目录下解压的源代码压缩包。2. Compilation stage (%build): In this stage, the source code compressed package decompressed in the preset compilation directory is compiled.

3.安装阶段(%install):安装阶段是将编译生成的二进制应用程序文件、应用程序配置文件、服务(service)脚本文件等安装到一个预先设置的虚拟根目录下,用于临时存储,该虚拟根目录为后续安装RPM包的主机(待初始化智能终端设备)的根目录。3. Installation phase (%install): The installation phase is to install the compiled binary application files, application configuration files, service (service) script files, etc. into a preset virtual root directory for temporary storage. The virtual root directory is the root directory of the host (smart terminal device to be initialized) on which the RPM package is subsequently installed.

本发明实施例中,该虚拟根目录可以用宏“buildroot”表示。In the embodiment of the present invention, the virtual root directory may be represented by a macro "buildroot".

4.清理阶段(%clean):在安装完成后,删除安装阶段设置的虚拟根目录。4. Cleanup stage (%clean): After the installation is complete, delete the virtual root directory set in the installation stage.

5.文件列表(%file):文件列表为Spec文件的核心部分,只有在文件列表中列出的文件,最终才会封装进RPM包中。其中,文件列表中的文件为安装应用程序软件所必需的文件。5. File list (%file): The file list is the core part of the Spec file, and only the files listed in the file list will be finally encapsulated into the RPM package. Wherein, the files in the file list are necessary files for installing the application software.

作为可选实施例,在一些应用程序软件安装后,可以对该应用程序软件进行个性化的功能设置,Spec文件还可以包括:As an optional embodiment, after some application software is installed, personalized function settings can be performed on the application software, and the Spec file can also include:

6.安装后阶段(%post):用于对安装的应用程序软件进行个性化功能设置。6. Post-installation stage (%post): used for setting personalized functions of the installed application software.

实际应用中,还可以在安装流程部分,设置卸载前以及卸载后阶段(%preun、%postun),以分别对卸载前、卸载后的操作进行设置。In practical applications, pre-uninstallation and post-uninstallation stages (%preun, %postun) can also be set in the installation process part, so as to set the operations before uninstallation and after uninstallation respectively.

作为可选实施例,还可以在安装流程部分,设置日志(Changelog)脚本段,用以对应用程序软件的更新日志进行说明。As an optional embodiment, a log (Changelog) script segment may also be set in the installation process part to describe the update log of the application software.

上述脚本段中,可以通过编写shell程序,以实现预先设置的操作。例如,可以将准备阶段、编译阶段、安装阶段、清理阶段、文件列表以及安装后阶段对应的程序代码段写入shell程序中的相应段落。In the above script segment, you can write a shell program to realize preset operations. For example, program code segments corresponding to the preparation phase, compilation phase, installation phase, cleaning phase, file list, and post-installation phase may be written into corresponding paragraphs in the shell program.

作为可选实施例,将编辑的说明文件与应用程序软件包封装为RPM包包括:As an optional embodiment, packaging the edited description file and application software package into an RPM package includes:

调用rpmbuild命令,指定应用程序软件包以及该应用程序软件包对应的Spec文件,进行打包封装,生成RPM包。Call the rpmbuild command, specify the application software package and the Spec file corresponding to the application software package, package and package it, and generate an RPM package.

本步骤中,例如,通过rpmbuild–bb<specfile>命令行,可以生成RPM包。其中,-bb参数表示只按照specfile文件生成RPM包。In this step, for example, an RPM package can be generated through the rpmbuild–bb<specfile> command line. Among them, the -bb parameter means to generate RPM packages only according to the specfile.

本发明实施例中,根据编辑的说明文件包含的宏定义部分、前言部分、描述部分以及安装流程部分,依序对应用程序软件包进行封装,生成RPM包。In the embodiment of the present invention, according to the macro definition part, the preamble part, the description part and the installation process part included in the edited description file, the application software package is packaged in order to generate an RPM package.

作为可选实施例,在生成RPM包后,该方法可以还包括:As an optional embodiment, after generating the RPM package, the method may further include:

对生成的RPM包进行安装流程测试,如果未通过安装流程测试,修改说明文件,直至经过修改后生成的RPM包通过安装流程测试。Perform the installation process test on the generated RPM package. If it fails the installation process test, modify the description file until the modified RPM package passes the installation process test.

本步骤中,进行测试为利用rsync将RPM包进行自动安装,如果在RPM包安装中存在问题,则根据显示的提示信息,对Spec文件进行修改,然后,按照重新修改的Spec文件封装应用程序软件包,生成RPM包,再进行安装流程测试,直至安装流程测试通过。从而降低初始化过程中的报错概率,提升智能终端设备初始化时的成功率和可靠性,提升初始化智能终端设备的效率。In this step, the test is to use rsync to automatically install the RPM package. If there is a problem in the installation of the RPM package, modify the Spec file according to the displayed prompt information, and then package the application software according to the re-modified Spec file package, generate an RPM package, and then perform the installation process test until the installation process test passes. Thereby reducing the error probability during the initialization process, improving the success rate and reliability of the smart terminal device initialization, and improving the efficiency of initializing the smart terminal device.

作为另一可选实施例,在生成RPM包或生成的RPM包经过安装流程测试后,该方法可以还包括:As another optional embodiment, after the RPM package is generated or the generated RPM package has passed the installation process test, the method may further include:

根据应用场景,将生成的RPM包进行组合,并为组合的RPM包编辑组包配置文件,将编辑的组包配置文件与组合的RPM包封装为RPM组包。According to the application scenario, combine the generated RPM package, edit the package configuration file for the combined RPM package, and package the edited package configuration file and the combined RPM package into an RPM package.

本步骤中,由于不同的应用场景,需要安装不同组合的应用程序软件包,例如,如前所述,对于Lnmp,需要安装Linux、Nginx、Mysql以及Php,对于Lamp,需要安装Linux、Apache、MySQL以及PHP。因而,本发明实施例中,为了提升安装后使用智能终端设备的用户的业务体验,可以按照不同的应用场景需求,对通过安装流程测试的RPM包进行分组管理,即根据不同的应用场景需求,对RPM包进行组合,从而实现一次初始化即可完成应用场景的设置,有效减少用户操作,降低初始化所需时间。In this step, due to different application scenarios, different combinations of application software packages need to be installed. For example, as mentioned above, for Lnmp, you need to install Linux, Nginx, Mysql, and Php; for Lamp, you need to install Linux, Apache, and MySQL and PHP. Therefore, in the embodiment of the present invention, in order to improve the service experience of users who use smart terminal devices after installation, the RPM packages that pass the installation process test can be grouped and managed according to different application scenario requirements, that is, according to different application scenario requirements, Combining RPM packages, so that the setting of the application scene can be completed after one initialization, effectively reducing user operations and reducing the time required for initialization.

在进行分组管理后,为了对组合的RPM包中的各RPM包的应用场景中的各参数,例如,对组合的RPM包进行描述,保存组包元数据的索引路径,包含的RPM包信息进行配置,还可以根据分组管理得到的RPM包,编辑组合的RPM包对应的组包配置文件,每一组合的RPM包对应一组包配置文件。After the group management is performed, in order to describe each parameter in the application scene of each RPM package in the combined RPM package, for example, describe the combined RPM package, save the index path of the package metadata, and carry out the RPM package information included For configuration, you can also edit the group package configuration files corresponding to the combined RPM packages according to the RPM packages obtained through group management, and each combined RPM package corresponds to a group of package configuration files.

本步骤中,以智能终端设备为Yum服务器为例,编辑组包配置文件包括:In this step, taking the smart terminal device as the Yum server as an example, editing the group package configuration file includes:

B11,安装yum-groups-manager命令;B11, install the yum-groups-manager command;

本步骤中,安装yum-groups-manager命令的命令行为:yuminstallyum-utils.norch。yum-groups-manager命令用于触发执行后续的流程。In this step, the command to install the yum-groups-manager command is: yuminstallyum-utils.norch. The yum-groups-manager command is used to trigger the execution of subsequent processes.

B12,在每一RPM包中,创建该每一RPM包中文件对应的索引;B12, in each RPM package, create the index corresponding to the file in each RPM package;

本步骤为可选步骤,通过为RPM包中文件创建对应的索引,可以减少查询文件时所需的时间,提高查询效率。创建索引的命令行为:createrepo-d--updatepath。其中,“-d”参数为必需参数,path为索引路径。This step is optional. By creating a corresponding index for the files in the RPM package, you can reduce the time required for file query and improve query efficiency. The command line to create an index is: createrepo-d--updatepath. Among them, the "-d" parameter is a required parameter, and path is the index path.

B13,调用组包配置命令,将创建的索引应用在调用的组包配置命令中,得到组包配置文件。B13, call the package configuration command, apply the created index to the called package configuration command, and obtain the package configuration file.

本步骤中,组包配置命令如下:In this step, the group package configuration command is as follows:

yum-groups-manager-n"groupname"--id="groupid"--description="…..."--save=path/repodata/*.xml--mandatoryRPM[RPM]…yum-groups-manager-n "groupname"--id="groupid"--description="..."--save=path/repodata/*.xml--mandatoryRPM[RPM]…

其中,in,

-n参数:指定组(group)包名;-n parameter: specify the group package name;

--id参数:生成组(group)包的唯一标识;--id parameter: Generate a unique identifier for the group package;

--description参数:对组包进行简单的描述,方便用户了解信息;--description parameter: a simple description of the group package, which is convenient for users to understand the information;

--save参数:保存组包元数据到预先设置的索引路径下的文件中;--save parameter: save the package metadata to the file under the preset index path;

--mandatory参数:指定组包中包含的一个或多个RPM包。--mandatory parameter: Specify one or more RPM packages contained in the group package.

作为可选实施例,组包配置文件格式可以采用可扩展标记语言(XML,ExtensibleMarkupLanguage)格式。As an optional embodiment, the format of the package configuration file may adopt an Extensible Markup Language (XML, ExtensibleMarkupLanguage) format.

举例来说,对于一生成的组包配置文件:For example, for a generated package configuration file:

yum-groups-manager-n"LNMP-2.2.20-5.2.5"--id="LNMP"--description="Nginx-1.2.9,Php-5.2.5,MySQL-5.5"--save=/usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml--mandatoryQihoo-App-nginxQihoo-App-phpQihoo-App-mysqlyum-groups-manager-n"LNMP-2.2.20-5.2.5"--id="LNMP"--description="Nginx-1.2.9,Php-5.2.5,MySQL-5.5"--save= /usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml--mandatoryQihoo-App-nginxQihoo-App-phpQihoo-App-mysql

在该组包配置文件中,表示利用安装的yum-groups-manager命令生成一个组名为“LNMP-2.2.20-5.2.5”的组,该组的唯一标识为LNMP,描述为“1.2.9版本的nginx程序,版本为5.2.5的php程序,版本为5.5的mysql程序”,LNMP-2.2.20-5.2.5组的元数据保存在/usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml文件中,该组包含的RPM包有Qihoo-App-nginx、Qihoo-app-php以及Qihoo-App-mysql三个软件包。In the group package configuration file, it means that a group named "LNMP-2.2.20-5.2.5" is generated by using the installed yum-groups-manager command. The unique identifier of this group is LNMP, and the description is "1.2. 9 version of the nginx program, version 5.2.5 of the php program, version 5.5 of the mysql program", the metadata of the LNMP-2.2.20-5.2.5 group is stored in /usr/local/www/CentOS/5/os In the /x86_64/repodata/mygroups.xml file, the RPM packages included in this group include Qihoo-App-nginx, Qihoo-app-php and Qihoo-App-mysql.

作为可选实施例,该方法还可以还包括:As an optional embodiment, the method may also include:

在组合的RPM包发生更新后,更新该组合的RPM包对应的组包配置文件。After the combined RPM package is updated, the package configuration file corresponding to the combined RPM package is updated.

本步骤中,更新包括:删除、修改、增加等。更新组包配置文件的命令行为:createrepo--verbose-gpath/repodata/*.xmlpath。In this step, updating includes: deletion, modification, addition, and the like. The command line for updating the group package configuration file is: createrepo --verbose-gpath/repodata/*.xmlpath.

通过更新组包配置文件,可以使新增的RPM包能被智能终端设备搜索到。By updating the group package configuration file, the newly added RPM package can be searched by the smart terminal device.

例如:一更新组包配置文件的命令行具体如下:For example: the command line for updating the group package configuration file is as follows:

createrepo--verbose-g/usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml/usr/local/www/CentOS/5/os/x86_64/createrepo --verbose-g /usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml /usr/local/www/CentOS/5/os/x86_64/

在该命令行中,利用creatrepo命令,通过指定group的元数据文件/usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml,将在/usr/local/www/CentOS/5/os/x86_64目录下更新组包配置文件,使得智能终端设备可以搜索到此次Yumserver上更新的RPM组包。In the command line, use the creatrepo command to specify the metadata file /usr/local/www/CentOS/5/os/x86_64/repodata/mygroups.xml of the group in /usr/local/www/CentOS/5 Update the group package configuration file in the /os/x86_64 directory, so that the smart terminal device can search for the updated RPM package on the Yumserver this time.

本发明实施例中,封装好的RPM包放置于预先设置的服务器中。In the embodiment of the present invention, the packaged RPM package is placed in a preset server.

步骤102,编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备中;Step 102, edit the installation package configuration file containing server address information, and configure it in the smart terminal device to be initialized;

本步骤中,服务器包括但不限于Yum服务器。安装包配置文件还可以进一步包括但不限于以下信息:服务器域名信息、服务器统一资源定位符信息、服务器IP地址信息、安装包存储地址信息、安装包类型信息等。In this step, the server includes but not limited to Yum server. The installation package configuration file may further include but not limited to the following information: server domain name information, server uniform resource locator information, server IP address information, installation package storage address information, installation package type information, and the like.

步骤103,在所述服务器上安装服务,并将所述服务的目录指向存放安装包的存储路径,启动服务;Step 103, install the service on the server, point the directory of the service to the storage path where the installation package is stored, and start the service;

本步骤中,作为可选实施例,服务用于向所述待初始化智能终端设备提供所述安装包。在所述服务器上安装超文本传输协议守护程序(HTTPD,HypertextTransferProtocolDaemon)服务,并将HTTPD服务的目录指向存放RPM包的RPM包存储路径,启动HTTPD服务。In this step, as an optional embodiment, the service is used to provide the installation package to the smart terminal device to be initialized. Hypertext Transfer Protocol Daemon (HTTPD, HypertextTransferProtocolDaemon) service is installed on the server, and the directory of HTTPD service is pointed to the RPM package storage path that deposits RPM package, and HTTPD service is started.

本发明实施例中,在启动服务后,可以通过启动的服务监测智能终端设备并响应智能终端设备的请求。In the embodiment of the present invention, after the service is started, the smart terminal device can be monitored through the started service and the request of the smart terminal device can be responded to.

步骤104,触发待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。Step 104, triggering the smart terminal device to be initialized to read the built-in installation package configuration file, and according to the read installation package configuration file, obtain the installation package from the service started by the server and install it.

本步骤中,待初始化智能终端设备编辑RPM包存储路径映射的目录文件,例如,目录文件可以设置为/etc/Yum.repos.d/CentOS.repo。这样,在安装时,将安装文件存储在RPM包存储路径映射的待初始化智能终端设备上的目录文件。编辑目录文件/etc/Yum.repos.d/CentOS.repo的命令行如下:In this step, the smart terminal device to be initialized edits the directory file mapped to the storage path of the RPM package. For example, the directory file can be set to /etc/Yum.repos.d/CentOS.repo. In this way, during installation, the installation file is stored in the directory file on the intelligent terminal device to be initialized that is mapped to the storage path of the RPM package. The command line to edit the directory file /etc/Yum.repos.d/CentOS.repo is as follows:

[ADDOPS-base][ADDOPS-base]

name=ADDOPS-$releasever-Basename=ADDOPS-$releasever-Base

baseurl=http://Yum-serverIP/addops/$releasever/os/$basearch/baseurl=http://Yum-serverIP/addops/$releasever/os/$basearch/

gpgcheck=0gpgcheck=0

本发明实施例中,根据读取的安装包配置文件,从服务器启动的服务中获取安装包,从而可以使得安装包按照编辑的说明文件进行安装。In the embodiment of the present invention, according to the read installation package configuration file, the installation package is obtained from the service started by the server, so that the installation package can be installed according to the edited description file.

本发明实施例中,可以同时开启数十台待初始化智能终端设备,并在启动后通过内置的安装包配置文件从服务器中获取安装包,而由于安装包采用本发明实施例编辑的说明文件进行封装,使得智能终端设备在获取安装包后,可以自动进行安装,无需进行软件包手工编译,实现以并行方式对多台待初始化智能终端设备进行RPM包安装,从而大大提高了初始化的效率以及可靠性。In the embodiment of the present invention, dozens of smart terminal devices to be initialized can be started at the same time, and the installation package can be obtained from the server through the built-in installation package configuration file after startup. Encapsulation enables the smart terminal device to automatically install the installation package after obtaining the installation package, without manual compilation of the software package, and realizes the RPM package installation for multiple smart terminal devices to be initialized in parallel, thus greatly improving the efficiency and reliability of initialization sex.

由上述可见,本发明实施例的初始化智能终端设备的方法,通过在初始化过程中利用RPM封包技术、Yum应用程序软件仓库管理技术以及Rsync技术,可以在时间成本、人力成本上节省大量的资源。例如,本发明实施例中,只需将应用程序软件源代码拷贝到一台Yum服务器上进行编译安装,生成安装包,相对于将应用程序软件源代码拷贝到每台需要初始化的智能终端设备上进行编译安装,所需时间更短,初始化更新效率更高。举例来说,对于1000台智能终端设备需要安装某一应用程序软件的情形,仅拷贝该应用程序软件源代码所需的时间,现有技术为本发明实施例的1000倍;进一步地,现有技术中,需要在每台待初始化智能终端设备上编译安装源代码,而本发明实施例中,只需要编写一份Spec文件,利用编辑的说明文件封装应用程序软件包为RPM包,待初始化智能终端设备直接通过运行Yumgroupinstallsoftwarename即可。举例来说,对于1000台智能终端设备需要安装某一应用程序软件的情形,现有技术在源代码编译安装上所需的时间成本依然是本发明实施例的1000倍。It can be seen from the above that the method for initializing a smart terminal device according to the embodiment of the present invention can save a lot of resources in terms of time cost and labor cost by using RPM packaging technology, Yum application software warehouse management technology and Rsync technology in the initialization process. For example, in the embodiment of the present invention, it is only necessary to copy the source code of the application program software to a Yum server for compiling and installing to generate an installation package. The time required for compiling and installing is shorter, and the initialization update efficiency is higher. For example, in the case where 1000 smart terminal devices need to install a certain application software, the time required to copy only the source code of the application software is 1000 times that of the present invention; further, the existing In the technology, it is necessary to compile and install the source code on each intelligent terminal device to be initialized, but in the embodiment of the present invention, it is only necessary to write a Spec file, and use the edited description file to package the application software package as an RPM package, and the intelligent terminal device to be initialized The terminal device can directly run Yumgroupinstallsoftwarename. For example, in the case where 1000 smart terminal devices need to install a certain application program software, the time cost required for source code compilation and installation in the prior art is still 1000 times that of the embodiment of the present invention.

图2示出了本发明实施例初始化智能终端设备的装置结构。参见图2,该装置包括:打包模块、测试模块、初始化通信模块,其中,FIG. 2 shows the structure of an apparatus for initializing a smart terminal device according to an embodiment of the present invention. Referring to Fig. 2, the device includes: a packing module, a testing module, and an initialization communication module, wherein,

打包模块,用于编辑安装应用程序软件的说明文件,利用编辑的说明文件封装应用程序软件包为RPM包,输出至测试模块;接收测试模块输出的测试通过通知,将通过测试的RPM包输出至初始化通信模块;接收测试模块输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,输出至测试模块;The packaging module is used to edit and install the description file of the application software, use the edited description file to encapsulate the application software package as an RPM package, and output it to the test module; receive the test pass notification output by the test module, and output the RPM package that passed the test to Initialize the communication module; receive the test failure notification output by the test module, modify the edited manual, and use the modified description file to repackage the application software package as an RPM package, and output it to the test module;

本发明实施例中,Spec文件中的内容包含:用于定义宏名以及宏名映射的内容的宏定义部分;用于设置应用程序软件包名、应用程序软件对应的源代码压缩包名、编译时依赖的应用程序软件包信息、安装时依赖的应用程序软件包信息的前言部分;用于应用程序软件包的简要介绍的描述部分以及用于设置应用程序软件的安装流程的安装流程部分。其中,安装流程部分包括:准备阶段脚本段描述、编译阶段脚本段描述、安装阶段脚本段描述、清理阶段脚本段描述以及文件列表脚本段描述。In the embodiment of the present invention, the content in the Spec file includes: a macro definition part for defining the macro name and the content of the macro name mapping; The preamble part of the information of the application software package that is dependent on time and the information of the application software package that is dependent on installation; the description part for a brief introduction of the application software package and the installation process part for setting the installation process of the application software. Wherein, the installation process part includes: a description of the script segment in the preparation phase, a description of the script segment in the compilation phase, a description of the script segment in the installation phase, a description of the script segment in the cleaning phase, and a description of the script segment in the file list.

较佳地,通过调用rpmbuild命令,指定应用程序软件包以及该应用程序软件包对应的Spec文件,进行打包封装,生成RPM包。Preferably, an RPM package is generated by calling the rpmbuild command, specifying the application software package and the Spec file corresponding to the application software package, packaging and encapsulating.

作为可选实施例,打包模块还用于根据预先设置的应用场景,确认应用场景对应的RPM包通过测试,将该应用场景对应的RPM包进行组合,并为组合的RPM包编辑组包配置文件,将编辑的组包配置文件与组合的RPM包封装为RPM组包,输出至初始化通信模块。As an optional embodiment, the packaging module is also used to confirm that the RPM packages corresponding to the application scenarios pass the test according to the preset application scenarios, combine the RPM packages corresponding to the application scenarios, and edit the package configuration file for the combined RPM packages , encapsulate the edited package configuration file and the combined RPM package into an RPM package, and output it to the initialization communication module.

本发明实施例中,编辑组包配置文件包括:In the embodiment of the present invention, editing the package configuration file includes:

安装yum-groups-manager命令;在每一RPM包中,创建该每一RPM包中文件对应的索引;调用组包配置命令,将创建的索引应用在调用的组包配置命令中,得到组包配置文件。Install the yum-groups-manager command; in each RPM package, create an index corresponding to the file in each RPM package; call the group package configuration command, apply the created index to the called group package configuration command, and get the group package configuration file.

测试模块,用于对接收的RPM包进行安装流程测试,如果未通过安装流程测试,向打包模块输出测试未通过通知,如果通过安装流程测试,向打包模块输出测试通过通知;The test module is used to perform an installation process test on the received RPM package. If the installation process test fails, output a test failure notification to the packaging module, and output a test pass notification to the packaging module if the installation process test passes;

本发明实施例中,可以在测试未通过通知中,携带未通过测试的具体提示信息。In the embodiment of the present invention, specific prompt information of the failed test may be carried in the test failed notification.

初始化通信模块,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装。The initialization communication module is used to edit the installation package configuration file containing the server address information, and configure it to the smart terminal device to be initialized, install the service that provides the installation package to the smart terminal device to be initialized, and store the directory of the service Pointing to the storage path where the installation package is stored, starting the service, communicating with the smart terminal device to be initialized, so as to output the installation package to the smart terminal device to be initialized for installation.

本发明实施例中,作为可选实施例,通过在初始化通信模块上安装超文本传输协议守护程序服务,并将HTTPD服务的目录指向存放RPM包的RPM包存储路径,启动HTTPD服务,从而可以提供通信支持。In the embodiment of the present invention, as an optional embodiment, by installing the hypertext transfer protocol daemon service on the initialization communication module, and pointing the directory of the HTTPD service to the RPM package storage path where the RPM package is stored, the HTTPD service can be started, thereby providing Communication support.

所应说明的是,该装置中的各模块,可以通过相互独立的物理设备实现,下面进行描述。It should be noted that each module in the device can be implemented by independent physical devices, which will be described below.

图3示出了本发明实施例初始化智能终端设备的系统结构。参见图3,该系统包括:RPM打包机、RPM包测试机、Yum服务器以及待初始化智能终端设备,其中,RPM打包机、RPM包测试机、Yum服务器组成图2所示的装置。FIG. 3 shows a system structure for initializing a smart terminal device according to an embodiment of the present invention. Referring to FIG. 3 , the system includes: an RPM packaging machine, an RPM package testing machine, a Yum server, and an intelligent terminal device to be initialized, wherein the RPM packaging machine, the RPM package testing machine, and the Yum server form the device shown in FIG. 2 .

RPM打包机,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为RPM包,输出至RPM包测试机;接收RPM包测试机输出的测试通过通知,将通过测试的RPM包输出至Yum服务器;接收RPM包测试机输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,将重新封装的RPM包输出至RPM包测试机;RPM packaging machine, used to edit the description file for installing application software and use the edited description file to package the application software package into an RPM package and output it to the RPM package tester; receive the test pass notification output by the RPM package tester and pass the test The RPM package of the test is output to the Yum server; the test failure notification output by the RPM package testing machine is received, the edited manual is modified, and the application software package is repackaged as an RPM package using the modified specification file, and the repackaged RPM package Output to the RPM package testing machine;

本发明实施例中,RPM打包机包括:社区企业操作系统(CentOS,CommunityEnterpriseOperatingSystem)5RPM打包机以及CentOS6RPM打包机。In the embodiment of the present invention, the RPM packer includes: a community enterprise operating system (CentOS, CommunityEnterpriseOperatingSystem) 5RPM packer and a CentOS6RPM packer.

作为可选实施例,RPM打包机还用于根据预先设置的应用场景,确认应用场景对应的RPM包通过测试,将该应用场景对应的RPM包进行组合,并为组合的RPM包编辑组包配置文件,将编辑的组包配置文件与组合的RPM包封装为RPM组包,输出至Yum服务器。As an optional embodiment, the RPM packer is also used to confirm that the RPM package corresponding to the application scenario passes the test according to the preset application scenario, to combine the RPM packages corresponding to the application scenario, and to edit the package configuration for the combined RPM package file, encapsulate the edited package configuration file and the combined RPM package into an RPM package, and output it to the Yum server.

本发明实施例中,利用Rsync自动同步技术,RPM打包机将进行分组管理后得到的RPM组包(多个RPM包以及对应生成的Yumgroup配置文件)传输至Yum服务器。In the embodiment of the present invention, using the Rsync automatic synchronization technology, the RPM packager transmits the RPM package (a plurality of RPM packages and correspondingly generated Yumgroup configuration files) obtained after group management to the Yum server.

RPM包测试机,用于对接收的RPM包进行安装流程测试,如果未通过安装流程测试,向RPM打包机输出测试未通过通知,如果通过安装流程测试,向RPM打包机输出测试通过通知;The RPM package testing machine is used to test the installation process of the received RPM package. If it fails the installation process test, it will output a test failure notification to the RPM packager, and if it passes the installation process test, it will output a test pass notification to the RPM packager;

本发明实施例中,利用Rsync自动同步技术,将打包生成的RPM包传输到RPM包测试机进行安装流程测试,以使打包生成的RPM包通过安装流程测试,从而提升初始化智能终端设备的可靠性和效率。如果在RPM包安装中存在问题,则可以通知RPM打包机根据提示信息,在RPM打包机上对Spec文件进行修改,然后,RPM打包机将修改的RPM包再输出至RPM包测试机进行安装流程测试,直至测试通过。In the embodiment of the present invention, the Rsync automatic synchronization technology is used to transmit the packaged and generated RPM package to the RPM package testing machine for installation process testing, so that the packaged and generated RPM package passes the installation process test, thereby improving the reliability of initializing the intelligent terminal device and efficiency. If there is a problem in the installation of the RPM package, you can notify the RPM packager to modify the Spec file on the RPM packager according to the prompt information, and then the RPM packager will output the modified RPM package to the RPM package tester for installation process testing , until the test passes.

对应CentOS5RPM打包机,RPM包传输到CentOS5RPM包测试机进行测试;对应CentOS6RPM打包机,RPM包传输到CentOS6RPM包测试机进行测试。即对应于RPM打包机,RPM包测试机包括:CentOS5RPM包测试机以及CentOS6RPM包测试机。测试无问题后,RPM包测试机通知RPM打包机,CentOS5RPM打包机和CentOS6RPM打包机将对应通过测试的RPM包进行分组管理。Corresponding to the CentOS5RPM packaging machine, the RPM package is transmitted to the CentOS5RPM package testing machine for testing; corresponding to the CentOS6RPM packaging machine, the RPM package is transmitted to the CentOS6RPM package testing machine for testing. That is to say, it corresponds to the RPM packager, and the RPM package tester includes: CentOS5RPM package tester and CentOS6RPM package tester. After the test has no problem, the RPM package tester will notify the RPM packager, and the CentOS5RPM packager and CentOS6RPM packager will manage the RPM packages that pass the test in groups.

Yum服务器,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装;The Yum server is used to edit the installation package configuration file containing the server address information, and configure it to the smart terminal device to be initialized, install the service for providing the installation package to the smart terminal device to be initialized, and transfer the service to the smart terminal device to be initialized. The directory points to the storage path where the installation package is stored, starts the service, communicates with the smart terminal device to be initialized, and outputs the installation package to the smart terminal device to be initialized for installation;

本发明实施例中,对应CentOS5RPM打包机,Yum服务器为CentOS5Yum服务器(server);对应CentOS6RPM打包机,Yum服务器为CentOS6Yumserver。即Yum服务器包括:CentOS5Yumserver以及CentOS6Yumserver。In the embodiment of the present invention, corresponding to the CentOS5RPM packer, the Yum server is a CentOS5Yum server (server); corresponding to the CentOS6RPM packer, the Yum server is CentOS6Yumserver. That is, Yum servers include: CentOS5Yumserver and CentOS6Yumserver.

待初始化智能终端设备,用于读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。The smart terminal device to be initialized is used to read the built-in installation package configuration file, and obtain and install the installation package from the service started by the server according to the read installation package configuration file.

本发明实施例中,待初始化智能终端设备包括:CentOS5客户端以及CentOS6客户端。作为可选实施例,在CentOS5客户端和CentOS6客户端上,通过超文本传输协议(HTTP,HypertextTransferProtocol)协议,分别与CentOS5Yumserver以及CentOS6Yumserver通信,以进行自动初始化流程。In the embodiment of the present invention, the smart terminal device to be initialized includes: a CentOS5 client and a CentOS6 client. As an optional embodiment, the CentOS5 client and the CentOS6 client communicate with the CentOS5 Yumserver and the CentOS6 Yumserver respectively through the Hypertext Transfer Protocol (HTTP, Hypertext Transfer Protocol) protocol, so as to perform an automatic initialization process.

作为可选实施例,CentOS5客户端的数量为一台或多台,CentOS6客户端的数量为一台或多台。As an optional embodiment, the number of CentOS5 clients is one or more, and the number of CentOS6 clients is one or more.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的初始化智能终端设备的装置及系统中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站服务器上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of some or all of the components in the device and system for initializing smart terminal devices according to the embodiments of the present invention Features. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet web server, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1.一种初始化智能终端设备的方法,包括:The invention discloses A1. A method for initializing an intelligent terminal device, comprising:

编辑用于安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包并存储在服务器中;Editing the instruction file for installing the application software and using the edited instruction file to package the application software package into an installation package and store it in the server;

编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备;Edit the installation package configuration file containing server address information, and configure it to the smart terminal device to be initialized;

在所述服务器上安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务;Installing on the server a service for providing the installation package to the smart terminal device to be initialized, pointing the directory of the service to the storage path where the installation package is stored, and starting the service;

触发待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。Trigger the smart terminal device to be initialized to read the built-in installation package configuration file, obtain the installation package from the service started by the server and install it according to the read installation package configuration file.

A2.根据A1所述的方法,所述说明文件包含:前言部分以及安装流程部分,其中,A2. According to the method described in A1, the description file includes: a preface part and an installation process part, wherein,

前言部分,用于设置应用程序软件包名以及应用程序软件对应的源代码压缩包名;The preamble part is used to set the name of the application software package and the name of the source code compressed package corresponding to the application software;

安装流程部分:用于设置应用程序软件的安装流程。Installation Flow Section: Used to set the installation flow of the application software.

A3.根据A2所述的方法,所述说明文件还包含用于定义宏名以及宏名映射的内容的宏定义部分、和/或,用于描述应用程序软件包的简要介绍的描述部分。A3. According to the method described in A2, the description file further includes a macro definition part for defining the macro name and the content of the macro name mapping, and/or a description part for describing a brief introduction of the application software package.

A4.根据A2所述的方法,所述安装流程部分包括:准备阶段脚本段描述、编译阶段脚本段描述、安装阶段脚本段描述、清理阶段脚本段描述以及文件列表脚本段描述。A4. According to the method described in A2, the installation process part includes: a description of the script segment in the preparation phase, a description of the script segment in the compilation phase, a description of the script segment in the installation phase, a description of the script segment in the cleaning phase, and a description of the script segment in the file list.

A5.根据A4所述的方法,所述安装流程部分还包括:安装后阶段脚本段描述、和/或,卸载前脚本段描述、和/或,卸载后阶段脚本段描述、和/或,日志脚本段描述。A5. According to the method described in A4, the installation process part further includes: post-installation stage script segment description, and/or, pre-uninstallation script segment description, and/or, post-uninstallation stage script segment description, and/or, log Script section description.

A6.根据A4或A5所述的方法,所述准备阶段脚本段描述包括:A6. According to the method described in A4 or A5, the description of the preparatory stage script segment includes:

A11,查询说明文件中的前言部分,获取待安装的应用程序软件是否需要依赖其它应用程序软件,如果是,安装依赖的所述其它应用程序软件,执行步骤A12,否则,直接执行步骤A12;A11, query the preamble in the description file to obtain whether the application software to be installed depends on other application software, if so, install the other application software that depends on it, and execute step A12, otherwise, directly execute step A12;

A12,将前言部分中的源代码压缩包名对应的源代码压缩包解压至预先设置的编译目录下。A12, decompress the source code compressed package corresponding to the source code compressed package name in the preface to the preset compilation directory.

A7.根据A1所述的方法,所述利用编辑的说明文件封装应用程序软件包为安装包包括:A7. According to the method described in A1, the package application software package using the edited description file is an installation package comprising:

调用rpmbuild命令,指定应用程序软件包以及该应用程序软件包对应的说明文件,进行打包封装,生成安装包。Call the rpmbuild command, specify the application software package and the corresponding description file of the application software package, package and package it, and generate an installation package.

A8.根据A1所述的方法,在所述生成安装包后,所述方法还包括:A8. According to the method described in A1, after the installation package is generated, the method also includes:

对生成的安装包进行安装流程测试,如果未通过安装流程测试,修改说明文件,直至经过修改后生成的安装包通过安装流程测试。Perform the installation process test on the generated installation package. If it fails the installation process test, modify the description file until the modified installation package passes the installation process test.

A9.根据A8所述的方法,所述方法还包括:A9. according to the method described in A8, said method also includes:

根据应用场景,将通过安装流程测试的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包。According to the application scenario, the installation package that has passed the installation process test is combined, and the package configuration file is edited for the combined installation package, and the edited package configuration file and the combined installation package are packaged into an installation package.

A10.根据A9所述的方法,所述编辑组包配置文件包括:A10. According to the method described in A9, the editing group package configuration file includes:

安装yum-groups-manager命令;Install the yum-groups-manager command;

在每一安装包中,创建该每一安装包中文件对应的索引;In each installation package, create an index corresponding to the files in each installation package;

调用组包配置命令,将创建的索引应用在调用的组包配置命令中,得到组包配置文件。Call the group package configuration command, apply the created index to the called group package configuration command, and obtain the group package configuration file.

A11.根据A9所述的方法,所述组包配置文件采用可扩展标记语言格式。A11. According to the method described in A9, the package configuration file adopts an extensible markup language format.

A12.根据A1所述的方法,所述根据读取的安装包配置文件,从服务器启动的服务中获取安装包包括:A12. According to the method described in A1, according to the read installation package configuration file, obtaining the installation package from the service started by the server includes:

在服务器上安装超文本传输协议守护程序服务,并将超文本传输协议守护程序服务的目录指向存放安装包的安装包存储路径,启动超文本传输协议守护程序服务;The hypertext transfer protocol daemon service is installed on the server, and the directory of the hypertext transfer protocol daemon service is pointed to the installation package storage path where the installation package is stored, and the hypertext transfer protocol daemon service is started;

在待初始化智能终端设备上,编辑所述安装包存储路径映射的目录文件;On the smart terminal device to be initialized, edit the directory file of the installation package storage path mapping;

启动的待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包;The started smart terminal device to be initialized reads the built-in installation package configuration file, and obtains the installation package from the service started by the server according to the read installation package configuration file;

在所述安装包存储路径映射的目录文件安装所述安装包。The installation package is installed in the directory file mapped to the storage path of the installation package.

A13.一种初始化智能终端设备的装置,该装置包括:打包模块、测试模块以及初始化通信模块,其中,A13. A device for initializing an intelligent terminal device, the device comprising: a packaging module, a test module and an initialization communication module, wherein,

打包模块,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包,输出至测试模块;接收测试模块输出的测试通过通知,将通过测试的安装包输出至初始化通信模块;接收测试模块输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,输出至测试模块;The packaging module is used to edit the description file for installing the application software and use the edited description file to package the application software package into an installation package and output it to the test module; receive the test pass notification output by the test module, and output the installation package that passes the test To initialize the communication module; receive the test failure notification output by the test module, modify the edited manual, and use the modified description file to repackage the application software package as an RPM package, and output it to the test module;

测试模块,用于对接收的安装包进行安装流程测试,如果未通过安装流程测试,向打包模块输出测试未通过通知,如果通过安装流程测试,向打包模块输出测试通过通知;The test module is used to perform an installation process test on the received installation package. If the installation process test fails, output a test failure notification to the packaging module, and output a test pass notification to the packaging module if the installation process test passes;

初始化通信模块,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装。The initialization communication module is used to edit the installation package configuration file containing the server address information, and configure it to the smart terminal device to be initialized, install the service for providing the installation package to the smart terminal device to be initialized, and transfer the service to the smart terminal device to be initialized. The directory of the directory points to the storage path for storing the installation package, starts the service, communicates with the intelligent terminal device to be initialized, and outputs the installation package to the intelligent terminal device to be initialized for installation.

A14.根据A13所述的装置,所述打包模块还用于根据预先设置的应用场景,确认应用场景对应的安装包通过测试,将该应用场景对应的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包,输出至初始化通信模块。A14. According to the device described in A13, the packaging module is also used to confirm that the installation package corresponding to the application scenario passes the test according to the preset application scenario, and combine the installation packages corresponding to the application scenario to form a combined installation package Edit the package configuration file, package the edited package configuration file and the combined installation package into an installation package, and output it to the initialization communication module.

A15.根据A13或A14所述的装置,所述说明文件包含:用于定义宏名以及宏名映射的内容的宏定义部分;用于设置应用程序软件包名以及应用程序软件对应的源代码压缩包名、编译时依赖的应用程序软件包信息、安装时依赖的应用程序软件包信息的前言部分;用于应用程序软件包的简要介绍的描述部分以及用于设置应用程序软件的安装流程的安装流程部分。A15. According to the device described in A13 or A14, the description file includes: a macro definition part for defining the macro name and the content of the macro name mapping; for setting the application software package name and the source code compression corresponding to the application software Preface section for package name, information of application software packages that are dependent on compilation, information on application software packages that are dependent on installation; description section for brief introduction of application software packages and installation for setting up the installation process of application software Process section.

A16.一种初始化智能终端设备的系统,该系统包括:安装包打包机、安装包测试机、服务器以及待初始化智能终端设备,其中,A16. A system for initializing an intelligent terminal device, the system comprising: an installation package packaging machine, an installation package testing machine, a server, and an intelligent terminal device to be initialized, wherein,

安装包打包机,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包,输出至安装包测试机;接收安装包测试机输出的测试通过通知,将通过测试的安装包输出至服务器;接收安装包测试机输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,将重新封装的安装包输出至安装包测试机;The installation package packaging machine is used to edit the instruction file for installing the application software and use the edited instruction file to package the application software package into an installation package and output it to the installation package testing machine; receive the test pass notification output by the installation package testing machine, and The installation package that passes the test is output to the server; receive the test failure notification output by the installation package testing machine, modify the edited instructions, and use the modified instruction file to repackage the application software package as an RPM package, and repackage the installation package Output to the installation package testing machine;

安装包测试机,用于对接收的安装包进行安装流程测试,如果未通过安装流程测试,向安装打包机输出测试未通过通知,如果通过安装流程测试,向安装打包机输出测试通过通知;The installation package testing machine is used to perform the installation process test on the received installation package. If the installation process test fails, the test failure notification is output to the installation packager, and if the installation process test is passed, the test pass notification is output to the installation packager;

服务器,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装;The server is used to edit the installation package configuration file containing the server address information, and configure it to the intelligent terminal device to be initialized, install the service that provides the installation package to the intelligent terminal device to be initialized, and point the directory of the service to store The storage path of the installation package, starting the service, communicating with the intelligent terminal device to be initialized, so as to output the installation package to the intelligent terminal device to be initialized for installation;

待初始化智能终端设备,用于读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。The smart terminal device to be initialized is used to read the built-in installation package configuration file, and obtain and install the installation package from the service started by the server according to the read installation package configuration file.

A17.根据A16所述的系统,所述安装打包机还用于根据预先设置的应用场景,确认应用场景对应的安装包通过测试,将该应用场景对应的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包,输出至服务器。A17. According to the system described in A16, the installation packer is also used to confirm that the installation package corresponding to the application scenario passes the test according to the preset application scenario, and to combine the installation packages corresponding to the application scenario, and to form a combined installation Package editing package configuration file, package the edited package configuration file and the combined installation package into an installation package, and output it to the server.

A18.根据A16所述的系统,利用远程镜像自动同步技术将打包生成的安装包传输到安装包测试机。A18. According to the system described in A16, the installation package generated by packaging is transmitted to the installation package testing machine by using the remote mirror automatic synchronization technology.

A19.根据A16所述的系统,所述安装打包机包括:社区企业操作系统5安装打包机以及社区企业操作系统6安装打包机。A19. According to the system described in A16, the installation packager includes: a community enterprise operating system 5 installation packager and a community enterprise operating system 6 installation packager.

Claims (10)

1.一种初始化智能终端设备的方法,包括:1. A method for initializing an intelligent terminal device, comprising: 编辑用于安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包并存储在服务器中;Editing the instruction file for installing the application software and using the edited instruction file to package the application software package into an installation package and store it in the server; 编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备;Edit the installation package configuration file containing server address information, and configure it to the smart terminal device to be initialized; 在所述服务器上安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务;Installing on the server a service for providing the installation package to the smart terminal device to be initialized, pointing the directory of the service to the storage path where the installation package is stored, and starting the service; 触发待初始化智能终端设备读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。Trigger the smart terminal device to be initialized to read the built-in installation package configuration file, obtain the installation package from the service started by the server and install it according to the read installation package configuration file. 2.如权利要求1所述的方法,所述说明文件包含:前言部分以及安装流程部分,其中,2. The method according to claim 1, wherein the description file includes: a preface part and an installation process part, wherein, 前言部分,用于设置应用程序软件包名以及应用程序软件对应的源代码压缩包名;The preamble part is used to set the name of the application software package and the name of the source code compressed package corresponding to the application software; 安装流程部分:用于设置应用程序软件的安装流程。Installation Flow Section: Used to set the installation flow of the application software. 3.如权利要求2所述的方法,所述说明文件还包含用于定义宏名以及宏名映射的内容的宏定义部分、和/或,用于描述应用程序软件包的简要介绍的描述部分。3. The method according to claim 2, the description file further comprises a macro definition part for defining the macro name and the content of the macro name mapping, and/or, a description part for describing a brief introduction of the application software package . 4.如权利要求2所述的方法,所述安装流程部分包括:准备阶段脚本段描述、编译阶段脚本段描述、安装阶段脚本段描述、清理阶段脚本段描述以及文件列表脚本段描述。4. The method according to claim 2, wherein the installation process part comprises: a description of the script section of the preparation phase, a description of the script section of the compilation phase, a description of the script section of the installation phase, a description of the script section of the cleaning phase and a description of the script section of the file list. 5.如权利要求4所述的方法,所述安装流程部分还包括:安装后阶段脚本段描述、和/或,卸载前脚本段描述、和/或,卸载后阶段脚本段描述、和/或,日志脚本段描述。5. The method according to claim 4, wherein the installation process part further comprises: post-installation stage script section description, and/or, pre-uninstallation script section description, and/or, post-uninstallation stage script section description, and/or , log script section description. 6.如权利要求4或5所述的方法,所述准备阶段脚本段描述包括:6. The method according to claim 4 or 5, wherein the preparation stage script segment description comprises: A11,查询说明文件中的前言部分,获取待安装的应用程序软件是否需要依赖其它应用程序软件,如果是,安装依赖的所述其它应用程序软件,执行步骤A12,否则,直接执行步骤A12;A11, query the preamble in the description file to obtain whether the application software to be installed depends on other application software, if so, install the other application software that depends on it, and execute step A12, otherwise, directly execute step A12; A12,将前言部分中的源代码压缩包名对应的源代码压缩包解压至预先设置的编译目录下。A12, decompress the source code compressed package corresponding to the source code compressed package name in the preface to the preset compilation directory. 7.一种初始化智能终端设备的装置,该装置包括:打包模块、测试模块以及初始化通信模块,其中,7. A device for initializing an intelligent terminal device, the device comprising: a packaging module, a testing module and an initialization communication module, wherein, 打包模块,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包,输出至测试模块;接收测试模块输出的测试通过通知,将通过测试的安装包输出至初始化通信模块;接收测试模块输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,输出至测试模块;The packaging module is used to edit the description file for installing the application software and use the edited description file to package the application software package into an installation package and output it to the test module; receive the test pass notification output by the test module, and output the installation package that passes the test To initialize the communication module; receive the test failure notification output by the test module, modify the edited manual, and use the modified description file to repackage the application software package as an RPM package, and output it to the test module; 测试模块,用于对接收的安装包进行安装流程测试,如果未通过安装流程测试,向打包模块输出测试未通过通知,如果通过安装流程测试,向打包模块输出测试通过通知;The test module is used to perform an installation process test on the received installation package. If the installation process test fails, output a test failure notification to the packaging module, and output a test pass notification to the packaging module if the installation process test passes; 初始化通信模块,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装用于向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装。The initialization communication module is used to edit the installation package configuration file containing the server address information, and configure it to the smart terminal device to be initialized, install the service for providing the installation package to the smart terminal device to be initialized, and transfer the service to the smart terminal device to be initialized. The directory of the directory points to the storage path for storing the installation package, starts the service, communicates with the intelligent terminal device to be initialized, and outputs the installation package to the intelligent terminal device to be initialized for installation. 8.如权利要求7所述的装置,所述打包模块还用于根据预先设置的应用场景,确认应用场景对应的安装包通过测试,将该应用场景对应的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包,输出至初始化通信模块。8. The device according to claim 7, wherein the packaging module is also used to confirm that the installation package corresponding to the application scenario passes the test according to the preset application scenario, and to combine the installation packages corresponding to the application scenario, and to form a combined The installation package edits the package configuration file, encapsulates the edited package configuration file and the combined installation package into an installation package, and outputs it to the initialization communication module. 9.一种初始化智能终端设备的系统,该系统包括:安装包打包机、安装包测试机、服务器以及待初始化智能终端设备,其中,9. A system for initializing an intelligent terminal device, the system comprising: an installation package packing machine, an installation package testing machine, a server, and an intelligent terminal device to be initialized, wherein, 安装包打包机,用于编辑安装应用程序软件的说明文件并且利用编辑的说明文件将应用程序软件包封装为安装包,输出至安装包测试机;接收安装包测试机输出的测试通过通知,将通过测试的安装包输出至服务器;接收安装包测试机输出的测试未通过通知,修改所述编辑的说明书,并利用修改的说明文件重新封装应用程序软件包为RPM包,将重新封装的安装包输出至安装包测试机;The installation package packaging machine is used to edit the instruction file for installing the application software and use the edited instruction file to package the application software package into an installation package and output it to the installation package testing machine; receive the test pass notification output by the installation package testing machine, and The installation package that passes the test is output to the server; receive the test failure notification output by the installation package testing machine, modify the edited instructions, and use the modified instruction file to repackage the application software package as an RPM package, and repackage the installation package Output to the installation package testing machine; 安装包测试机,用于对接收的安装包进行安装流程测试,如果未通过安装流程测试,向安装打包机输出测试未通过通知,如果通过安装流程测试,向安装打包机输出测试通过通知;The installation package testing machine is used to perform the installation process test on the received installation package. If the installation process test fails, the test failure notification is output to the installation packager, and if the installation process test is passed, the test pass notification is output to the installation packager; 服务器,用于编辑包含服务器地址信息的安装包配置文件,并配置到待初始化智能终端设备,安装向所述待初始化智能终端设备提供所述安装包的服务,并将所述服务的目录指向存放安装包的存储路径,启动所述服务,与待初始化智能终端设备通信,以将安装包输出至所述待初始化智能终端设备进行安装;The server is used to edit the installation package configuration file containing the server address information, and configure it to the intelligent terminal device to be initialized, install the service that provides the installation package to the intelligent terminal device to be initialized, and point the directory of the service to store The storage path of the installation package, starting the service, communicating with the intelligent terminal device to be initialized, so as to output the installation package to the intelligent terminal device to be initialized for installation; 待初始化智能终端设备,用于读取内置的安装包配置文件,根据读取的安装包配置文件,从服务器启动的服务中获取安装包并进行安装。The smart terminal device to be initialized is used to read the built-in installation package configuration file, and obtain and install the installation package from the service started by the server according to the read installation package configuration file. 10.如权利要求9所述的系统,所述安装打包机还用于根据预先设置的应用场景,确认应用场景对应的安装包通过测试,将该应用场景对应的安装包进行组合,并为组合的安装包编辑组包配置文件,将编辑的组包配置文件与组合的安装包封装为安装组包,输出至服务器。10. The system according to claim 9, the installation packager is also used to confirm that the installation package corresponding to the application scenario passes the test according to the preset application scenario, and to combine the installation packages corresponding to the application scenario, and to combine Edit the package configuration file of the installation package, package the edited package configuration file and the combined installation package into an installation package, and output it to the server.
CN201410310129.2A 2014-07-01 2014-07-01 Method, apparatus and system for initializing intelligent terminal device Pending CN105335173A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410310129.2A CN105335173A (en) 2014-07-01 2014-07-01 Method, apparatus and system for initializing intelligent terminal device
PCT/CN2015/083102 WO2016000623A1 (en) 2014-07-01 2015-07-01 Method, apparatus and system for initializing intelligent terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410310129.2A CN105335173A (en) 2014-07-01 2014-07-01 Method, apparatus and system for initializing intelligent terminal device

Publications (1)

Publication Number Publication Date
CN105335173A true CN105335173A (en) 2016-02-17

Family

ID=55018463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410310129.2A Pending CN105335173A (en) 2014-07-01 2014-07-01 Method, apparatus and system for initializing intelligent terminal device

Country Status (2)

Country Link
CN (1) CN105335173A (en)
WO (1) WO2016000623A1 (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371865A (en) * 2016-08-26 2017-02-01 浪潮(北京)电子信息产业有限公司 Software environment deployment method and system
CN108228201A (en) * 2017-12-28 2018-06-29 广州亦云信息技术股份有限公司 Method of managing software, electronic equipment and storage medium based on software storage
CN108594330A (en) * 2017-12-28 2018-09-28 南京信息工程大学 Automatic meteorological data monitoring system based on Cloud Server
CN108920157A (en) * 2018-06-13 2018-11-30 平安科技(深圳)有限公司 Installation method, device, computer equipment and the storage medium of Nginx software
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic device
CN112445576A (en) * 2020-11-30 2021-03-05 中国人寿保险股份有限公司 Equipment calling method for shielding service difference and related equipment
CN112486510A (en) * 2020-11-04 2021-03-12 深圳市金百锐通信科技有限公司 Method and device for software installation, terminal equipment and storage medium
CN113821229A (en) * 2021-10-29 2021-12-21 北京光启元数字科技有限公司 Program installation method, device, equipment and medium
CN113885896A (en) * 2021-09-29 2022-01-04 平安银行股份有限公司 Application software package installation method and device, computer equipment and storage medium
CN114281369A (en) * 2022-01-07 2022-04-05 北京猎鹰安全科技有限公司 Linux system software installation package packaging method
CN114296776A (en) * 2021-12-08 2022-04-08 山东齐鲁数通科技有限公司 A service package configuration calling method, device, terminal device and storage medium
CN114610333A (en) * 2022-01-26 2022-06-10 北京快确信息科技有限公司 Self-adaptive packaging installation method, device, system and medium for program installation package
CN115480898A (en) * 2022-09-22 2022-12-16 联创汽车电子有限公司 Real-time Task Scheduling System for Adaptive MCU Platform
CN117270896A (en) * 2023-11-15 2023-12-22 中孚安全技术有限公司 Automatic application program identification and installation method, system, device and storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647527B (en) * 2018-04-17 2020-11-17 创新先进技术有限公司 File packing method, file packing device, file unpacking device and network equipment
CN111198744B (en) * 2018-11-16 2023-05-30 中标软件有限公司 Method for automatic application program containerization and mirror image backup release
CN110727440B (en) * 2019-10-08 2022-10-04 中国电子科技集团公司第二十八研究所 A software packaging method
CN112764796B (en) * 2019-11-05 2024-12-06 优酷文化科技(北京)有限公司 Installation package generation system
CN113760304A (en) * 2020-06-03 2021-12-07 汉朔科技股份有限公司 System configuration method, device, equipment and medium
CN111949310B (en) * 2020-08-07 2022-07-19 苏州浪潮智能科技有限公司 Built-in service external connection method and device based on heterogeneous cloud platform
CN112925587B (en) * 2021-03-11 2024-08-20 北京百度网讯科技有限公司 Method and device for initializing applications
CN113031964B (en) * 2021-03-25 2023-12-26 恒安嘉新(北京)科技股份公司 Big data application management method, device, equipment and storage medium
CN115412516A (en) * 2022-08-30 2022-11-29 上海哔哩哔哩科技有限公司 Customer service function realization method and device, computing equipment and storage medium
CN116755724B (en) * 2022-11-29 2024-02-02 华东师范大学 A PCA software installation method
CN117539535A (en) * 2023-11-15 2024-02-09 广州虎牙科技有限公司 A test installation package construction method, device, electronic equipment and storage medium
CN119759380A (en) * 2025-03-06 2025-04-04 北京数科网维技术有限责任公司 A method, device and equipment for processing application files

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235281A1 (en) * 2004-04-19 2005-10-20 Telefonaktiebolaget L M Ericsson (Publ) Combined software installation package
CN103713924A (en) * 2013-12-24 2014-04-09 汉柏科技有限公司 Upgrading method and system of cloud computing platform services

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020131405A1 (en) * 2001-02-14 2002-09-19 Ching-Fang Lin Java based information exchange process and system thereof
US20100058319A1 (en) * 2008-08-28 2010-03-04 Hitachi, Ltd. Agile deployment of server
CN103580908B (en) * 2012-08-10 2016-12-21 百度在线网络技术(北京)有限公司 The collocation method of server and system
CN103281373B (en) * 2013-05-30 2015-12-23 烽火通信科技股份有限公司 Home gateway intelligent update device and upgrade method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050235281A1 (en) * 2004-04-19 2005-10-20 Telefonaktiebolaget L M Ericsson (Publ) Combined software installation package
CN103713924A (en) * 2013-12-24 2014-04-09 汉柏科技有限公司 Upgrading method and system of cloud computing platform services

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
ASTRAYLINUX: "yum命令基本用法", 《HTTP://BLOG.CSDN.NET/ASTRAYLINUX/ARTICLE/DETAILS/7025761》 *
JX_战壕LINUX: "自己生成yum仓库", 《HTTP://WWW.BUBUKO.COM/INFODETAIL-138670.HTML》 *
MICHAEL JANG: "《RHCSA/RHCE Red Hat Linux认证模拟考试解析》", 30 April 2014, 清华大学出版社 *
于明俭等: "《Linux程序设计权威指南》", 30 April 2001, 机械工业出版社 *
段继刚: "《Linux软件管理平台设计与实现》", 30 September 2013, 机械工业出版社 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371865A (en) * 2016-08-26 2017-02-01 浪潮(北京)电子信息产业有限公司 Software environment deployment method and system
CN108228201A (en) * 2017-12-28 2018-06-29 广州亦云信息技术股份有限公司 Method of managing software, electronic equipment and storage medium based on software storage
CN108594330A (en) * 2017-12-28 2018-09-28 南京信息工程大学 Automatic meteorological data monitoring system based on Cloud Server
CN108920157A (en) * 2018-06-13 2018-11-30 平安科技(深圳)有限公司 Installation method, device, computer equipment and the storage medium of Nginx software
WO2019237583A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Nginx software installation method and apparatus, computer device, and storage medium
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic device
CN112486510A (en) * 2020-11-04 2021-03-12 深圳市金百锐通信科技有限公司 Method and device for software installation, terminal equipment and storage medium
CN112445576B (en) * 2020-11-30 2024-04-16 中国人寿保险股份有限公司 Equipment calling method for shielding service difference and related equipment
CN112445576A (en) * 2020-11-30 2021-03-05 中国人寿保险股份有限公司 Equipment calling method for shielding service difference and related equipment
CN113885896A (en) * 2021-09-29 2022-01-04 平安银行股份有限公司 Application software package installation method and device, computer equipment and storage medium
CN113885896B (en) * 2021-09-29 2024-06-25 平安银行股份有限公司 Application software package installation method and device, computer equipment and storage medium
CN113821229A (en) * 2021-10-29 2021-12-21 北京光启元数字科技有限公司 Program installation method, device, equipment and medium
CN114296776A (en) * 2021-12-08 2022-04-08 山东齐鲁数通科技有限公司 A service package configuration calling method, device, terminal device and storage medium
CN114281369A (en) * 2022-01-07 2022-04-05 北京猎鹰安全科技有限公司 Linux system software installation package packaging method
CN114610333A (en) * 2022-01-26 2022-06-10 北京快确信息科技有限公司 Self-adaptive packaging installation method, device, system and medium for program installation package
CN115480898A (en) * 2022-09-22 2022-12-16 联创汽车电子有限公司 Real-time Task Scheduling System for Adaptive MCU Platform
CN117270896A (en) * 2023-11-15 2023-12-22 中孚安全技术有限公司 Automatic application program identification and installation method, system, device and storage medium

Also Published As

Publication number Publication date
WO2016000623A1 (en) 2016-01-07

Similar Documents

Publication Publication Date Title
CN105335173A (en) Method, apparatus and system for initializing intelligent terminal device
CN112882700B (en) iOS application construction method and device, electronic device and storage medium
US8595693B2 (en) Model driven deployment of composite applications
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
CN108037961B (en) Application configuration method, device, server and storage medium
US10929117B2 (en) Container image building using shared resources
CN102413167B (en) Virtual and physical enterprise system imaging
CN111966463B (en) A method, device, storage medium and electronic device for building a container image
US9507748B2 (en) Platform runtime abstraction
CN111782231B (en) Service deployment method and device
CN105468414A (en) Intelligent terminal upgrading method and system
CN105045631A (en) Method and device for upgrading client-side applications
CN106569880B (en) A method and system for dynamically sharing resources between Android applications
CN109992278A (en) A container-based application publishing method and device
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN115098082A (en) Pipeline script generation method, system, device and medium based on Jenkins plug-in
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
CN105592086B (en) A kind of method and device for Android platform managing firewall
CN112035160A (en) Code management system and control method thereof
CN117112122A (en) Cluster deployment method and device
CN113568755B (en) A distributed compilation system and distributed compilation method
CN115421740A (en) Deployment method and device of cloud native application
CN115718606A (en) A method and system for server automation continuous integration and deployment
CN108023902A (en) A kind of method and device for building Dropbox service mirror image and disposing Dropbox service
CN113805878B (en) Plug-in engineering method, device, computer system and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160217

RJ01 Rejection of invention patent application after publication