CN109800028A - A kind of dispositions method and device of Web environment - Google Patents
A kind of dispositions method and device of Web environment Download PDFInfo
- Publication number
- CN109800028A CN109800028A CN201811644020.7A CN201811644020A CN109800028A CN 109800028 A CN109800028 A CN 109800028A CN 201811644020 A CN201811644020 A CN 201811644020A CN 109800028 A CN109800028 A CN 109800028A
- Authority
- CN
- China
- Prior art keywords
- installation
- project
- component
- script
- list
- 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.)
- Granted
Links
Abstract
The embodiment of the present invention discloses the dispositions method and device of a kind of Web environment.Wherein, which comprises the starting automatic installation file of project, the automatic installation file of project includes the list of component installation script and installation of project script listing;Wherein, the automatic installation file of the project is pre-generated;The component installation script list is traversed, various components are installed one by one;Each project is configured according to the installation of project script listing.Described device is for executing the above method.The dispositions method and device of Web environment provided in an embodiment of the present invention, can be realized the automatic deployment to Web environment, improve the deployment efficiency of Web environment.
Description
Technical field
The present embodiments relate to field of computer technology, and in particular to a kind of dispositions method and device of Web environment.
Background technique
The development process of Web application includes project development and project testing, needs to construct Web when carrying out project development and opens
Hair ring border, Web exploitation environment are a series of software works for installing on development equipment in order to carry out web application exploitation
Tool needs to construct Web test environment in project testing, Web test environment be in order to carry out web application test and
A series of software tools installed in test equipment.
When constructing Web exploitation environment or Web test environment, different components is installed according to the actual needs of project,
Such as installation PHP, the components such as IIS, MySQL.The technical side of Web exploitation environment or Web test environment is established in the prior art
Case is divided into two kinds, and one is manual installations, and the component that manual installation project one by one needs and the configuration for carrying out project manually need
It devotes a tremendous amount of time, low efficiency;One is automatic installation, it is limited to install the component installation number that can be supported automatically, logical
Often it is 4, and only supports the project configuration of default, it is subsequent to modify manually.
Therefore, a kind of dispositions method of Web environment how is proposed, be capable of automatic installation project needs component, to improve
The deployment efficiency of Web environment becomes industry important topic urgently to be resolved.
Summary of the invention
For the defects in the prior art, the embodiment of the present invention provides the dispositions method and device of a kind of Web environment.
On the one hand, the embodiment of the present invention proposes a kind of dispositions method of Web environment, comprising:
The automatic installation file of starting project, the automatic installation file of project include the list of component installation script and project peace
Fill script listing;Wherein, the automatic installation file of the project is pre-generated;
The component installation script list is traversed, various components are installed one by one;With
Each project is configured according to the installation of project script listing.
On the other hand, the embodiment of the present invention provides a kind of deployment device of Web environment, comprising:
Start unit, for starting the automatic installation file of project, the automatic installation file of project includes component installation foot
This list and installation of project script listing;Wherein, the automatic installation file of the project is obtained ahead of time;
Installation unit installs various components for traversing the component installation script list one by one;With
Configuration unit, for being configured according to the installation of project script listing to each project.
In another aspect, the embodiment of the present invention provides a kind of electronic equipment, including memory, processor and it is stored in memory
Computer program that is upper and can running on a processor, the processor realize any of the above-described embodiment institute when executing described program
The step of dispositions method for the Web environment stated.
Another aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating
Machine program, the computer program realize the dispositions method of Web environment described in any of the above-described embodiment when being executed by processor
Step.
The dispositions method and device of Web environment provided in an embodiment of the present invention, due to can start be obtained ahead of time include
The automatic installation file of the project of the list of component installation script and installation of project script listing, traverse component installation script list, by
One installation various components, configure each project according to installation of project script listing, can be realized to the automatic of Web environment
Deployment, improves the deployment efficiency of Web environment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of the dispositions method for the Web environment that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides Web environment dispositions method flow diagram;
Fig. 3 is the flow diagram of the dispositions method for the Web environment that further embodiment of this invention provides;
Fig. 4 is the flow diagram of the dispositions method for the Web environment that yet another embodiment of the invention provides;
Fig. 5 is the flow diagram of the dispositions method for the Web environment that a further embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram of the deployment device for the Web environment that one embodiment of the invention provides;
Fig. 7 be another embodiment of the present invention provides Web environment deployment device structural schematic diagram;
Fig. 8 is the structural schematic diagram of the deployment device for the Web environment that further embodiment of this invention provides;
Fig. 9 is the structural schematic diagram of the deployment device for the Web environment that yet another embodiment of the invention provides;
Figure 10 is the structural schematic diagram of the deployment device for the Web environment that a further embodiment of the present invention provides;
Figure 11 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is a part of the invention
Embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making wound
Every other embodiment obtained under the premise of the property made labour, shall fall within the protection scope of the present invention.
Fig. 1 is the flow diagram of the dispositions method for the Web environment that one embodiment of the invention provides, as shown in Figure 1, this hair
The dispositions method for the Web environment that bright embodiment provides, comprising:
S101, starting the automatic installation file of project, the automatic installation file of project include the list of component installation script and
Installation of project script listing;Wherein, the automatic installation file of the project is pre-generated;
Specifically, it in the development process for carrying out Web application, needs to dispose corresponding Web environment, example on relevant device
Such as, deployment Web exploitation environment or Web test environment.The deployment device (hereinafter referred to as deployment device) of Web environment is available
The automatic installation file of project for disposing Web environment, and start the automatic installation file of the project, the project is installed automatically
File includes the list of component installation script and installation of project script listing.Wherein, the automatic installation file of the project is pre- Mr.
At.
S102, the traversal component installation script list, install various components one by one;
It specifically, include needing the information of various components to be mounted, such as component name in the component installation script list
Claim, the deployment device can obtain the component installation script of the component according to the information of the component, then described in execution
Component installation script completes the installation of the component.The deployment device can traverse the entire component installation script list, root
Each component is installed according to the component installation script of each component, the installation until completing each component.It is described
Component installation script list includes the various components that project needs, and the not limitation of quantity realizes project needs
The automatic installation of various components, improves the installation effectiveness of the component of project.
S103, each project is configured according to the installation of project script listing.
Specifically, the deployment device, can after all components being installed in the component installation script list
To obtain the project peace of each project according to the project information for each project for including in the installation of project script listing
Script is filled, each installation of project script is then executed, each project is configured.The installation of project script column
Table can automatically configure each project, improve the allocative efficiency of project.
The dispositions method of Web environment provided in an embodiment of the present invention, due to can start be obtained ahead of time include component pacify
The automatic installation file of project of script listing and installation of project script listing is filled, traverse component installation script list is installed one by one
Various components configure each project according to installation of project script listing, improve the deployment efficiency of Web environment.
Fig. 2 be another embodiment of the present invention provides Web environment dispositions method flow diagram, as shown in Fig. 2, institute
S102, the traversal component installation script list are stated, installing various components one by one includes:
S1021, according to the component installation script list securing component installation script, the component installation script includes group
Part download address and default port number;Wherein, the component installation script list includes the component installation foot of each component
This;
Specifically, each component has corresponding component installation script, and the deployment device can be from the component
The component installation script of each component is obtained in installation script list, such as includes according to the component installation script list
Component Name, obtain corresponding component installation script, then execute the component installation script, the component installation script packet
Include component download address and default port number.Wherein, the component installation script list includes the component peace of each component
Fill script.
S1022, according to the component download address, download component installation kit;
Specifically, the deployment device is after obtaining the component download address, according to the component download address, hair
The downloading to component installation kit is played, can download and obtain the component installation kit.
If S1023, judgement know that the default port number meets port configuration condition, using the default port number as
The assembly end slogan of the component;Otherwise, the port numbers for meeting the port configuration condition are obtained as the assembly end slogan;
Wherein, the port configuration condition is that port numbers are not occupied;
Specifically, each component requires one idle port numbers of configuration during installation.The deployment device exists
After obtaining the default port number, whether occupied the default port number can detecte, if the default port number does not have
Have it is occupied, then the default port number meets port configuration condition, using the default port number as the group of the component
Part port numbers;If the default port number is occupied, the port numbers for meeting the port configuration condition are obtained, i.e.,
There is no occupied port numbers as the assembly end slogan.Wherein, S1022, according to the component download address, download component
If installation kit and S1023, judgement know that the default port number meets port configuration condition, using the default port number as
The assembly end slogan of the component;Otherwise, the port numbers for meeting the port configuration condition are obtained as the assembly end slogan;
Wherein, the port configuration condition does not have occupied for port numbers, is two independent steps, does not have sequencing relationship, this
Inventive embodiments do not limit the sequencing of above-mentioned two step.
For example, can use lsof-i under linux system: default port number, detect the default port number whether by
It occupies.
S1024, the decompression component installation kit, and the component is installed;It wherein, will in the component process is installed
The assembly end slogan is allocated to the component;
Specifically, the deployment device decompresses the component installation kit after obtaining the component installation kit, then into
The installation of the row component, and the assembly end slogan is allocated to the component during the installation process.Wherein, pacified by component
The detailed process for filling packet mounting assembly is the prior art, herein without repeating.
S1025, securing component Run Script, and the assembly operating script is added to booting and is opened in queue certainly.
Specifically, the deployment device can be got after installing the component from the component installation kit
Then the assembly operating script is added to booting from opening in queue, so as to component described in quick start by assembly operating script.
Fig. 3 is the flow diagram of the dispositions method for the Web environment that further embodiment of this invention provides, as shown in figure 3, institute
S1024, the decompression component installation kit are stated, and the component is installed and includes:
S10241, it asks the user whether to modify to component profile;
Specifically, the deployment device asks the user whether to carry out component Configuration text during installing the component
The modification of part.For example, dialog box can be popped up, display " modifying component profile? ", ask the user whether to carry out component
The modification of configuration file, and option " Y " and " N " are provided and selected for the user.Wherein, each component installation kit can
To include the component profile, the component profile includes module configuration information, and module configuration information is at subsequent group
It can be used in the use process of part, user can modify the content of the component profile according to the actual needs of oneself,
The component profile can not be modified, the component profile of default is used.
If S10242, the information for receiving confirmation modification show that the component profile is modified for the user.
Specifically, if the deployment device receives the information of confirmation modification, such as the user is in the dialogue of pop-up
The option " Y " of selection confirmation modification in frame, then showing the component profile on the screen, the user can modify institute
Component profile is stated, after the user has modified the component profile, the deployment device can save described
Component profile.If it will be appreciated that the deployment device receives the information that do not modify, such as the user is popping up
Dialog box in select the option " N " that do not modify, then it is described deployment device storage default the component profile.
It is further, described to obtain the port numbers for meeting the port configuration condition on the basis of the various embodiments described above
Include: as the assembly end slogan
The default port number is carried out from operation is added, until meeting the end by the port numbers obtained from after adding operation
Mouth configuration condition.
Specifically, the deployment device, can be by the default end after detecting that the default port number is occupied
Slogan adds 1, whether occupied then detects the port numbers after the default port number adds 1, if after the default port number adds 1
Port numbers do not have it is occupied, then the port numbers after the default port number is added 1 are as the assembly end slogan.Deny,
Continue from operation is added, until obtaining one without occupied port numbers as the assembly end slogan.
On the basis of the various embodiments described above, further, the S102, the traversal component installation script list, by
One, which installs various components, includes:
Each component installation script is obtained according to the component installation script list, and before each component is installed
Verify whether the corresponding component of each component installation script has been installed.
Specifically, if the deployment device disposed sundry item before the Web environment of deployment current project
Web environment just will be installed some components, since the component of the different projects can share, the deployment
Device can install each institute after getting each component installation script according to the component installation script list
Before stating component, verify whether the corresponding component of each component installation script has been installed, for installed component
It can skip, it is not necessary to repeat to install, to save the time of mounting assembly, improve the deployment efficiency of Web environment.
For example, can inquire whether the component has been installed using related command under linux system, such as
The component of rpm packet installation can be used " rpm-qa component Name " and inquire whether the component is installed.Wherein, the component name
Title can be obtained by the component installation script.
Fig. 4 is the flow diagram of the dispositions method for the Web environment that yet another embodiment of the invention provides, as shown in figure 4,
On the basis of the various embodiments described above, further, the S103, each project is carried out according to the installation of project script listing
Configuration includes:
S1031, installation of project script is obtained according to the installation of project script listing, the installation of project script includes item
The duplication address of mesh configuration file;Wherein, the installation of project script listing includes the installation of project script of each project;
Specifically, each project has corresponding installation of project script, and the deployment device completes the component
In installation script list after the installation of each component, each item can be obtained from the installation of project script listing
Purpose installation of project script, and each installation of project script of execution one by one.Wherein, the installation of project script includes item
The duplication address of mesh configuration file;The installation of project script listing includes the installation of project script of each project.
S1032, it asks the user whether to replicate the project profile;
Specifically, whether the deployment device can inquire the user when executing the installation of project script
Replicate the project profile.For example, dialog box can be popped up, display " replicating project profile? ", inquire user
The project profile whether is replicated, and option " Y " and " N " are provided and selected for the user.
If S1033, the information for receiving confirmation duplication replicate institute according to the duplication address of the project profile
State project profile.
Specifically, if the deployment device receives the information of confirmation duplication, such as the user is in the dialogue of pop-up
The option " Y " of selection confirmation duplication in frame, then duplication address of the deployment device according to the project profile, duplication
Under the project profile to corresponding address.It will be appreciated that if the deployment device receives the information not replicated,
Such as the user selects the option " N " not replicated in the dialog box of pop-up, then the deployment device will not be from the item
Project profile described in the duplication address reproduction of mesh configuration file.
Fig. 5 is the flow diagram of the dispositions method for the Web environment that a further embodiment of the present invention provides, as shown in figure 5,
On the basis of the various embodiments described above, further, the generation step of the automatic installation file includes:
S501, the component installation script list is established at component Configuration center, the component installation script list includes
The component installation script of each component;
Specifically, in order to be quickly generated the automatic installation file of the project, component can be established on the server
Configuration center, the component Configuration central store have installation kit, component profile, the component installation script of each component
And assembly operating script.It, can component profile to various components, component installation script at the component Configuration center
It modifies with assembly operating script.According to the actual needs of the project, the group that selection needs at the component Configuration center
Part, establishes the component installation script list, and the component installation script list may include each institute that the project needs
The component installation script for stating component can find the component installation foot of the component by the component installation script list
This.Wherein, the component installation script of the component includes component download address and default port number.
S502, the installation of project script listing is established at project configuration center, the installation of project script listing includes
The installation of project script of at least one project;
Specifically, project profile can be modified at project configuration center, the project profile is by the project
Content determine, for the project carry out information configuration, such as the login password of redis, the information such as the request address of the source of houses.Institute
Stating project configuration center can be generated the installation script of project, and the installation of project script includes answering for the project profile
Address processed.The installation of project script listing, the installation of project script listing packet can be established at the project configuration center
The installation of project script for including at least one project can be incited somebody to action when needing while establishing the Web environment of multiple projects
The project profile of multiple projects is established in the same installation of project script listing, correspondingly, corresponding described
It include the component installation script for the component that multiple projects need in component installation script list.By matching for multiple projects
It sets file to establish in the same installation of project script, avoids generating the automatic installation file of project to each project, improve
The Web environment of multiple projects disposes efficiency.
S503, according to the component installation script list and the installation of project script listing, it is automatic to generate the project
Installation file.
Specifically, the deployment device obtain the component installation script list and the installation of project script listing it
Afterwards, it can generate the project according to the component installation script list and the installation of project script listing and text is installed automatically
Part, the automatic installation file of project is installed for guide assembly, and configures project information.
Fig. 6 is the structural schematic diagram of the deployment device for the Web environment that one embodiment of the invention provides, as shown in fig. 6, this hair
The deployment device for the Web environment that bright embodiment provides, including start unit 601, installation unit 602 and configuration unit 603,
In:
Start unit 601 includes component installation for starting the automatic installation file of project, the automatic installation file of project
Script listing and installation of project script listing;Wherein, the automatic installation file of the project is obtained ahead of time;Installation unit 602
For traversing the component installation script list, various components are installed one by one;Configuration unit 603 is used for according to the installation of project
Script listing configures each project.
Specifically, it in the development process for carrying out Web application, needs to dispose corresponding Web environment, example on relevant device
Such as, deployment Web exploitation environment or Web test environment.The available project for disposing Web environment of start unit 601 is certainly
Dynamic installation file, and start the automatic installation file of the project, the automatic installation file of project includes component installation script column
Table and installation of project script listing.Wherein, the automatic installation file of the project is pre-generated.
It include needing the information of various components to be mounted, such as component Name, installation in the component installation script list
Unit 602 can obtain the component installation script of the component according to the information of the component, then execute the component
Installation script completes the installation of the component.Installation unit 602 can traverse the entire component installation script list, according to every
The component installation script of a component installs each component, the installation until completing each component.The component
Installation script list includes the various components that project needs, and the not limitation of quantity, the project that realizes need each
The automatic installation of component, improves the installation effectiveness of the component of project.
After all components being installed in the component installation script list, configuration unit 603 can be according to institute
The project information for each project for including in installation of project script listing is stated, the installation of project script of each project is obtained,
Then each installation of project script is executed, each project is configured.The installation of project script listing can be with
Each project is automatically configured, the allocative efficiency of project is improved.
The deployment device of Web environment provided in an embodiment of the present invention, due to can start be obtained ahead of time include component pacify
The automatic installation file of project of script listing and installation of project script listing is filled, traverse component installation script list is installed one by one
Various components configure each project according to installation of project script listing, improve the deployment efficiency of Web environment.
Fig. 7 be another embodiment of the present invention provides Web environment deployment device structural schematic diagram, as shown in fig. 7,
On the basis of the various embodiments described above, further, installation unit 602 includes obtaining subelement 6021, lower subelements 6022, sentencing
Disconnected subelement 6023, installation subelement 6024 and addition subelement 6025, in which:
Subelement 6021 is obtained to be used for according to the component installation script list securing component installation script, the component peace
Filling script includes component download address and default port number;Wherein, the component installation script list includes each component
Component installation script;Lower subelements 6022 are used for according to the component download address, download component installation kit;Judgement is single
Member 6023 is used for after judgement knows that the default port number meets port configuration condition, using the default port number as institute
State the assembly end slogan of component;Otherwise, the port numbers for meeting the port configuration condition are obtained as the assembly end slogan;Its
In, the port configuration condition is that port numbers are not occupied;Installation subelement 6024 is used to decompress the component installation kit, and
The component is installed;Wherein, in the component process is installed, the assembly end slogan is allocated to the component;Addition
Unit 6025 is used for securing component Run Script, and the assembly operating script is added to booting and is opened in queue certainly.
Specifically, each component has corresponding component installation script, takes subelement 6021 can be from the component
The component installation script of each component is obtained in installation script list, such as includes according to the component installation script list
Component Name, obtain corresponding component installation script, then execute the component installation script, the component installation script packet
Include component download address and default port number.Wherein, the component installation script list includes the component peace of each component
Fill script.
After obtaining the component download address, lower subelements 6022 are according to the component download address, initiation pair
The downloading of component installation kit can download and obtain the component installation kit.
Each component requires one idle port numbers of configuration during installation.Judgment sub-unit 6023 is obtaining institute
After stating default port number, whether occupied the default port number can detecte, if the default port number is not occupied
With then the default port number meets port configuration condition, using the default port number as the component ports of the component
Number;If the default port number is occupied, obtain the port numbers for meeting the port configuration condition, i.e., not by
The port numbers of occupancy are as the assembly end slogan.
After obtaining the component installation kit, installation subelement 6024 decompresses the component installation kit, then carries out institute
The installation of component is stated, and the assembly end slogan is allocated to the component during the installation process.Wherein, pass through component installation kit
The detailed process of mounting assembly is the prior art, herein without repeating.
After installing the component, addition subelement 6025 can get component fortune from the component installation kit
This is traveled far and wide, the assembly operating script is then added to booting from opening in queue, so as to component described in quick start.
Fig. 8 is the structural schematic diagram of the deployment device for the Web environment that further embodiment of this invention provides, as shown in figure 8,
On the basis of the various embodiments described above, further, installation subelement 6024 includes inquiring module 60241 and display module 60242,
Wherein:
Inquiry module 60241 is for asking the user whether to modify to component profile;Display module 60242 is used for
After the information for receiving confirmation modification, show that the component profile is modified for the user.
Specifically, during installing the component, inquiry module 60241 asks the user whether to carry out component Configuration text
The modification of part.For example, dialog box can be popped up, display " modifying component profile? ", ask the user whether to carry out component
The modification of configuration file, and option " Y " and " N " are provided and selected for the user.Wherein, each component installation kit can
To include the component profile, the component profile includes module configuration information, and module configuration information is at subsequent group
It can be used in the use process of part, user can modify the content of the component profile according to the actual needs of oneself,
The component profile can not be modified, the component profile of default is used.
If display module 60242 receives the information of confirmation modification, such as the user selects in the dialog box of pop-up
The option " Y " of confirmation modification is selected, then showing the component profile on the screen, the user can modify the component
Configuration file, after the user has modified the component profile, the display module 60242 can save described group
Part configuration file.It will be appreciated that if receive the information that do not modify, such as the user selects in the dialog box of pop-up
The option " N " that do not modify, then storing the component profile of default.
On the basis of the various embodiments described above, further, judgment sub-unit 6023 is specifically used for:
The default port number is carried out from operation is added, until meeting the end by the port numbers obtained from after adding operation
Mouth configuration condition.
Specifically, judgment sub-unit 6023, can be by the default after detecting that the default port number is occupied
Port numbers add 1, whether occupied then detect the port numbers after the default port number adds 1, if the default port number adds 1
Port numbers afterwards do not have it is occupied, then the port numbers after the default port number is added 1 are as the assembly end slogan.It is no
Recognize, continues from operation is added, until obtaining one without occupied port numbers as the assembly end slogan.
On the basis of the various embodiments described above, further, installation unit 602 is specifically used for:
Each component installation script is obtained according to the component installation script list, and before each component is installed
Verify whether the corresponding component of each component installation script has been installed.
Specifically, if disposing the Web environment of sundry item, Jiu Huian before the Web environment of deployment current project
Some components were filled, since the component of the different projects can share, installation unit 602 is according to described group
, can be before each component be installed after part installation script list gets each component installation script, verification
Whether the corresponding component of each component installation script has been installed, and installed component can be skipped, it is not necessary to weight
Multiple installation, to save the time of mounting assembly, improves the deployment efficiency of Web environment.
Fig. 9 is the structural schematic diagram of the deployment device for the Web environment that yet another embodiment of the invention provides, in above-mentioned each implementation
On the basis of example, further, configuration unit 603 includes obtaining subelement 6031, inquiry subelement 6032 and duplication subelement
6033, in which:
It obtains subelement 6031 and is used to obtain installation of project script, the project peace according to the installation of project script listing
Dress script includes the duplication address of project profile;Wherein, the installation of project script listing includes each project
Installation of project script;Inquiry subelement 6032 is for asking the user whether to replicate the project profile;Replicate subelement
6033 for according to the duplication address of the project profile, replicating the item after the information for receiving confirmation duplication
Mesh configuration file.
Specifically, each project has corresponding installation of project script, completes the component installation script list
In each component installation after, obtain subelement 6031 can be obtained from the installation of project script listing it is each described
The installation of project script of project, and each installation of project script of execution one by one.Wherein, the installation of project script includes
The duplication address of project profile;The installation of project script listing includes the installation of project script of each project.
When executing the installation of project script, inquiry subelement 6032 can inquire whether the user replicates institute
State project profile.For example, dialog box can be popped up, display " replicating project profile? ", ask the user whether multiple
The project profile is made, and option " Y " and " N " are provided and selected for the user.
If duplication subelement 6033 receives the information of confirmation duplication, such as the user selects in the dialog box of pop-up
The option " Y " of confirmation duplication is selected, then duplication subelement 6033 is according to the duplication address of the project profile, described in duplication
Under project profile to corresponding address.It will be appreciated that if duplication subelement 6033 receives the information not replicated, example
If the user selects the option " N " not replicated in the dialog box of pop-up, then duplication subelement 6033 will not be from the item
Project profile described in the duplication address reproduction of mesh configuration file.
Figure 10 is the structural schematic diagram of the deployment device for the Web environment that a further embodiment of the present invention provides, as shown in Figure 10,
On the basis of the various embodiments described above, further, the deployment device of Web environment provided in an embodiment of the present invention further includes first
It establishes unit 604, second establish unit 605 and generation unit 606, in which:
First establishing unit 604 is used to establish the component installation script list, the component peace at component Configuration center
Dress script listing includes the component installation script of each component;Second establishes unit 605 for building at project configuration center
The installation of project script listing is found, the installation of project script listing includes the installation of project foot of at least one project
This;Generation unit 606 is used to generate the project according to the component installation script list and the installation of project script listing
Automatic installation file.
Specifically, in order to be quickly generated the automatic installation file of the project, component can be established on the server
Configuration center, the component Configuration central store have installation kit, component profile, the component installation script of each component
And assembly operating script.It, can component profile to various components, component installation script at the component Configuration center
It modifies with assembly operating script.According to the actual needs of the project, the group that selection needs at the component Configuration center
Part, first establishing unit 604 establish the component installation script list, and the component installation script list may include the item
The component installation script for each component that mesh needs, can find the component by the component installation script list
Component installation script.Wherein, the component installation script of the component includes component download address and default port number.
Project profile can be modified at project configuration center, the project profile is determined by the content of the project
It is fixed, information configuration is carried out for the project, such as the login password of redis, the information such as the request address of the source of houses.Match in the project
The installation script of project can be generated in the center of setting, and the installation of project script includes the duplication address of the project profile.
Second, which establishes unit 605, can establish the installation of project script listing, the installation of project foot at the project configuration center
This list includes the installation of project script of at least one project, when the Web environment for needing while establishing multiple projects
When, second, which establishes unit 605, can establish the project profile of multiple projects in the same installation of project script column
In table, correspondingly, the component peace of the component needed in the corresponding component installation script list including multiple projects
Fill script.The configuration file of multiple projects is established in the same installation of project script, is avoided to each project
The automatic installation file of generation project improves the Web environment deployment efficiency of multiple projects.
After obtaining the component installation script list and the installation of project script listing, generation unit 606 can be with
According to the component installation script list and the installation of project script listing, the automatic installation file of the project is generated, it is described
The automatic installation file of project is installed for guide assembly, and configures project information.
Figure 11 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides, as shown in figure 11, the electronics
Equipment may include: processor (processor) 1101, communication interface (Communications Interface) 1102, deposit
Reservoir (memory) 1103 and communication bus 1104, wherein processor 1101, communication interface 1102, memory 1103 pass through logical
Letter bus 1104 completes mutual communication.Processor 1101 can call the logical order in memory 1103, to execute such as
Lower method: the starting automatic installation file of project, the automatic installation file of project include the list of component installation script and project peace
Fill script listing;Wherein, the automatic installation file of the project is pre-generated;The component installation script list is traversed, by
One installation various components;Each project is configured according to the installation of project script listing.
In addition, the logical order in above-mentioned memory 1103 can be realized by way of SFU software functional unit and conduct
Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally
Substantially the part of the part that contributes to existing technology or the technical solution can be in other words for the technical solution of invention
The form of software product embodies, which is stored in a storage medium, including some instructions to
So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention
The all or part of the steps of example the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various
It can store the medium of program code.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating
Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated
When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, starting project is installed automatically
File, the automatic installation file of project includes the list of component installation script and installation of project script listing;Wherein, the project
Automatic installation file is pre-generated;The component installation script list is traversed, various components are installed one by one;According to the item
The list of mesh installation script configures each project.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium
Computer program is stored, the computer program makes the computer execute method provided by above-mentioned each method embodiment, example
It such as include: the automatic installation file of starting project, the automatic installation file of project includes the list of component installation script and project peace
Fill script listing;Wherein, the automatic installation file of the project is pre-generated;The component installation script list is traversed, by
One installation various components;Each project is configured according to the installation of project script listing.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. a kind of dispositions method of Web environment characterized by comprising
The automatic installation file of starting project, the automatic installation file of project includes the list of component installation script and installation of project foot
This list;Wherein, the automatic installation file of the project is pre-generated;
The component installation script list is traversed, various components are installed one by one;With
Each project is configured according to the installation of project script listing.
2. the method according to claim 1, wherein the traversal component installation script list, pacifies one by one
Filling various components includes:
According to the component installation script list securing component installation script, the component installation script includes component download address
And default port number;Wherein, the component installation script list includes the component installation script of each component;
According to the component download address, download component installation kit;
If judgement knows that the default port number meets port configuration condition, using the default port number as the component
Assembly end slogan;Otherwise, the port numbers for meeting the port configuration condition are obtained as the assembly end slogan;Wherein, described
Port configuration condition is that port numbers are not occupied;
The component installation kit is decompressed, and the component is installed;Wherein, in installing the component process, by the assembly end
Slogan is allocated to the component;
Securing component Run Script, and the assembly operating script is added to booting and is opened in queue certainly.
3. according to the method described in claim 2, it is characterized in that, the decompression component installation kit, and installing described group
Part includes:
It asks the user whether to modify to component profile;
If receiving the information of confirmation modification, show that the component profile is modified for the user.
4. according to the method described in claim 2, it is characterized in that, described obtain the port numbers for meeting the port configuration condition
Include: as the assembly end slogan
The default port number match from operation is added until meeting the port by the port numbers obtained from after adding operation
Set condition.
5. the method according to claim 1, wherein the traversal component installation script list, pacifies one by one
Filling various components includes:
Each component installation script is obtained according to the component installation script list, and is verified before each component is installed
Whether the corresponding component of each component installation script has been installed.
6. the method according to claim 1, wherein it is described according to the installation of project script listing to each item
Mesh carries out configuration
Installation of project script is obtained according to the installation of project script listing, the installation of project script includes project profile
Duplication address;Wherein, the installation of project script listing includes the installation of project script of each project;
It asks the user whether to replicate the project profile;
If the information for receiving confirmation duplication replicates the project configuration according to the duplication address of the project profile
File.
7. method according to any one of claims 1 to 6, which is characterized in that the generation step of the automatic installation file
Include:
The component installation script list is established at component Configuration center, the component installation script list includes each described group
The component installation script of part;
The installation of project script listing is established at project configuration center, the installation of project script listing includes at least one institute
State the installation of project script of project;
According to the component installation script list and the installation of project script listing, the automatic installation file of the project is generated.
8. a kind of deployment device of Web environment characterized by comprising
Start unit, for starting the automatic installation file of project, the automatic installation file of project includes component installation script column
Table and installation of project script listing;Wherein, the automatic installation file of the project is obtained ahead of time;
Installation unit installs various components for traversing the component installation script list one by one;With
Configuration unit, for being configured according to the installation of project script listing to each project.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor realizes Web ring as described in any one of claim 1 to 7 when executing described program
The step of dispositions method in border.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer
The step of dispositions method of Web environment as described in any one of claim 1 to 7 is realized when program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811644020.7A CN109800028B (en) | 2018-12-30 | 2018-12-30 | Web environment deployment method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811644020.7A CN109800028B (en) | 2018-12-30 | 2018-12-30 | Web environment deployment method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109800028A true CN109800028A (en) | 2019-05-24 |
CN109800028B CN109800028B (en) | 2022-08-16 |
Family
ID=66558345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811644020.7A Active CN109800028B (en) | 2018-12-30 | 2018-12-30 | Web environment deployment method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109800028B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110531962A (en) * | 2019-08-06 | 2019-12-03 | 上海连尚网络科技有限公司 | Development process method, equipment and the computer readable storage medium of small routine |
CN110825429A (en) * | 2019-11-13 | 2020-02-21 | 中孚安全技术有限公司 | Web project packaging method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050289539A1 (en) * | 2004-06-29 | 2005-12-29 | Sudhir Krishna S | Central installation, deployment, and configuration of remote systems |
CN101763275A (en) * | 2009-12-31 | 2010-06-30 | 华为终端有限公司 | Automatic operation method and device, and mobile device |
CN101788917A (en) * | 2010-02-26 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Deployment method of utility software and the system thereof |
CN102436501A (en) * | 2011-12-02 | 2012-05-02 | 曙光信息产业(北京)有限公司 | Parallel file managing system based on web |
CN102637130A (en) * | 2012-03-15 | 2012-08-15 | 北京神州数码思特奇信息技术股份有限公司 | Method and device for building web projects |
CN106610853A (en) * | 2015-10-26 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Application deployment method and device |
CN108334370A (en) * | 2017-05-26 | 2018-07-27 | 中国电子科技集团公司第四十研究所 | A kind of software auto-increment update upgrade method of distributed test system |
-
2018
- 2018-12-30 CN CN201811644020.7A patent/CN109800028B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050289539A1 (en) * | 2004-06-29 | 2005-12-29 | Sudhir Krishna S | Central installation, deployment, and configuration of remote systems |
CN101763275A (en) * | 2009-12-31 | 2010-06-30 | 华为终端有限公司 | Automatic operation method and device, and mobile device |
CN101788917A (en) * | 2010-02-26 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Deployment method of utility software and the system thereof |
CN102436501A (en) * | 2011-12-02 | 2012-05-02 | 曙光信息产业(北京)有限公司 | Parallel file managing system based on web |
CN102637130A (en) * | 2012-03-15 | 2012-08-15 | 北京神州数码思特奇信息技术股份有限公司 | Method and device for building web projects |
CN106610853A (en) * | 2015-10-26 | 2017-05-03 | 阿里巴巴集团控股有限公司 | Application deployment method and device |
CN108334370A (en) * | 2017-05-26 | 2018-07-27 | 中国电子科技集团公司第四十研究所 | A kind of software auto-increment update upgrade method of distributed test system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110531962A (en) * | 2019-08-06 | 2019-12-03 | 上海连尚网络科技有限公司 | Development process method, equipment and the computer readable storage medium of small routine |
CN110531962B (en) * | 2019-08-06 | 2023-11-17 | 上海连尚网络科技有限公司 | Development processing method and device for applet and computer readable storage medium |
CN110825429A (en) * | 2019-11-13 | 2020-02-21 | 中孚安全技术有限公司 | Web project packaging method and system |
Also Published As
Publication number | Publication date |
---|---|
CN109800028B (en) | 2022-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105389191B (en) | A kind of method for upgrading software based on LAN, device and system | |
CN105872019B (en) | A kind of method and apparatus that the end Web logs in Docker container | |
CN111741134B (en) | System and method for quickly constructing virtual machine in large-scale scene of network shooting range | |
CN104486430A (en) | Method, device and client for realizing data sharing in mobile browser client | |
US20150271014A1 (en) | Automatic configuration of new components by infrastructure management software | |
CN113645071B (en) | Cluster deployment method, system, medium and electronic terminal | |
CN106371881B (en) | Method and system for updating program version in server | |
CN110598868A (en) | Machine learning model building method and device and related equipment | |
CN108829588B (en) | Processing method, deployment system and device for testing application program | |
US20210182174A1 (en) | System and method for application transformation to cloud based on semi-automated workflow | |
CN109800028A (en) | A kind of dispositions method and device of Web environment | |
CN108197034A (en) | A kind of application testing method, server and system | |
CN113687932A (en) | Task scheduling method, device and system, electronic equipment and storage medium | |
CN108375964B (en) | Conversational machine management method and device | |
CN115952198A (en) | Cloud cache database construction processing method and device based on finite-state machine | |
CN115237441A (en) | Upgrade test method, device and medium based on cloud platform | |
CN110071848B (en) | Method, apparatus and storage medium for automated test command line commands | |
CN114154526A (en) | Two-dimensional code processing method and system, storage medium and electronic equipment | |
CN115914055A (en) | Distributed network testing method, device, medium and equipment | |
CN112765038A (en) | Distributed cluster software testing method, device, equipment and storage medium | |
CN112667350A (en) | Configuration scheduling method, device and system | |
CN112416769A (en) | Automatic test method and system for simulating user operation in batches under cloud desktop scene | |
CN111338617A (en) | Method for centrally controlling linux by using xml and python | |
US20220164207A1 (en) | System for providing an adaptable plugin framework for application transformation to cloud | |
CN110971665A (en) | Management method, system, equipment and storage medium for interfacing multi-type storage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20191104 Address after: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing Applicant after: Seashell Housing (Beijing) Technology Co.,Ltd. Address before: 300 457 days Unit 5, Room 1, 112, Room 1, Office Building C, Nangang Industrial Zone, Binhai New Area Economic and Technological Development Zone, Tianjin Applicant before: BEIKE TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |