CN104298686A - Method and device for modifying server configuration file - Google Patents

Method and device for modifying server configuration file Download PDF

Info

Publication number
CN104298686A
CN104298686A CN201310303496.5A CN201310303496A CN104298686A CN 104298686 A CN104298686 A CN 104298686A CN 201310303496 A CN201310303496 A CN 201310303496A CN 104298686 A CN104298686 A CN 104298686A
Authority
CN
China
Prior art keywords
configuration
packet
configuration packet
level
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310303496.5A
Other languages
Chinese (zh)
Other versions
CN104298686B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and device for modifying a server configuration file. The method includes the steps that the configuration file to be modified of a server is read, and configuration instructions in the configuration file are divided into multiple configuration groups; modifying interfaces corresponding to the configuration groups are displayed; modifying operation instructions input into the modifying interfaces are received, the corresponding groups are modified according to the modifying operation instructions, and a collected modifying operation result is obtained; the modified configuration file is generated according to the collected modifying operation result. According to the method and device for modifying the server configuration file, the reliability and the easy operability of modification of the server configuration file can be improved.

Description

The method and apparatus of amendment server profile
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and apparatus revising server profile.
Background technology
Server profile is used for when user login services device, for user loads required environment and file.The information such as procedural item, network connection, fictitious host computer can be comprised in server profile.Server profile comprises one or more than one file, all includes configuration-direct in every part of file.Such as, at Nginx(Nginx, " engine X ", a kind of high performance web server) in configuration file, contain server configuration-direct (server instruction) and HTTP instruction (http instruction, wherein, http is written as hypertext transport protocol entirely, i.e. HTTP) etc., wherein, server configuration-direct is used for configuration server environment as domain name, daily record etc., and HTTP instruction relates to hyper text protocol instruction compression, HTTP response header type etc.Further, in server configuration-direct, contain the regular positioning instruction of request (location instruction) and request rule overwriting instruction (rewrite instruction).Load instructions (include instruction) can be passed through in Nginx configuration file and load many parts of configuration son files.
When there is mistake in server profile or when needing to carry out service quality tuning, can modifying to server profile.During prior art amendment server profile, mode mainly contains logon server and directly revises the mode with online editing amendment configuration file.Wherein, logon server is directly revised and is needed to log in each station server and modify, and the number of servers faced by user be usually all tens to hundreds of platform, consuming time huge, the consistance that every station server is revised can not be ensured, and when revising, configuration-direct complicated faced by user easily revises mistake, the Reliability comparotive of configuration file amendment is low; And the mode of online editing amendment configuration file (uploading again after comprising local amendment), although ensure the consistance of Servers-all configuration file amendment, but user is in the face of complicated configuration-direct, usually also can not change, easily make mistakes, even if the mode adopt later stage verification, remodifying, also can cause flow process to increase, the instruction name needing additional queries correct when revising and recommended value etc. simultaneously.Therefore, the Reliability comparotive of alter mode amendment of the prior art is low, easily make mistakes, and ease for operation is lower.
Summary of the invention
Based on this, be necessary for above-mentioned technical matters, a kind of method and apparatus revising server profile is provided, the reliability to server profile amendment and ease for operation can be improved.
Revise a method for server profile, comprising:
Read the configuration file that server is to be modified, and the configuration-direct in described configuration file is divided into multiple configuration packet;
Show the amendment interface that described configuration packet is corresponding;
Be received in the retouching operation instruction of described amendment interface input, according to described retouching operation instruction, corresponding configuration packet modified, obtain the retouching operation result gathered;
According to the described retouching operation result gathered, generate amended configuration file.
Wherein in an embodiment, describedly configuration-direct in configuration file be divided into multiple configuration packet comprise:
The sub-configuration file that global configuration instruction in configuration file and configuration file load is divided into first order configuration packet;
In first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into second level configuration packet, and the configuration-direct between the configuration packet of the described second level 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.
Wherein in an embodiment, amendment interface corresponding to the described configuration packet of described display comprises:
Amendment interface corresponding to described configuration packet is shown with the form of web page input control.
Wherein in an embodiment, described modifying in the configuration packet of described amendment interface to correspondence comprises following middle at least one:
The newly-built first order to web page input control corresponding to third level configuration packet, delete the first order to web page input control corresponding to third level configuration packet, the adjustment first order to web page input control corresponding to third level configuration packet sequence, in web page input control, change the property value of third level configuration packet.
Wherein in an embodiment, described in the retouching operation result that obtains gathering comprise:
After record modification, the first order is to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet.
Wherein in an embodiment, the retouching operation result gathered described in described basis, generates amended configuration file and comprises:
According to the first order after the amendment of recording in the described retouching operation result gathered to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet;
The property value corresponding according to the third level configuration packet recorded in the described retouching operation result gathered, generates the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
Revise a device for server profile, comprising:
Configuration file grouping module, for reading server configuration file to be modified, and is divided into multiple configuration packet by the configuration-direct in described configuration file;
Interface display module, for showing amendment interface corresponding to described configuration packet;
Change summarizing module, for being received in the retouching operation instruction of described amendment interface input, according to described retouching operation instruction, corresponding configuration packet being modified, obtaining the retouching operation result gathered;
Configuration file generation module, for the retouching operation result gathered described in basis, generates amended configuration file.
Wherein in an embodiment, the sub-configuration file that described configuration file grouping module is used for the global configuration instruction in configuration file and configuration file load is divided into first order configuration packet; And in first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into second level configuration packet, and the configuration-direct between the configuration packet of the described second level 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 packet.
Wherein in an embodiment, described interface display module is used for showing amendment interface corresponding to described configuration packet with the form of web page input control.
Wherein in an embodiment, the retouching operation instruction that described change summarizing module inputs at described amendment interface for receiving user, carries out following at least one amendment at described amendment interface: the newly-built first order is to web page input control corresponding to third level configuration packet; Delete the first order to web page input control corresponding to third level configuration packet; The adjustment first order is to the sequence of web page input control corresponding to third level configuration packet; The property value of third level configuration packet is changed in web page input control.
Wherein in an embodiment, described change summarizing module is used for the first order after record modification to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet.
Wherein in an embodiment, described configuration file generation module be used for according to described in after the amendment of recording in the retouching operation result that gathers the first order to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet, and the property value corresponding according to the third level configuration packet recorded in the described retouching operation result gathered, generate the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
The method and apparatus of above-mentioned amendment server profile, by reading configuration file to be modified, configuration-direct in configuration file is divided into multiple configuration packet, and show amendment interface corresponding to the configuration packet that will revise, receive the retouching operation that user is inputted by input media, to modify the retouching operation result obtaining gathering to configuration packet in interface, the retouching operation result that last basis gathers generates amended configuration file, compared in prior art, user needs in the face of complicated configuration-direct carries out edit-modify, improve reliability and the ease for operation of amendment.
Accompanying drawing explanation
Fig. 1 is a kind of schematic flow sheet revising the method for server profile in an embodiment;
Fig. 2 is the schematic flow sheet in an embodiment, server profile being divided into multiple configuration packet;
Fig. 3 is the schematic diagram in an embodiment, Nginx configuration file being divided into multiple configuration packet;
Fig. 4 is the schematic diagram dividing first order configuration packet in an embodiment in Nginx configuration file;
Fig. 5 is the schematic flow sheet dividing second level configuration packet in an embodiment in configuration file in first order configuration packet;
Fig. 6 is the schematic flow sheet revising third level configuration packet in configuration file in an embodiment;
Fig. 7 is the schematic flow sheet revising configuration packet sequence in an embodiment;
Fig. 8 is the schematic flow sheet generating amended configuration file in an embodiment;
Fig. 9 is the schematic flow sheet generating amended configuration file in another embodiment;
Figure 10 is a kind of structured flowchart revising the device of server profile in an embodiment;
Figure 11 is a kind of structural representation revising the terminal of server profile in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
See Fig. 1, provide a kind of method revising server profile, its flow process comprises:
Step 102, reads the configuration file that server is to be modified, and the configuration-direct in configuration file is divided into multiple configuration packet.
When server profile exists mistake or needs quality tuning, need to modify to server profile.The filename of the configuration file revised as required, reads this configuration file, carries out logical separation to the configuration-direct in configuration file, and the configuration-direct in configuration file is divided into multiple configuration packet.Relation between multiple configuration packet can be parallel relation, also can be hierarchical relationship.It is follow-up when configuration-direct in configuration file is modified, can directly modify to the configuration packet that this configuration-direct belongs to, such as can provide increase/deletion action to this configuration packet, sorting operation, prompting and syntactic verification etc. with the form of graphic interface.
Step 104, the amendment interface that display configuration packet is corresponding.
After configuration-direct in configuration file is carried out logical separation, after being divided into multiple configuration packet, the amendment interface that configuration packet is corresponding can be provided, be convenient to user's amendment.The amendment interface shown, can according to the hierarchical relationship of configuration packet, shows with the form of multistage catalogue, then selects the configuration packet that will revise according to user, and interface is only shown the graphic interface of user-selected configuration packet.
In one embodiment, revising interface is with amendment interface corresponding to the form of web page input control display configuration packet.Web page input control comprises the element such as button, input text frame, for newly-built or deletion configuration packet, and the property value of amendment configuration packet.To the configuration file (as Nginx configuration file) of the order Existence dependency relationship of configuration packet, ordering relation between configuration packet can also be changed by pulling web page input control.
Step 106, is received in the retouching operation instruction of amendment interface input, modifies, obtain the retouching operation result gathered according to retouching operation instruction to corresponding configuration packet.
After the configuration packet that amendment showing interface user will revise, the retouching operation instruction that user is inputted by input media can be received.Input media can comprise keyboard, mouse etc., also directly can revise configuration packet with the form of touch-screen for user.Amendment comprises newly-built or deletes configuration packet, the sequence of adjustment configuration packet and the property value of change configuration packet.After user has revised, " submission " button on amendment interface can be clicked, a retouching operation result gathered will be obtained according to the retouching operation of user.In the retouching operation result gathered, can ordering relation between recording configuration grouping, and the property value etc. that configuration packet is corresponding.
Step 108, according to the retouching operation result gathered, generates amended configuration file.
According to the ordering relation between the configuration packet recorded in the retouching operation result gathered, and the property value that configuration packet is corresponding, determine the numerical parameter etc. in the sequencing of the configuration-direct in amended configuration file and configuration-direct, thus generate amended configuration file.Amended configuration file by net distribution to multiple servers, can realize the online modification of multiple servers configuration file.
The method of above-mentioned amendment server profile, by reading configuration file to be modified, configuration-direct in configuration file is divided into multiple configuration packet, and show amendment interface corresponding to the configuration packet that will revise, receive the retouching operation that user is inputted by input media, to modify the retouching operation result obtaining gathering to configuration packet in interface, the retouching operation result that last basis gathers generates amended configuration file, compared in prior art, user needs in the face of complicated configuration-direct carries out edit-modify, improve reliability and the ease for operation of amendment.
See Fig. 2, in one embodiment, flow process configuration file being divided into multiple configuration packet comprises:
Step 202, is divided into first order configuration packet by the sub-configuration file that the global configuration instruction in configuration file and configuration file load.
The sub-configuration file loaded in global configuration instruction and configuration file is comparatively large due to the scope of impact during amendment, and the sub-configuration file that global configuration instruction and configuration file load is divided into first order configuration packet.For example, see Fig. 3, in Nginx configuration file, global configuration instruction, as server configuration-direct (server instruction) and 302 parts, comprises user name instruction (user www-data; ), processor number instruction (worker_process1; ), error log instruction (error_log/var/log/nginx/error.log; ) etc. be divided into first order configuration packet.See Fig. 4, carrier configuration file is added by load instructions (include instruction) in Nginx configuration file, in Nginx configuration file, sub-configuration file load instructions, as include events.conf and include www.eg1.com.conf is divided into first order configuration packet.The sub-configuration file 402 that above-mentioned two strip configuration file load instructions are corresponding simultaneously and sub-configuration file 404 are also divided into first order configuration packet.In Nginx configuration file, first order configuration packet can called after configuration group.
Step 204, in first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into 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, inner in first order configuration packet, configuration-direct inside those configuration-directs containing configuration-direct (such as being comprised by the mode of two punctuate) are divided into second level configuration-direct.Configuration-direct between the configuration packet of the second level is also divided into a configuration packet, first order configuration packet inside is just divided into multiple continuous print second level configuration packet thus simultaneously.See Fig. 3, for Nginx configuration file, server configuration-direct (server instruction) is first order configuration-direct, contain the if instruction of 304 parts in server configuration-direct inside, ask regular positioning instruction (location instruction) etc., these instructions contain at least one instruction with the form of " { } " in inside, thus by the if instruction of 304 parts and ask regular positioning instruction to be divided into second level configuration packet.Before 304 parts, intercept instruction (listen80; ) etc. instruction be also divided into an independently second level configuration packet.Second level configuration packet in Nginx configuration file can called after configuration group.
Step 206, is divided into third level configuration packet by each configuration-direct in the configuration packet of the second level.
In the configuration packet of the second level, each configuration-direct is divided into third level configuration packet.See Fig. 3, the instruction as 306 parts is divided into third level configuration packet.Third level configuration packet called after configuration item in Nginx configuration file.
See Fig. 5, it is the schematic flow sheet dividing configuration group (second level configuration packet) in the configuration group (first order configuration packet) of Nginx.Configuration group can be sub-configuration file or global configuration instruction.Here only for sub-configuration file.In Nginx configuration file every bar configuration-direct ending with "; " terminate, after co mpiler optimization, every bar instruction occupies a line in configuration file.The flow process dividing configuration group in configuration group comprises:
Step 502, adds carrier configuration file.
Step 504, reads a line configuration-direct.
Step 506, judges whether have curly bracket " { } " or end line in this configuration-direct, if had, perform step 508 and generate new configuration group, otherwise a line configuration-direct of reading is added in current configuration group by execution step 510.
After step 508 or step 510, perform step 512, judge whether all configuration-directs in sub-configuration file read complete, if also have remaining rows, perform step 504 and continue to read remaining configuration-direct.If there is no remaining rows, then perform step 514, preserve all configuration groups generated.
In one embodiment, carry out logical partitioning to the configuration-direct in configuration file, after being divided into multiple configuration packet, according to the configuration packet that will revise, amendment interface phase should be loaded into the configuration packet of corresponding level.With the amendment interface that the form of web page input control display configuration packet is corresponding in the present embodiment.Modify in the amendment configuration packet of interface to correspondence and comprise following at least one: the newly-built first order to web page input control corresponding to third level configuration packet, delete the first order to web page input control corresponding to third level configuration packet, the adjustment first order to web page input control corresponding to third level configuration packet sequence, in web page input control, change the property value of third level configuration packet.
See Fig. 6, to modify to configuration item (third level configuration packet) in Nginx configuration file.Configuration item is the least unit of Nginx configuration file amendment, is the basic operation of amendment Nginx configuration file.In the present embodiment, the input media that user modifies can comprise mouse, keyboard and touch-screen etc.The flow process of amendment configuration item comprises:
Step 602, is loaded into display relevant configuration item, configuration group.
In Nginx configuration file, configuration item is minimum amendment unit, only corresponds to a configuration-direct.According to the configuration item that will revise, amendment interface shows the configuration group belonging to this configuration item and configuration item.Such as configuration item can be resolved to key-value pair (key value to), key is the title of configuration item, value is the property value of configuration item, configuration item is shown as input control, the page shows the title of configuration item, allows user's attribute value or allow user select the property value of suggestion with select button with text box form.
Step 604, monitoring cursor focus and input operation.
According to the difference of input media, the cursor focus monitored can be the mouse focus of user by mouse movement on amendment interface, also can be user's moveable finger invisible focus of being formed on amendment interface on the touchscreen, also can be the focus etc. that infrared facility generates; Input operation comprises input through keyboard and touch-screen input etc.The input media selected for user is mouse and keyboard, and whether monitoring mouse focus is positioned at input text frame or select button region, and whether has the property value of configuration item of input through keyboard.If monitor aforesaid operations, represent and configuration item is revised.
Step 606, obtains focus, shows the configuration prompt of current configuration item.
According to the position of focus, provide the configuration prompt to configuration item at the page at amendment interface, configuration prompt can comprise the implication of this configuration item, suggestion property value etc.
Step 608, according to input operation, the property value of Reconfigurations item.
According to the input operation monitored (being such as input through keyboard), the property value of Reconfigurations item, also Ajax(Ajax can be utilized simultaneously, Asynchronous Java Script and Extensible Markup Language, asynchronous java script and extend markup language) view of the configuration file of control after new window display update.
Step 610, loses focus, display grammer check results.
According to the confirmation signal (such as pressing the carriage return in lower keyboard) after the property value after the change of user's input configuration item, the amendment of this configuration item terminates, and lose focus, the page provides syntactic verification result, needs user to remodify if make mistakes.
Step 612, receives the confirmation signal revised.
Step 614, integrates amended configuration item and configuration group, obtains retouching operation result.
See Fig. 7, in some configuration files, as in Nginx configuration file, configuration file, to the sequencing Existence dependency relationship of configuration-direct, therefore comprises the sequence to adjustment configuration packet to the amendment of configuration file.The flow process adjusting configuration item or configuration group in Nginx configuration file comprises:
Step 702, shows current configuration group or configuration item.
According to the configuration group that will revise or configuration item, the configuration group that display is corresponding or configuration item, according to the sequencing of configuration-direct in configuration file, generate the default sort of configuration group or configuration item.
After step 702, the input of monitoring input media, can perform step 704 or step 706.
Step 704, catches the moving event to configuration group or configuration item.
Supervisory user is by the drag operation of input media (such as can be, but not limited to be mouse) to the configuration group on interface or configuration item web input control, and between configuration group or configuration item, relative movement occurs, order of representation is adjusted by user.
Step 706, newly-built or delete configuration group or configuration item.
Amendment interface can provide newly-built or deletion action to configuration group or configuration item with the form of button.
Step 708, perform after step 704 or step 706, Reconfigurations group or configuration item, recalculate sequence.
In one embodiment, after modifying according to the configuration packet of retouching operation instruction to correspondence of input, after record modification, the first order is to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet, as the retouching operation result gathered.
See Fig. 8, in one embodiment, according to the retouching operation result gathered, generate amended configuration file and comprise:
Step 802, according to the first order after the amendment of recording in the retouching operation result gathered to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet.
Have recorded the unique identification of the web page input control after newly-built/deletion action and adjustment sequence in the retouching operation result gathered, this mark can be the title of configuration packet.Mark according to the web page input control of record determines the configuration packet in configuration file with precedence relationship.
Step 804, the property value corresponding according to the third level configuration packet recorded in the retouching operation result gathered, generates the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
Property value after changing according to configuration packet, determines configuration-direct corresponding in this configuration packet.
For example, see Fig. 9, in one embodiment, generate amended Nginx configuration file comprise according to gathering operating result:
Step 902, obtains configuration filename.
According to gathering the configuration filename recorded in operating result, a newly-built configuration file of the same name, replaces original file to generate new configuration file.
Step 904, obtains and gathers the configuration Groups List recorded in operating result, add in configuration file according to its sequence.
Step 906, obtains the configuration items list in each configuration group, it is once added in corresponding configuration group according to its order.
Step 908, obtains the property value that each configuration item is corresponding, and generates corresponding configuration-direct.
Step 910, preserves newly-generated configuration file.
In addition, adopt step 902 to the processing mode of step 910 equally for the amended sub-configuration file of generation.
See Figure 10, in one embodiment, a kind of device revising server profile is provided.This device comprises:
Configuration file grouping module 1002, for reading server configuration file to be modified, and is divided into multiple configuration packet by the configuration-direct in configuration file.
Interface display module 1004, for showing amendment interface corresponding to configuration packet.
Change summarizing module 1006, for being received in the retouching operation instruction of amendment interface input, according to retouching operation instruction, corresponding configuration packet being modified, obtaining the retouching operation result gathered.
Configuration file generation module 1008, for according to the retouching operation result gathered, generates amended configuration file.
In one embodiment, configuration file grouping module 1002 is divided into first order configuration packet for the sub-configuration file global configuration instruction in configuration file and configuration file loaded; And in first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into second level configuration packet, and the configuration-direct between the configuration packet of the second level 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 packet.
In one embodiment, interface display module 1004 is for showing amendment interface corresponding to configuration packet to be modified with the form of web page input control.
In one embodiment, changing summarizing module 1006 for receiving the retouching operation instruction of user in the input of amendment interface, modifying comprise following at least one at amendment interface: the newly-built first order is to web page input control corresponding to third level configuration packet; Delete the first order to web page input control corresponding to third level configuration packet; The adjustment first order is to the sequence of web page input control corresponding to third level configuration packet; The property value of third level configuration packet is changed in web page input control.
In one embodiment, summarizing module 1006 is changed for the first order after record modification to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet.
In one embodiment, configuration file generation module 1008 for according to the first order after the amendment of recording in the retouching operation result that gathers to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet, and the property value corresponding according to the third level configuration packet recorded in the retouching operation result gathered, generate the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
The embodiment of the present invention additionally provides the terminal of another kind of amendment server profile, and as shown in figure 11, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to embodiment of the present invention method part.This terminal can for comprising mobile phone, panel computer, PDA(Personal Digital Assistant, personal digital assistant), POS(Point of Sales, point-of-sale terminal), the terminal device arbitrarily such as vehicle-mounted computer, take terminal as mobile phone be example:
Shown in Figure 11 is the block diagram of the part-structure of the mobile phone relevant to the terminal that the embodiment of the present invention provides.With reference to Figure 11, mobile phone comprises: radio frequency (Radio Frequency, RF) parts such as circuit 1110, storer 1120, input block 1130, display unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, processor 1180 and power supply 1190.It will be understood by those skilled in the art that the handset structure shown in Figure 11 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Figure 11 each component parts to mobile phone:
RF circuit 1110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 1180; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global 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 (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc.
Storer 1120 can be used for storing software program and module, and processor 1180 is stored in software program and the module of storer 1120 by running, thus performs various function application and the data processing of mobile phone.Storer 1120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, storer 1120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 1130 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 1100 and function controls the input of relevant key signals.Particularly, input block 1130 can comprise contact panel 1131 and other input equipments 1132.Contact panel 1131, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 1131 or near contact panel 1131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 1131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 1180, and the order that energy receiving processor 1180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 1131.Except contact panel 1131, input block 1130 can also comprise other input equipments 1132.Particularly, other input equipments 1132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 1140 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 1140 can comprise display panel 1141, optionally, the form such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) can be adopted to configure display panel 1141.Further, contact panel 1131 can cover display panel 1141, when contact panel 1131 detects thereon or after neighbouring touch operation, send processor 1180 to determine the type of touch event, on display panel 1141, provide corresponding vision to export with preprocessor 1180 according to the type of touch event.Although in fig. 11, contact panel 1131 and display panel 1141 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 1131 and display panel 1141 and realize the input and output function of mobile phone.
Mobile phone 1100 also can comprise at least one sensor 1150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 1141, proximity transducer when mobile phone moves in one's ear, can cut out display panel 1141 and/or backlight.As the one of motion sensor; accelerometer sensor can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the audio interface between user and mobile phone.Voicefrequency circuit 1160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 1161, by loudspeaker 1161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, voice data is converted to after being received by voicefrequency circuit 1160, after again voice data output processor 1180 being processed, through RF circuit 1110 to send to such as another mobile phone, or export voice data to storer 1120 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 1170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Figure 11 shows WiFi module 1170, be understandable that, it does not belong to must forming of mobile phone 1100, can omit in the scope of essence not changing invention as required completely.
Processor 1180 is control centers of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 1120 and/or module is stored in by running or performing, and call the data be stored in storer 1120, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 1180 can comprise one or more processing unit; Preferably, processor 1180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 1180.
Mobile phone 1100 also comprises the power supply 1190(such as battery of powering to all parts), preferably, power supply can be connected with processor 1180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 1100 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the processor 1180 included by this terminal also has following functions:
Read the configuration file that server is to be modified, and the configuration-direct in configuration file is divided into multiple configuration packet; Show the amendment interface that described configuration packet is corresponding; Be received in the retouching operation instruction of amendment interface input, according to retouching operation instruction, corresponding configuration packet modified, obtain the retouching operation result gathered; According to the retouching operation result gathered, generate amended configuration file.
In one embodiment, the processor 1180 included by this terminal also has following functions:
The sub-configuration file that global configuration instruction in configuration file and configuration file load is divided into first order configuration packet; In first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into second level configuration packet, and the configuration-direct between the configuration packet of the described second level 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.
In one embodiment, the processor 1180 included by this terminal also has following functions:
Amendment interface corresponding to configuration packet to be modified is shown with the form of web page input control.
In one embodiment, the processor 1180 included by this terminal also has following functions:
The newly-built first order to web page input control corresponding to third level configuration packet, delete the first order to web page input control corresponding to third level configuration packet, the adjustment first order to web page input control corresponding to third level configuration packet sequence, in web page input control, change the property value of third level configuration packet.
In one embodiment, the processor 1180 included by this terminal also has following functions:
After record modification, the first order is to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet.
In one embodiment, the processor 1180 included by this terminal also has following functions:
According to the first order after the amendment of recording in the retouching operation result gathered to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet; The property value corresponding according to the third level configuration packet recorded in the retouching operation result gathered, generates the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (12)

1. revise a method for server profile, comprising:
Read the configuration file that server is to be modified, and the configuration-direct in described configuration file is divided into multiple configuration packet;
Show the amendment interface that described configuration packet is corresponding;
Be received in the retouching operation instruction of described amendment interface input, according to described retouching operation instruction, corresponding configuration packet modified, obtain the retouching operation result gathered;
According to the described retouching operation result gathered, generate amended configuration file.
2. method according to claim 1, is characterized in that, describedly configuration-direct in configuration file is divided into multiple configuration packet comprises:
The sub-configuration file that global configuration instruction in configuration file and configuration file load is divided into first order configuration packet;
In first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into second level configuration packet, and the configuration-direct between the configuration packet of the described second level 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. method according to claim 2, is characterized in that, amendment interface corresponding to the described configuration packet of described display comprises:
Amendment interface corresponding to described configuration packet is shown with the form of web page input control.
4. method according to claim 3, is characterized in that, described modifying in the configuration packet of described amendment interface to correspondence comprises following middle at least one:
The newly-built first order to web page input control corresponding to third level configuration packet, delete the first order to web page input control corresponding to third level configuration packet, the adjustment first order to web page input control corresponding to third level configuration packet sequence, in web page input control, change the property value of third level configuration packet.
5. method according to claim 4, is characterized in that, described in the retouching operation result that obtains gathering comprise:
After record modification, the first order is to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet.
6. method according to claim 5, is characterized in that, the retouching operation result gathered described in described basis, generates amended configuration file and comprises:
According to the first order after the amendment of recording in the described retouching operation result gathered to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet;
The property value corresponding according to the third level configuration packet recorded in the described retouching operation result gathered, generates the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
7. revise a device for server profile, it is characterized in that, described device comprises:
Configuration file grouping module, for reading server configuration file to be modified, and is divided into multiple configuration packet by the configuration-direct in described configuration file;
Interface display module, for showing amendment interface corresponding to described configuration packet;
Change summarizing module, for being received in the retouching operation instruction of described amendment interface input, according to described retouching operation instruction, corresponding configuration packet being modified, obtaining the retouching operation result gathered;
Configuration file generation module, for the retouching operation result gathered described in basis, generates amended configuration file.
8. device according to claim 7, is characterized in that, the sub-configuration file that described configuration file grouping module is used for the global configuration instruction in configuration file and configuration file load is divided into first order configuration packet; And in first order configuration packet, configuration-direct inside being contained at least one configuration-direct is divided into second level configuration packet, and the configuration-direct between the configuration packet of the described second level 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 packet.
9. method according to claim 8, is characterized in that, described interface display module is used for showing amendment interface corresponding to described configuration packet with the form of web page input control.
10. device according to claim 9, it is characterized in that, the retouching operation instruction that described change summarizing module inputs at described amendment interface for receiving user, carries out following at least one amendment at described amendment interface: the newly-built first order is to web page input control corresponding to third level configuration packet; Delete the first order to web page input control corresponding to third level configuration packet; The adjustment first order is to the sequence of web page input control corresponding to third level configuration packet; The property value of third level configuration packet is changed in web page input control.
11. devices according to claim 10, is characterized in that, described change summarizing module is used for the first order after record modification to the sequence of web page input control corresponding to third level configuration packet and property value corresponding to third level configuration packet.
12. devices according to claim 11, it is characterized in that, described configuration file generation module be used for according to described in after the amendment of recording in the retouching operation result that gathers the first order to the sequence of web page input control corresponding to third level configuration packet, to determine to revise in rear configuration file the first order to the sequence of third level configuration packet, and the property value corresponding according to the third level configuration packet recorded in the described retouching operation result gathered, generate the configuration-direct that in the rear configuration file of amendment, third level configuration packet is corresponding.
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 true CN104298686A (en) 2015-01-21
CN104298686B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326411A (en) * 2016-08-23 2017-01-11 北京奇艺世纪科技有限公司 Configuration change method and device
CN106506559A (en) * 2016-12-29 2017-03-15 北京奇虎科技有限公司 Access Behavior- Based control method and device
CN107341025A (en) * 2016-05-03 2017-11-10 北京京东尚科信息技术有限公司 Using update method and device
CN109766139A (en) * 2018-12-13 2019-05-17 平安普惠企业管理有限公司 The configuration method and device of configuration file
CN109787957A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 The configuration method and relevant apparatus of configuration file
WO2019206010A1 (en) * 2018-04-24 2019-10-31 华为技术有限公司 Method for adjusting intelligent recommendation, terminal, and server
CN112486532A (en) * 2020-11-25 2021-03-12 中移(杭州)信息技术有限公司 Method and device for managing configuration file, 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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341025A (en) * 2016-05-03 2017-11-10 北京京东尚科信息技术有限公司 Using update method and device
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
CN106506559A (en) * 2016-12-29 2017-03-15 北京奇虎科技有限公司 Access Behavior- Based control method and device
US11442751B2 (en) 2018-04-24 2022-09-13 Huawei Technologies Co., Ltd. Method for adjusting intelligent recommendation, terminal, and server
WO2019206010A1 (en) * 2018-04-24 2019-10-31 华为技术有限公司 Method for adjusting intelligent recommendation, terminal, and server
CN109787957A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 The configuration method and relevant apparatus of configuration file
CN109766139A (en) * 2018-12-13 2019-05-17 平安普惠企业管理有限公司 The configuration method and device of configuration file
CN109787957B (en) * 2018-12-13 2023-02-10 平安普惠企业管理有限公司 Configuration method of configuration file and related device
CN109766139B (en) * 2018-12-13 2023-02-14 平安普惠企业管理有限公司 Configuration method and device of configuration file
CN112486532A (en) * 2020-11-25 2021-03-12 中移(杭州)信息技术有限公司 Method and device for managing configuration file, electronic equipment and storage medium
CN112486532B (en) * 2020-11-25 2024-04-09 中移(杭州)信息技术有限公司 Configuration file management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104298686B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN106970790B (en) Application program creating method, related equipment and system
CN104298686B (en) The method and apparatus for modifying server profile
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN107329985B (en) Page collection method and device and mobile terminal
CN105975170B (en) A kind of method and device of page load
CN104104711B (en) Reading histories treating method and apparatus
CN103488403A (en) Switching method and device for interface layout and mobile terminal
CN103617165A (en) Picture loading method, device and terminal
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN108241703B (en) Webpage data transmission method and device
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN103544056B (en) Method, device and the terminal device of control task speed
CN109309696A (en) Portfolios method, sender, recipient and storage medium
CN103699595A (en) Method and device for webpage caching of terminal browser and terminal
CN104252356A (en) Interface generating method and system
CN108153778A (en) Webpage store method, webpage read method and device
CN104216915A (en) Webpage processing method, device and terminal equipment
CN104133752B (en) The method for supervising of operating platform and device
CN104516886A (en) Method, mobile terminal and server for displaying data analysis result
CN104182429A (en) Web page processing method and terminal
CN111580815A (en) Editing method of page elements and related equipment
CN103310007A (en) Method, device and equipment for switching webpage
CN104063400A (en) Data search method and data search device
CN103617164A (en) Webpage prefetching method, device and terminal equipment
CN103455601A (en) Webpage processing method and device, and terminal equipment

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