CN104298686B - The method and apparatus for modifying server profile - Google Patents

The method and apparatus for modifying server profile Download PDF

Info

Publication number
CN104298686B
CN104298686B CN201310303496.5A CN201310303496A CN104298686B CN 104298686 B CN104298686 B CN 104298686B CN 201310303496 A CN201310303496 A CN 201310303496A CN 104298686 B CN104298686 B CN 104298686B
Authority
CN
China
Prior art keywords
configuration
modification
packet
level
configuration packet
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.)
Active
Application number
CN201310303496.5A
Other languages
Chinese (zh)
Other versions
CN104298686A (en
Inventor
赵黎斌
黄明生
漆洪凯
陈忠湘
何志敏
闫二辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems 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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201310303496.5A priority Critical patent/CN104298686B/en
Publication of CN104298686A publication Critical patent/CN104298686A/en
Application granted granted Critical
Publication of CN104298686B publication Critical patent/CN104298686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • G06F16/337Profile generation, learning or modification

Abstract

The invention discloses a kind of method and apparatus for modifying server profile.The described method includes: the configuration file that reading service device is to be modified, and the configuration-direct in the configuration file is divided into multiple configuration packets;Show the corresponding modification interface of the configuration packet;The modification operational order in modification interface input is received, is modified according to the modification operational order to corresponding configuration packet, the modification operating result summarized;According to the modification operating result summarized, modified configuration file is generated.The method and apparatus of above-mentioned modification server profile can be improved reliability and ease for operation to server profile modification.

Description

The method and apparatus for modifying server profile
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and dress for modifying server profile It sets.
Background technique
Server profile is used in user login services device, environment required for loading for user and file.Clothes It is engaged in device configuration file may include the information such as procedural item, network connection, fictitious host computer.Server profile include one or More than one file all includes configuration-direct in every part of file.For example, " engine X " is a kind of in Nginx(Nginx High performance web server) in configuration file, contain server configuration-direct (server instruction) and hypertext transfer protocol Instruction (http instruction, wherein http is written as hypertext transport protocol, i.e. hypertext transfer protocol entirely) Deng, wherein server configuration-direct is related to for configuration server environment such as domain name, log etc., hypertext transfer protocol instruction Hyper text protocol instruction compression, hypertext transfer protocol response header type etc..Further, in server configuration-direct, Contain the regular positioning instruction (location instruction) of request and request rule overwriting instruction (rewrite instruction).Nginx configuration More parts of configuration subfiles can be loaded by load instruction (include instruction) in file.
It, can be to server profile when there is mistake in server profile or need to carry out service quality tuning It modifies.When the prior art modifies server profile, mode mainly has login service device directly to modify and online editing Modify the mode of configuration file.Wherein, login service device, which is directly modified, needs to log in each server and modifies, and user The number of servers faced is usually all tens to several hundred, time-consuming huge, it cannot be guaranteed that every server modification is consistent Property, and in modification, user is easily modified mistake in face of complicated configuration-direct, and the Reliability comparotive of configuration file modification is low; And the mode of online editing modification configuration file (including being uploaded after locally modified again), although guaranteeing Servers-all configuration file The consistency of modification, but user will not generally also change in face of complicated configuration-direct, error is easy, even if using later period school The mode test, remodified also results in process and increases, while needing the correct instruction name of additional queries and suggestion in modification Value etc..Therefore, the Reliability comparotive that modification mode in the prior art is modified is low, is easy error, and ease for operation is relatively low.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, a kind of method and apparatus for modifying server profile are provided, It can be improved the reliability and ease for operation to server profile modification.
A method of modification server profile, comprising:
Reading service device configuration file to be modified, and the configuration-direct in the configuration file is divided into multiple configurations Grouping;
Show the corresponding modification interface of the configuration packet;
The modification operational order in modification interface input is received, corresponding is matched according to the modification operational order It sets grouping to modify, the modification operating result summarized;
According to the modification operating result summarized, modified configuration file is generated.
The configuration-direct by configuration file is divided into multiple configuration packets and includes in one of the embodiments:
The sub- configuration file of global configuration instruction and configuration file load in configuration file is divided into first order configuration Grouping;
In first order configuration packet, inside is divided into the second level containing the configuration-direct of at least one configuration-direct and is matched Grouping is set, and the configuration-direct between the second level configuration packet is divided into second level configuration packet;
Each configuration-direct in the configuration packet of the second level is divided into third level configuration packet.
The corresponding modification interface of the display configuration packet includes: in one of the embodiments,
The corresponding modification interface of the configuration packet is shown in the form of web page input control.
It is described in one of the embodiments, to modify corresponding configuration packet including following at the modification interface At least one of:
The newly-built first order to the corresponding web page input control of third level configuration packet, the deletion first order to the third level is matched Set the corresponding web page input control of grouping, the adjustment first order to the corresponding web page input control of third level configuration packet Sequence, the attribute value for changing third level configuration packet in web page input control.
The modification operating result summarized includes: in one of the embodiments,
Sequence and the third level of the first order to the corresponding web page input control of third level configuration packet after record modification The corresponding attribute value of configuration packet.
The modification operating result summarized according in one of the embodiments, generates modified configuration text Part includes:
It is corresponding to third level configuration packet according to the first order after the modification recorded in the modification operating result summarized The sequence of web page input control determines after modification in configuration file the first order to the sequence of third level configuration packet;
According to the corresponding attribute value of third level configuration packet recorded in the modification operating result summarized, modification is generated The corresponding configuration-direct of third level configuration packet in configuration file afterwards.
A kind of device for modifying server profile, comprising:
Configuration file grouping module, the configuration file to be modified for reading service device, and will be in the configuration file Configuration-direct is divided into multiple configuration packets;
Interface display module, for showing the corresponding modification interface of the configuration packet;
Summarizing module is changed, for receiving the modification operational order in modification interface input, is grasped according to the modification It instructs and modifies to corresponding configuration packet, the modification operating result summarized;
Configuration file generation module, the modification operating result for summarizing according to, generates modified configuration file.
The configuration file grouping module is used to instruct the global configuration in configuration file in one of the embodiments, First order configuration packet is divided into the sub- configuration file of configuration file load;It, will be internal and in first order configuration packet Configuration-direct containing at least one configuration-direct is divided into second level configuration packet, and will be between the second level configuration packet Configuration-direct be divided into second level configuration packet;And each configuration-direct in the configuration packet of the second level is divided into Three-level configuration packet.
The interface display module in the form of web page input control for showing institute in one of the embodiments, State the corresponding modification interface of configuration packet.
The change summarizing module is used to receive user's repairing in the modification interface input in one of the embodiments, Change operational order, carry out following at least one modification at the modification interface: the newly-built first order is corresponding to third level configuration packet Web page input control;The first order is deleted to the corresponding web page input control of third level configuration packet;Adjust the first order To the sequence of the corresponding web page input control of third level configuration packet;Change third level configuration in web page input control The attribute value of grouping.
The change summarizing module is for the first order after record modification to third level configuration point in one of the embodiments, The sequence of the corresponding web page input control of group and the corresponding attribute value of third level configuration packet.
The configuration file generation module is used for the modification operating result summarized according in one of the embodiments, The first order is matched after determining modification to the sequence of the corresponding web page input control of third level configuration packet after the modification of middle record The sequence of the first order in file to third level configuration packet is set, and according to recorded in the modification operating result summarized The corresponding attribute value of three-level configuration packet, the corresponding configuration-direct of third level configuration packet in configuration file after generation modification.
The method and apparatus of above-mentioned modification server profile, by reading configuration file to be modified, by configuration text Configuration-direct in part is divided into multiple configuration packets, and shows the corresponding modification interface of the configuration packet to be modified, receives User is operated by the modification that input unit inputs, the modification operation knot summarized of modifying on interface to configuration packet Fruit, it is last that modified configuration file is generated according to the modification operating result summarized, compared with the prior art in, user needs face Edit-modify is carried out to complicated configuration-direct, improves the reliability and ease for operation of modification.
Detailed description of the invention
Fig. 1 is the flow diagram for the method that one of one embodiment modifies server profile;
Fig. 2 is the flow diagram that server profile is divided into multiple configuration packets in one embodiment;
Fig. 3 is the schematic diagram that Nginx configuration file is divided into multiple configuration packets in one embodiment;
Fig. 4 is the schematic diagram for dividing first order configuration packet in one embodiment in Nginx configuration file;
Fig. 5 is the process for dividing second level configuration packet in one embodiment in first order configuration packet in configuration file Schematic diagram;
Fig. 6 is the flow diagram that third level configuration packet in configuration file is modified in one embodiment;
Fig. 7 is the flow diagram of modification configuration packet sequence in one embodiment;
Fig. 8 is the flow diagram that modified configuration file is generated in one embodiment;
Fig. 9 is the flow diagram that modified configuration file is generated in another embodiment;
Figure 10 is a kind of structural block diagram for the device for modifying server profile in one embodiment;
Figure 11 is a kind of structural schematic diagram for the terminal for modifying server profile in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Fig. 1, a kind of method for modifying server profile is provided, process includes:
Step 102, reading service device configuration file to be modified, and the configuration-direct in configuration file is divided into multiple Configuration packet.
When server profile has mistake or needs quality tuning, need to repair server profile Change.The filename for the configuration file modified as needed reads the configuration file, patrols the configuration-direct in configuration file Separation is collected, the configuration-direct in configuration file is divided into multiple configuration packets.Relationship between multiple configuration packets can be Parallel relation is also possible to hierarchical relationship.When the subsequent configuration-direct in configuration file is modified, directly this can be matched It sets the configuration packet that instruction belongs to modify, such as the increasing to the configuration packet can be provided in the form of graphic interface Add/delete operation, sorting operation, prompt and syntactic verification etc..
Step 104, the corresponding modification interface of display configuration packet.
After configuration-direct in configuration file is carried out logical separation, after being divided into multiple configuration packets, it can provide and match The corresponding modification interface of grouping is set, is modified convenient for user.The modification interface shown can be closed according to the level of configuration packet System is shown in the form of multistage catalogue, selects the configuration packet to be modified further according to user, user institute is only shown on interface The graphic interface of the configuration packet of choosing.
In one embodiment, modification interface is to show that configuration packet is corresponding in the form of web page input control to repair Change interface.Web page input control includes the elements such as button, input text box, for creating or deleting configuration packet, Yi Jixiu Change the attribute value of configuration packet.To the sequence of configuration packet, there are the configuration file of dependence (such as Nginx configuration files), also The ordering relation between configuration packet can be changed by pulling web page input control.
Step 106, the modification operational order in the input of modification interface is received, corresponding is matched according to modification operational order It sets grouping to modify, the modification operating result summarized.
After modifying the configuration packet to be modified of showing interface user, it can receive user and repaired by what input unit inputted Change operational order.Input unit may include keyboard, mouse etc., can also modify and configure for user directly in the form of touch screen Grouping.Modification includes newly-built or deletes configuration packet, adjusts the sequence of configuration packet and change the attribute value of configuration packet.With After family has been modified, " submission " button on modification interface can be clicked, it will operate to obtain one according to the modification of user and summarize Modification operating result.In the modification operating result summarized, the ordering relation between configuration packet, and configuration can recorde It is grouped corresponding attribute value etc..
Step 108, according to the modification operating result summarized, modified configuration file is generated.
According to the ordering relation and configuration packet correspondence between the configuration packet recorded in the modification operating result summarized Attribute value, the sequencing and the numerical parameter in configuration-direct for determining the configuration-direct in modified configuration file Deng to generate modified configuration file.Modified configuration file can be realized by net distribution to multiple servers The online modification of multiple servers configuration file.
The method of above-mentioned modification server profile will be in configuration file by reading configuration file to be modified Configuration-direct is divided into multiple configuration packets, and shows the corresponding modification interface of the configuration packet to be modified, and it is logical to receive user The modification for crossing input unit input operates, the modification operating result summarized of modifying on interface to configuration packet, most Modified configuration file is generated according to the modification operating result that summarizes afterwards, compared with the prior art in, user needs in face of multiple Miscellaneous configuration-direct carries out edit-modify, improves the reliability and ease for operation of modification.
Referring to fig. 2, in one embodiment, include: by the process that configuration file is divided into multiple configuration packets
Step 202, the sub- configuration file by global configuration instruction and configuration file load in configuration file is divided into the Level-one configuration packet.
The sub- configuration file loaded in global configuration instruction and configuration file, will be complete since the range influenced when modification is larger Office's configuration-direct and the sub- configuration file of configuration file load are divided into first order configuration packet.For example, see Fig. 3, in Nginx In configuration file, global configuration instruction such as server configuration-direct (server instruction) and 302 parts, including user name are instructed (user www-data;), processor number instruct (worker_process1;), error log instruct (error_log/var/ log/nginx/error.log;) etc. be divided into first order configuration packet.Referring to fig. 4, referred in Nginx configuration file by load (include instruction) is enabled to load sub- configuration file, in Nginx configuration file, sub- configuration file load instruction, such as include Events.conf and include www.eg1.com.conf is divided into first order configuration packet.Above-mentioned two strip is matched simultaneously Setting file load instructs corresponding sub- configuration file 402 and sub- configuration file 404 to be also divided into first order configuration packet.? In Nginx configuration file, first order configuration packet can be named as configuration group.
Step 204, in first order configuration packet, inside is divided into containing the configuration-direct of at least one configuration-direct Second level configuration packet, and the configuration-direct between the configuration packet of the second level is divided into second level configuration packet.
After marking off first order configuration packet, inside first order configuration packet, it will refer to inside configuration-direct containing configuration Those of (such as including by way of double punctuates) configuration-direct is enabled to be divided into second level configuration-direct.The second level is matched simultaneously As soon as the configuration-direct set between grouping is also divided into a configuration packet, multiple companies thus are divided into inside first order configuration packet Continuous second level configuration packet.Referring to Fig. 3, by taking Nginx configuration file as an example, server configuration-direct (server instruction) is the Level-one configuration-direct contains the if instruction of 304 parts inside server configuration-direct, requests regular positioning instruction (location instruction) etc., these instructions contain at least one instruction in inside in the form of " { } ", thus by 304 parts If instruction and the regular positioning instruction of request are divided into second level configuration packet.Before 304 parts, instruction is listened to (listen80;) etc. instructions be also divided into an independent second level configuration packet.Second level configuration in Nginx configuration file Grouping can be named as configuration group.
Step 206, each configuration-direct in the configuration packet of the second level is divided into third level configuration packet.
In the configuration packet of the second level, each configuration-direct is divided into third level configuration packet.Referring to Fig. 3, such as 306 The instruction divided is divided into third level configuration packet.Third level configuration packet in Nginx configuration file is named as configuration item.
It is to divide configuration group (second level configuration packet) in the configuration group (first order configuration packet) of Nginx referring to Fig. 5 Flow diagram.Configuration group can be sub- configuration file or global configuration instruction.Here only by taking sub- configuration file as an example. In Nginx configuration file the ending of every configuration-direct with ";" terminate, after co mpiler optimization, every instruction occupies configuration text A line in part.The process of division configuration group includes: in configuration group
Step 502, sub- configuration file is loaded.
Step 504, a line configuration-direct is read.
Step 506, judge whether there is curly bracket " { } " or end line in the configuration-direct, if there is thening follow the steps 508 Generate new configuration group, it is no to then follow the steps 510 a line configuration-direct of reading is added in current configuration group.
Step 512 is executed after step 508 or step 510, judges whether is all configuration-directs in sub- configuration file Reading finishes, if executing step 504 there are also remaining rows and continuing to read remaining configuration-direct.If held without remaining rows Row step 514 saves all configuration groups generated.
In one embodiment, logical partitioning is carried out to the configuration-direct in configuration file, is divided into multiple configuration packets Afterwards, according to the configuration packet to be modified, the configuration packet that interface is accordingly loaded into corresponding level is modified.With web in the present embodiment The form of page input control shows the corresponding modification interface of configuration packet.Corresponding configuration packet is repaired at modification interface Change and comprise at least one of the following: the newly-built first order to the corresponding web page input control of third level configuration packet deletes the first order To the corresponding web page input control of third level configuration packet, the adjustment first order to the corresponding web page of third level configuration packet The sequence of input control, the attribute value for changing third level configuration packet in web page input control.
Referring to Fig. 6, for modifying in Nginx configuration file to configuration item (third level configuration packet).Configuration Item is the minimum unit of Nginx configuration file modification, is the basic operation for modifying Nginx configuration file.In the present embodiment, it uses The input unit that family is modified may include mouse, keyboard and touch screen etc..Modification configuration item process include:
Step 602, display relevant configuration item, configuration group are loaded into.
In Nginx configuration file, configuration item is the smallest modification unit, corresponds only to a configuration-direct.According to institute The configuration item to be modified shows configuration group belonging to the configuration item and configuration item on modification interface.Such as it can be by configuration item It resolves to key-value pair (key value to), key is the title of configuration item, and value is the attribute value of configuration item, and configuration item is shown Be shown as input control, the title of configuration item shown on the page, with text box form allow user's attribute value or with selection by Button allows user to select the attribute value suggested.
Step 604, cursor focus and input operation are monitored.
According to the difference of input unit, the cursor focus to be monitored can be user and be moved up by mouse at modification interface Dynamic mouse focus is also possible to user and moves the invisible focus that finger is formed on modification interface on the touchscreen, can also To be the focus etc. of infrared facility generation;Input operation includes keyboard input and touch screen input etc..The input selected with user For device is mouse and keyboard, whether monitoring mouse focus is located at input text box or select button region, and have The attribute value of the configuration item of keyboard input.If monitoring aforesaid operations, expression is modified configuration item.
Step 606, focus is obtained, display is currently configured the configuration prompt of item.
According to the position of focus, the page at modification interface provides the configuration prompt to configuration item, and configuration prompt can wrap Include the meaning of the configuration item, it is proposed that attribute value etc..
Step 608, it is operated according to input, updates the attribute value of configuration item.
(e.g. keyboard input) is operated according to the input monitored, updates the attribute value of configuration item, while can also benefit With Ajax(Ajax, Asynchronous Java Script and Extensible Markup Language, asynchronous java Script and extensible markup language) control shows the view of modified configuration file in new window.
Step 610, focus is lost, shows syntactic verification result.
The confirmation signal (such as by carriage return in lower keyboard) after the attribute value after configuration item change is inputted according to user, Configuration item modification terminates, and loses focus, and the page provides syntactic verification as a result, if error needs user to remodify.
Step 612, the confirmation signal that modification is completed is received.
Step 614, modified configuration item and configuration group are integrated, obtains modification operating result.
Referring to Fig. 7, in some configuration files, in Nginx configuration file, configuration file is to the successive suitable of configuration-direct There are dependences for sequence, therefore include the sequence to adjustment configuration packet to the modification of configuration file.In Nginx configuration file Adjustment configuration item or the process of configuration group include:
Step 702, current-configuration group or configuration item are shown.
According to the configuration group or configuration item to be modified, corresponding configuration group or configuration item are shown, according in configuration file The sequencing of configuration-direct generates the default sort of configuration group or configuration item.
After step 702, the input of input unit is monitored, step 704 or step 706 can be executed.
Step 704, the moving event to configuration group or configuration item is captured.
User is monitored by input unit (such as can be, but not limited to be mouse) to the configuration group or configuration item on interface The drag operation of web input control, when relatively moving between configuration group or configuration item, order of representation has been adjusted by a user.
Step 706, create or delete configuration group or configuration item.
Modification interface can provide the newly-built or delete operation to configuration group or configuration item in the form of button.
Step 708, it is executed after step 704 or step 706, updates configuration group or configuration item, recalculate sequence.
In one embodiment, after being modified according to the modification operational order of input to corresponding configuration packet, record Sequence and third level configuration packet of the first order to the corresponding web page input control of third level configuration packet are corresponding after modification Attribute value, as the modification operating result summarized.
Referring to Fig. 8, in one embodiment, according to the modification operating result summarized, modified configuration file packet is generated It includes:
Step 802, according to the first order after the modification recorded in the modification operating result summarized to third level configuration packet pair The sequence for the web page input control answered determines after modification in configuration file the first order to the sequence of third level configuration packet.
Web page input control after having recorded newly-built/delete operation and adjustment sequence in the modification operating result summarized The unique identification of part, the mark can be the title of configuration packet.Matched according to the determination of the mark of the web page input control of record Set the configuration packet in file with precedence relationship.
Step 804, it according to the corresponding attribute value of third level configuration packet recorded in the modification operating result summarized, generates The corresponding configuration-direct of third level configuration packet in configuration file after modification.
Attribute value after being changed according to configuration packet determines corresponding configuration-direct in the configuration packet.
For example, see Fig. 9, in one embodiment, modified Nginx configuration file is generated according to operating result is summarized Include:
Step 902, configuration filename is obtained.
According to the configuration filename recorded in operating result is summarized, a configuration file of the same name is created, to generate new configuration File replaces original file.
Step 904, it obtains and summarizes the configuration Groups List recorded in operating result, configuration file is added to according to its sequence In.
Step 906, the configuration items list in each configuration group is obtained, is once added to it according to its order corresponding In configuration group.
Step 908, the corresponding attribute value of each configuration item is obtained, and generates corresponding configuration-direct.
Step 910, newly-generated configuration file is saved.
In addition, equally using step 902 to the processing mode of step 910 for generating modified sub- configuration file.
Referring to Figure 10, in one embodiment, a kind of device for modifying server profile is provided.The device packet It includes:
Configuration file grouping module 1002, the configuration file to be modified for reading service device, and will be in configuration file Configuration-direct is divided into multiple configuration packets.
Interface display module 1004, for showing the corresponding modification interface of configuration packet.
Summarizing module 1006 is changed, for receiving the modification operational order in the input of modification interface, is referred to according to modification operation Order modifies to corresponding configuration packet, the modification operating result summarized.
Configuration file generation module 1008, for generating modified configuration file according to the modification operating result summarized.
In one embodiment, configuration file grouping module 1002 is used to that the global configuration in configuration file to be instructed and be matched The sub- configuration file for setting file load is divided into first order configuration packet;And in first order configuration packet, by inside containing extremely The configuration-direct of a few configuration-direct is divided into second level configuration packet, and by the configuration-direct between the configuration packet of the second level It is divided into second level configuration packet;And each configuration-direct in the configuration packet of the second level is divided into third level configuration point Group.
In one embodiment, interface display module 1004 is used to show in the form of web page input control to be modified The corresponding modification interface of configuration packet.
In one embodiment, change summarizing module 1006 is used to receive user and refers in the modification operation of modification interface input It enables, modifies and comprise at least one of the following at modification interface: the newly-built first order to the corresponding web page of third level configuration packet Input control;The first order is deleted to the corresponding web page input control of third level configuration packet;The adjustment first order to the third level is matched Set the sequence for being grouped corresponding web page input control;Change the attribute of third level configuration packet in web page input control Value.
In one embodiment, change summarizing module 1006 is for the first order after record modification to third level configuration packet pair The sequence for the web page input control answered and the corresponding attribute value of third level configuration packet.
In one embodiment, configuration file generation module 1008 is used to record in the modification operating result that basis summarizes The first order determines after modifying in configuration file to the sequence of the corresponding web page input control of third level configuration packet after modification The first order to third level configuration packet sequence, and according to the third level configuration packet recorded in the modification operating result summarized Corresponding attribute value, the corresponding configuration-direct of third level configuration packet in configuration file after generation modification.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The embodiment of the invention also provides the terminals of another modification server profile, as shown in figure 11, in order to just In explanation, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, please refers to implementation of the present invention Example method part.The terminal can be include mobile phone, tablet computer, PDA(Personal Digital Assistant, it is personal Digital assistants), POS(Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, be by mobile phone of terminal Example:
Figure 11 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 11, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input unit 1130, display unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, processor The components such as 1180 and power supply 1190.It will be understood by those skilled in the art that handset structure shown in Figure 11 is not constituted pair The restriction of mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
It is specifically introduced below with reference to each component parts of the Figure 11 to mobile phone:
RF circuit 1110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1180;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication. Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1120 can be used for storing software program and module, and processor 1180 is stored in memory by operation 1120 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1120 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1120 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1130 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1100 It sets and the related key signals of function control inputs.Specifically, input unit 1130 may include touch panel 1131 and other Input equipment 1132.Touch panel 1131, also referred to as touch screen, collect user on it or nearby touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 1131 or near touch panel 1131 Operation), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1131 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 1180, and can receive order that processor 1180 is sent and be executed.This Outside, touch panel 1131 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1131 is controlled, input unit 1130 can also include other input equipments 1132.Specifically, other input equipments 1132 can be with Including but not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. One of or it is a variety of.
Display unit 1140 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1140 may include display panel 1141, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1141.Further, touch panel 1131 can cover display panel 1141, when touch panel 1131 detects After arriving touch operation on it or nearby, processor 1180 is sent to determine the type of touch event, is followed by subsequent processing device 1180 provide corresponding visual output according to the type of touch event on display panel 1141.Although in Figure 11, touch surface Plate 1131 and display panel 1141 are the input and input function for realizing mobile phone as two independent components, but certain In embodiment, can be integrated by touch panel 1131 and display panel 1141 and that realizes mobile phone output and input function.
Mobile phone 1100 may also include at least one sensor 1150, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1141, and proximity sensor can close display when mobile phone is moved in one's ear Panel 1141 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three in all directions Axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that mobile phone can also configure, it is no longer superfluous herein It states.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1161, be converted by loudspeaker 1161 by circuit 1160 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit 1160 Audio data is converted to after reception, then by after the processing of audio data output processor 1180, through RF circuit 1110 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1120 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 11 is shown WiFi module 1170, but it is understood that, and it is not belonging to must be configured into for mobile phone 1100, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 1180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1120, and calls and be stored in memory 1120 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1180 may include one or more processing units;Preferably, processor 1180 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1180.
Mobile phone 1100 further includes the power supply 1190(such as battery powered to all parts), it is preferred that power supply can pass through Power-supply management system and processor 1180 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although being not shown, mobile phone 1100 can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 1180 included by the terminal is also with the following functions:
Reading service device configuration file to be modified, and the configuration-direct in configuration file is divided into multiple configurations point Group;Show the corresponding modification interface of the configuration packet;The modification operational order in the input of modification interface is received, is grasped according to modification It instructs and modifies to corresponding configuration packet, the modification operating result summarized;According to the modification operation knot summarized Fruit generates modified configuration file.
In one embodiment, processor 1180 included by the terminal is also with the following functions:
The sub- configuration file of global configuration instruction and configuration file load in configuration file is divided into first order configuration Grouping;In first order configuration packet, inside is divided into second level configuration containing the configuration-direct of at least one configuration-direct Grouping, and the configuration-direct between the second level configuration packet is divided into second level configuration packet;By second level configuration point Each configuration-direct in group is divided into third level configuration packet.
In one embodiment, processor 1180 included by the terminal is also with the following functions:
The corresponding modification interface of configuration packet to be modified is shown in the form of web page input control.
In one embodiment, processor 1180 included by the terminal is also with the following functions:
The newly-built first order to the corresponding web page input control of third level configuration packet, the deletion first order to the third level is matched Set the corresponding web page input control of grouping, the adjustment first order to the corresponding web page input control of third level configuration packet Sequence, the attribute value for changing third level configuration packet in web page input control.
In one embodiment, processor 1180 included by the terminal is also with the following functions:
Sequence and the third level of the first order to the corresponding web page input control of third level configuration packet after record modification The corresponding attribute value of configuration packet.
In one embodiment, processor 1180 included by the terminal is also with the following functions:
According to the first order after the modification recorded in the modification operating result summarized to the corresponding Web page of third level configuration packet The sequence of face input control determines after modification in configuration file the first order to the sequence of third level configuration packet;According to what is summarized The corresponding attribute value of third level configuration packet recorded in modification operating result generates third level configuration in configuration file after modifying It is grouped corresponding configuration-direct.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (14)

1. a kind of method for modifying server profile, comprising:
Reading service device configuration file to be modified, and the configuration-direct in the configuration file is divided into multiple configurations point Group;
Show the corresponding modification interface of the configuration packet;
The modification operational order in modification interface input is received, according to the modification operational order to corresponding configuration point Group is modified, the modification operating result summarized;
According to the modification operating result summarized, modified configuration file is generated;
The configuration-direct by configuration file is divided into multiple configuration packets: the global configuration in configuration file is referred to It enables and the sub- configuration file of configuration file load is divided into the first order configuration packet in the multiple configuration packet.
2. the method according to claim 1, wherein the configuration-direct by configuration file be divided into it is multiple Configuration packet includes:
In first order configuration packet, inside is divided into second level configuration point containing the configuration-direct of at least one configuration-direct Group, and the configuration-direct between the second level configuration packet is divided into second level configuration packet;
Each configuration-direct in the configuration packet of the second level is divided into third level configuration packet.
3. according to the method described in claim 2, it is characterized in that, the corresponding modification interface packet of the display configuration packet It includes:
The corresponding modification interface of the configuration packet is shown in the form of web page input control.
4. according to the method described in claim 3, it is characterized in that, it is described the modification interface to corresponding configuration packet into Row modification includes at least one of following:
The newly-built first order to the corresponding web page input control of third level configuration packet, the deletion first order to third level configuration is divided The row of the corresponding web page input control of group, the adjustment first order to the corresponding web page input control of third level configuration packet Sequence, the attribute value for changing third level configuration packet in web page input control.
5. according to the method described in claim 4, it is characterized in that, the modification operating result summarized includes:
Sequence and third level configuration of the first order to the corresponding web page input control of third level configuration packet after record modification It is grouped corresponding attribute value.
6. according to the method described in claim 5, it is characterized in that, the modification operating result summarized according to, generates Modified configuration file includes:
According to the first order after the modification recorded in the modification operating result summarized to the corresponding Web page of third level configuration packet The sequence of face input control determines after modification in configuration file the first order to the sequence of third level configuration packet;
According to the corresponding attribute value of third level configuration packet recorded in the modification operating result summarized, match after generating modification Set the corresponding configuration-direct of third level configuration packet in file.
7. a kind of device for modifying server profile, which is characterized in that described device includes:
Configuration file grouping module, the configuration file to be modified for reading service device, and by the configuration in the configuration file Instruction is divided into multiple configuration packets;
Interface display module, for showing the corresponding modification interface of the configuration packet;
Summarizing module is changed, for receiving the modification operational order in modification interface input, is referred to according to modification operation Order modifies to corresponding configuration packet, the modification operating result summarized;
Configuration file generation module, the modification operating result for summarizing according to, generates modified configuration file;
The configuration configuration file generation module is used for: by the son of global configuration instruction and configuration file load in configuration file Configuration file is divided into the first order configuration packet in the multiple configuration packet.
8. device according to claim 7, which is characterized in that the configuration file grouping module is used to configure in the first order In grouping, inside is divided into second level configuration packet containing the configuration-direct of at least one configuration-direct, and by described second Configuration-direct between grade configuration packet is divided into second level configuration packet;And each in the configuration packet of the second level is matched It sets instruction and is divided into third level configuration packet.
9. device according to claim 8, which is characterized in that the interface display module is used to be inputted with web page and be controlled The form of part shows the corresponding modification interface of the configuration packet.
10. device according to claim 9, which is characterized in that the change summarizing module is for receiving user described The modification operational order for modifying interface input carries out following at least one modification at the modification interface: creating the first order to the The corresponding web page input control of three-level configuration packet;The first order is deleted to the corresponding web page input of third level configuration packet Control;Adjust the sequence of the first order to the corresponding web page input control of third level configuration packet;In web page input control The middle attribute value for changing third level configuration packet.
11. device according to claim 10, which is characterized in that the change summarizing module is used for first after record modification Sequence and third level configuration packet corresponding attribute value of the grade to the corresponding web page input control of third level configuration packet.
12. device according to claim 11, which is characterized in that the configuration file generation module is used for according to the remittance After the modification recorded in total modification operating result the first order to the corresponding web page input control of third level configuration packet row Sequence determines after modification the sequence of the first order in configuration file to third level configuration packet, and is grasped according to the modification summarized Make the corresponding attribute value of third level configuration packet recorded in result, third level configuration packet pair in configuration file after generation modification The configuration-direct answered.
13. a kind of terminal, which is characterized in that including storage medium and processor, computer journey is stored in the storage medium Sequence, when the computer program is executed by the processor, so that the processor perform claim requires any one of 1 to 6 power Benefit requires the step of method of the modification server profile.
14. a kind of computer readable storage medium, which is characterized in that computer program is stored on the storage medium, it is described When computer program is executed by processor, so that the processor perform claim requires to repair described in any one of 1 to 6 claim The step of changing the method for server profile.
CN201310303496.5A 2013-07-18 2013-07-18 The method and apparatus for modifying server profile Active CN104298686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310303496.5A CN104298686B (en) 2013-07-18 2013-07-18 The method and apparatus for modifying server profile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310303496.5A CN104298686B (en) 2013-07-18 2013-07-18 The method and apparatus for modifying server profile

Publications (2)

Publication Number Publication Date
CN104298686A CN104298686A (en) 2015-01-21
CN104298686B true CN104298686B (en) 2019-09-17

Family

ID=52318414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310303496.5A Active CN104298686B (en) 2013-07-18 2013-07-18 The method and apparatus for modifying server profile

Country Status (1)

Country Link
CN (1) CN104298686B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341025B (en) * 2016-05-03 2021-09-03 北京京东尚科信息技术有限公司 Application updating method and device
CN106326411A (en) * 2016-08-23 2017-01-11 北京奇艺世纪科技有限公司 Configuration change method and device
CN106506559B (en) * 2016-12-29 2020-02-18 北京奇虎科技有限公司 Access behavior control method and device
CN110399185B (en) * 2018-04-24 2022-05-06 华为技术有限公司 Method, terminal and server for adjusting intelligent recommendation
CN109766139B (en) * 2018-12-13 2023-02-14 平安普惠企业管理有限公司 Configuration method and device of configuration file
CN109787957B (en) * 2018-12-13 2023-02-10 平安普惠企业管理有限公司 Configuration method of configuration file and related device
CN112486532B (en) * 2020-11-25 2024-04-09 中移(杭州)信息技术有限公司 Configuration file management method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859187A (en) * 2005-12-14 2006-11-08 华为技术有限公司 Method and system for centrally configurating terminal equipment
CN101005681A (en) * 2006-01-17 2007-07-25 大唐移动通信设备有限公司 Interface automatic forming method and interface automatic forming system
CN101977121A (en) * 2010-10-25 2011-02-16 中兴通讯股份有限公司 Configuration file processing method, device and system
CN102103491A (en) * 2009-12-18 2011-06-22 Tcl集团股份有限公司 System and method for generating interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859187A (en) * 2005-12-14 2006-11-08 华为技术有限公司 Method and system for centrally configurating terminal equipment
CN101005681A (en) * 2006-01-17 2007-07-25 大唐移动通信设备有限公司 Interface automatic forming method and interface automatic forming system
CN102103491A (en) * 2009-12-18 2011-06-22 Tcl集团股份有限公司 System and method for generating interface
CN101977121A (en) * 2010-10-25 2011-02-16 中兴通讯股份有限公司 Configuration file processing method, device and system

Also Published As

Publication number Publication date
CN104298686A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104298686B (en) The method and apparatus for modifying server profile
CN106775637B (en) Page display method and device for application program
CN104850434B (en) Multimedia resource method for down loading and device
CN108846087A (en) A kind of page rendering method, apparatus, terminal and server
CN103702297B (en) Short message enhancement, apparatus and system
CN107329985B (en) Page collection method and device and mobile terminal
CN103617165A (en) Picture loading method, device and terminal
CN104104711B (en) Reading histories treating method and apparatus
CN103501485B (en) Push the method, apparatus and terminal device of application
CN112148579B (en) User interface testing method and device
CN108153778A (en) Webpage store method, webpage read method and device
CN103678502B (en) Information collection method and device
CN109309696A (en) Portfolios method, sender, recipient and storage medium
CN107357725A (en) Application testing method and device
CN105955739A (en) Graphical interface processing method, apparatus and system
CN106227566A (en) Application program download control method, device and terminal unit in application shop
CN106951492A (en) File search method, device and electronic equipment
CN107291326A (en) Icon processing method and terminal
CN103310007A (en) Method, device and equipment for switching webpage
CN104424203B (en) Photo in mobile device shares state inspection method and system
CN104063400A (en) Data search method and data search device
CN106155888A (en) The detection method of webpage loading performance and device in a kind of Mobile solution
CN103455601A (en) Webpage processing method and device, and terminal equipment
CN108268232A (en) A kind of image display method, device, system and storage medium
CN104166652B (en) Browse information synchronization method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant