CN1332304C - Method for uniformly configuring configuration files - Google Patents

Method for uniformly configuring configuration files Download PDF

Info

Publication number
CN1332304C
CN1332304C CNB200410098821XA CN200410098821A CN1332304C CN 1332304 C CN1332304 C CN 1332304C CN B200410098821X A CNB200410098821X A CN B200410098821XA CN 200410098821 A CN200410098821 A CN 200410098821A CN 1332304 C CN1332304 C CN 1332304C
Authority
CN
China
Prior art keywords
configuration
configuration item
value
file
described step
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
CNB200410098821XA
Other languages
Chinese (zh)
Other versions
CN1790257A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB200410098821XA priority Critical patent/CN1332304C/en
Publication of CN1790257A publication Critical patent/CN1790257A/en
Application granted granted Critical
Publication of CN1332304C publication Critical patent/CN1332304C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for uniformly configuring configuration files. The method comprises the following procedures: uniform configuration files which are composed of configuration items of the configuration files are set in a system; additionally, the associated information of a configuration item which at least comprises a configuration item value of the uniform configuration files is displayed out through a configuration interface; the configuration item value of the provided configuration interface is configured; the system executes corresponding operation according to the configured configuration item value. The scheme of the present invention realizes the configuration for the configuration files through the configuration interface, and additionally does not need to switch to every catalog to open the configuration files in a manual way to modify the configuration files. The operation that users configure the configuration files is simplified, and the required time for the configuration is reduced, and therefore, the required time for the system installation is shortened. The customer satisfaction is enhanced. The present invention also realizes a check for the validity of the configuration information to ensure the validity of the configuration item value, and the accuracy of the configuration is enhanced.

Description

A kind of method that configuration file is unified to dispose
Technical field
The present invention relates to configuring technical, relate to a kind of method that configuration file is unified to dispose or rather configuration file in the system.
Background technology
Along with the development of software industry, the application under various systems becomes increasingly complex, and the user is also more and more higher to the requirement of these systems, and often hope can come the relevant configuration in the custom-built system according to the needs of oneself.Based on these characteristics, system need provide a large amount of configuration informations for the user, and the user then needs the bulk information in the configuration-system.
These systems comprise Unix system, linux system and other various operating systems.With the Unix system is example, uses for ease of the user, and the Unix system provides a large amount of configuration informations, and this has brought very big trouble with regard to the installation of giving system.This be because, configuration file in the Unix system is dispersed under the different catalogues, therefore when the Unix system is installed, needing the user to open different configuration files under the different catalogues is configured, under a lot of situation of configuration file in the Unix system, the user operates and obviously can bother very much.
In addition, present this allocation plan also has following shortcoming:
1, most users feel very difficulty and inconvenient to the operation of the order (VI) that opens file, carries out text maninulation under the Unix system, specifically, the VI operation is to carry out with the form of order line, the user need import VI and corresponding information, obviously this is cumbersome, and the VI operation is that configuration file is configured requisite operation, the inconvenience that this has also caused the user that configuration file is revised.
2, present allocation plan is undertaken by manual mode by the user, therefore be easy to occur the problem of certain several configuration item configuration error, and these configuration items do not have corresponding verification after configuration, make the user after mistake occurring owing to carelessness, can only find mistake by searching configuration item one by one, obviously this is difficult to wrong place, location.
3, the user must know the configuration item that will revise, and knows the residing catalogue of these configuration items, and the time that therefore often needs to spend than long is read the installation System Configuration Manual, nonetheless, also tends to omit some configuration item.
4, present configuration file can only provide a kind of configuration mode of language, and this has just limited and has used the configuration of the user of different language to configuration file.
After the system of installing, need make amendment to the configuration file in the system toward contact, there are the problems referred to above in this case equally.
Summary of the invention
In view of this, subject matter to be solved by this invention is to provide a kind of method that configuration file is unified to dispose, and with when realization is configured configuration file, does not need to search each configuration file.
For addressing the above problem, technical scheme of the present invention is achieved in that a kind of method that configuration file is unified to dispose, and this method may further comprise the steps:
A., the unified configuration file of being made up of the configuration item in the configuration file is set in system, and, the configuration item relevant information that comprises the configuration item value in the described unified configuration file is at least shown by configuration interface for configuration item is provided with check information;
B. the configuration item value in the configuration interface that step a is provided is configured;
C. system operates accordingly according to the configuration item value execution of passing through verification that step b is disposed.
Among the described step a, the configuration item relevant information that described unified configuration file provided further comprises: configuration key name, configuration item place configuration file and deposit the configuration item value in the configuration file of configuration item place write order;
Described step c comprises: system deposits set configuration item value the configuration file of configuration item place in by write order, and carries out corresponding operation according to the configuration file at configuration item place.
Among the described step a, the relevant information of described configuration item further comprises: the read command of reading configuration item currency in the configuration file;
Further comprise before the described step b: system reads the current configuration item value in the configuration file at configuration item place by read command, and shows by configuration interface.
Check information among the described step a further comprises: the data type of configuration item value and/or span;
Further comprise between described step b and the step c: system judges according to described data type and/or span whether described configuration is legal, if legal, then by verification, the operation of execution in step c; Otherwise, not by verification, the configuration item value of refusal input.
Described step a further comprises: be the configuration item default settings in the unified configuration file, and the configuration item value in the configuration interface is shown as described default value.
Described step a further comprises: for the configuration item in the unified configuration file is provided with default value;
Configuration item relevant information among the described step a further comprises: default value obtain order;
Described step b comprises: the configuration item value is obtained in the order of obtaining by default value, and with the configuration item value the obtained configuration item value as Set For Current.
Among the described step a, the relevant information of described configuration item further comprises: the display message of different language configuration interface;
Further comprise before the described step b: system shows corresponding configuration interface according to selected display message.
Among the described step a, the relevant information of described configuration item further comprises: the configuration item descriptive information of different language.
The relevant information of described configuration item further comprises: multimachine information;
Described step c further comprises: system is provided with according to self existing main frame trusting relationship configuration item to the pairing server of multimachine information.
This method may further include: system preserves the configuration item value after each configuration, and shows the configuration item value of being preserved in the time need being configured configuration item; Select one or more configuration item values as current configuration item value from the configuration item value of being preserved, system carries out corresponding operation according to described selection.
Described system is Unix system or linux system.
The present invention program is by being provided with the unified configuration file of being made up of the configuration item in the existing configuration file in system, and will unify that the relevant information of configuration item shows by configuration interface in the configuration file, make and directly to be configured configuration file by configuration interface, and need not open modes such as configuration file by manual mode under each catalogue and make amendment by switching to, simplified the operation of user's modification configuration file.
The present invention program has simplified greatly and has disposed the required time by gathering configuration item, has also just shortened the required time of installation system, has improved client's satisfaction.For the configuration item system with more, can reduce the setup time of half.
The present invention is data type and/or the span by being provided for the legitimacy verification also, and the system that makes can carry out the legitimacy verification to the information that is disposed, and has guaranteed the legitimacy of configuration item value, has guaranteed the correctness of using, and has also improved the accuracy of configuration.
Modification daily record before the present invention program can also preserve by system makes and can directly obtain modification information before, and certain modification information before can directly selecting is as present configuration information.
For the system with main frame trusting relationship, the present invention has realized multiple servers is configured a modification simultaneously also by multimachine information is set.
The set configuration item of the present invention can customize apace according to user's needs, and can dynamically increase, delete, revise, guaranteed configuration flexibility, and unified configuration file provided by the present invention can generate apace by the windows graphical interfaces.
In addition, the present invention program is the configuration interface that the system of Unix, Linux and so on provides, and also helps to improve the overall image of system product.
Description of drawings
Fig. 1 is realization flow figure of the present invention;
Fig. 2 is the menu interface based on a kind of man-machine interactive of the present invention program.
Embodiment
In the various systems that are provided with configuration file that the present invention program can be used for comprising Unix system, linux system, application in various systems is basic identical, therefore be example with the Unix system below, and reach specific embodiment in conjunction with the accompanying drawings, the present invention program is described in further detail.
The present invention program's main flow process as shown in Figure 1, corresponding following steps:
Step 101, the configuration item in all configuration files of the required configuration of user is incorporated in the configuration file, this configuration file is called unified configuration file, and unify the configuration file unification with the form of configuration interface by this and provide configuration item to the user.
Specifically, the pairing relevant information of the configuration item that step 101 provided comprises the configuration item value at least, so that the user carries out corresponding modification to this configuration item value.Also should comprise the configuration key name, so that the user need to determine the configuration item of modification by the configuration key name; And the configuration file at corresponding configuration item place is set, be called for short configuration item place file, so that system is saved in the configuration item information of revising in the file of configuration item place; In addition, corresponding write order name need be set also, system writes amended result in the file of configuration item place by this order.
For ini file the most frequently used in the Unix system, its write order can for: write_value_to_profile, for csh environmental variance configuration file, its write order can be write_cshrc.Write order can constantly expand according to the complicacy of configuration file.
In addition, in actual applications, the user configured configuration item of needs may be certain part in all configuration items, in this case, can adopt the merging mode in the step 101, and also promptly a configuration item that the user is required merges.Certainly, also can directly all configuration items in the system all be merged in the unified configuration file.
A kind of embodiment of the configuration interface that is provided in this step as shown in Figure 2.
Step 102, as required the configuration item that this configuration interface provided is made amendment.
By the configuration of in the above-mentioned steps 101 configuration item being done, the user can directly carry out corresponding modification according to the configuration item that this configuration interface provided.
Specifically, the user at first determines the configuration item that needs are revised according to the configuration key name, and the current information that needs to revise is input in this configuration interface.
Step 103, system carry out corresponding operation according to the modification that the user did.
After the user was by configuration interface input configuration item information, system determined this configuration item place file, and according to write order the information of importing is write this configuration file.Can operate accordingly according to the information and executing in this configuration file afterwards.
Can realize modification by above step to configuration item.
Certainly, can be configured configuration item more easily, can also do further to be provided with this configuration item for making the user.Below these settings of being done are described.
Can further read command be set for configuration item, system reads the currency of configuration item in configuration file according to this read command, and like this, the user can judge whether currency needs to revise, if currency user just is required, then the user just need not import this again and has been worth.For ini file the most frequently used in the Unix system, its read command can for: read_value_from_profile, for csh environmental variance configuration file, its read command can be read_cshrc.Read command is identical with write order, can constantly expand according to the complicacy of configuration file equally.
For the current data of revising are carried out verification, can also further corresponding check information be set for configuration item.Such as, corresponding data type is set, if the type of the data of current input and set data type are inconsistent, it is wrong to determine that then the user imports, and can point out current operation illegal, and refuse this modification.Wherein, set data type can be for character string (string), integer (int), IP address (ip) etc., if be set to ip, then strict ip validity checking can be done to the data of user's input by system.
Also can be that corresponding span is set, if the data of current input do not satisfy set span, it be wrong to determine equally that then the user imports, and point out current operation illegal, and refusal is revised.Wherein, set span can comprise enumeration type and span.
Certainly, more effective for making verification, can also be that corresponding data type and span are set simultaneously, like this, only when the data of current input satisfied data type and span simultaneously, system just accepted these data.
Because most of configuration items all have the default value of oneself, therefore can also be for configuration item is provided with the corresponding default value information, like this, system can directly be shown to the user with this default value.If the user admits this default value, just can revise and need not do other to configuration item more directly with the data of this default value as input.System then can carry out corresponding operation according to this configuration file afterwards with the configuration file of this default value by write order input configuration item correspondence.
Similar with default value, most of configuration items also have the default value of oneself, because a configuration item has a plurality of default values, therefore corresponding default value need be set obtains order.The user can pass through the corresponding default value of this command selection, and the default value that system then selectes the user writes the configuration file of configuration item correspondence by write order, carries out corresponding operation according to this configuration file more afterwards.
Can also be for configuration item be provided with corresponding language display type, and corresponding configuration item information is set, can both be provided with the data type easily so that grasp the user of various language.Such as, can Chinese and English display be set for configuration interface, if the user selects Chinese to show that then the information of Xian Shiing is Chinese.Similarly, Chinese and English explanation can also be set, so that the user can determine the effect of each configuration item more easily according to explanation, assisting users provides only configuration item value.
Above-mentionedly provided some and may need the configuration item information often used, in fact, other configuration item information can also be set as required.Such as, because configuration file has different types, some configuration file reads according to trifle, therefore can corresponding configuration item information be set at this situation.
In addition, system can also preserve all modifications of user to configuration file by revising daily record, and this modifications daily record can comprise information such as the title, configuration item value, modification time of each configuration item, can further include information such as modification reason certainly.Like this, when needing to revise configuration item afterwards, the corresponding information of journal displaying can be revised according to this by system at every turn, and certain modification before can the information in the configuration file being returned to according to user's requirement.
Also have, because system can have the main frame trusting relationship, therefore can multimachine information be set further in configuration item, like this, system just can make amendment to the corresponding configuration item in the pairing server of multimachine information according to self existing main frame trusting relationship.Wherein, can be that all configuration item is done to revise synchronously, as required, only can also define the synchronous processing that is modified for to the part configuration item.
The above only is the present invention program's preferred embodiment, not in order to limit protection scope of the present invention.

Claims (11)

1, a kind of method that configuration file is unified to dispose is characterized in that, this method may further comprise the steps:
A., the unified configuration file of being made up of the configuration item in the configuration file is set in system, and, the configuration item relevant information that comprises the configuration item value in the described unified configuration file is at least shown by configuration interface for configuration item is provided with check information;
B. the configuration item value in the configuration interface that step a is provided is configured;
C. system operates accordingly according to the configuration item value execution of passing through verification that step b is disposed.
2, method according to claim 1, it is characterized in that among the described step a, the configuration item relevant information that described unified configuration file provided further comprises: configuration key name, configuration item place configuration file and deposit the configuration item value in the configuration file of configuration item place write order;
Described step c comprises: system deposits set configuration item value the configuration file of configuration item place in by write order, and carries out corresponding operation according to the configuration file at configuration item place.
3, method according to claim 2 is characterized in that, among the described step a, the relevant information of described configuration item further comprises: the read command of reading configuration item currency in the configuration file;
Further comprise before the described step b: system reads the current configuration item value in the configuration file at configuration item place by read command, and shows by configuration interface.
4, method according to claim 1 is characterized in that, the check information among the described step a comprises: the data type of configuration item value and/or span;
Further comprise between described step b and the step c: system judges according to described data type and/or span whether described configuration is legal, if legal, then by verification, the operation of execution in step c; Otherwise, not by verification, the configuration item value of refusal input.
5, according to claim 1,2,3 or 4 described methods, it is characterized in that described step a further comprises: be the configuration item default settings in the unified configuration file, and the configuration item value in the configuration interface is shown as described default value.
6, according to claim 1,2,3 or 4 described methods, it is characterized in that described step a further comprises: for the configuration item in the unified configuration file is provided with default value;
Configuration item relevant information among the described step a further comprises: default value obtain order;
Described step b comprises: the configuration item value is obtained in the order of obtaining by default value, and with the configuration item value the obtained configuration item value as Set For Current.
7,, it is characterized in that among the described step a, the relevant information of described configuration item further comprises: the display message of different language configuration interface according to claim 1,2,3 or 4 described methods;
Further comprise before the described step b: system shows corresponding configuration interface according to selected display message.
8,, it is characterized in that among the described step a, the relevant information of described configuration item further comprises: the configuration item descriptive information of different language according to claim 1,2,3 or 4 described methods.
9, according to claim 1,2,3 or 4 described methods, it is characterized in that the relevant information of described configuration item further comprises: multimachine information;
Described step c further comprises: system is provided with according to self existing main frame trusting relationship configuration item to the pairing server of multimachine information.
10, according to claim 1,2,3 or 4 described methods, it is characterized in that this method further comprises: system preserves the configuration item value after each configuration, and shows the configuration item value of being preserved in the time need being configured configuration item; Select one or more configuration item values as current configuration item value from the configuration item value of being preserved, system carries out corresponding operation according to described selection.
11, method according to claim 1 is characterized in that, described system is Unix system or linux system.
CNB200410098821XA 2004-12-13 2004-12-13 Method for uniformly configuring configuration files Active CN1332304C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200410098821XA CN1332304C (en) 2004-12-13 2004-12-13 Method for uniformly configuring configuration files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200410098821XA CN1332304C (en) 2004-12-13 2004-12-13 Method for uniformly configuring configuration files

Publications (2)

Publication Number Publication Date
CN1790257A CN1790257A (en) 2006-06-21
CN1332304C true CN1332304C (en) 2007-08-15

Family

ID=36788153

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200410098821XA Active CN1332304C (en) 2004-12-13 2004-12-13 Method for uniformly configuring configuration files

Country Status (1)

Country Link
CN (1) CN1332304C (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901267A (en) * 2010-08-02 2010-12-01 中兴通讯股份有限公司 Method and device for managing configuration files
CN102467151B (en) * 2010-11-03 2016-01-20 北京普源精电科技有限公司 waveform output method and device
CN102122245A (en) * 2011-02-21 2011-07-13 北京沃泰丰通信技术有限公司 Method and system for generating configuration item setting interface
CN104346177A (en) * 2013-07-24 2015-02-11 杭州海康威视数字技术股份有限公司 Terminal configuration method and device
CN104951321A (en) * 2014-03-27 2015-09-30 宇龙计算机通信科技(深圳)有限公司 Method and device for modifying of system configuration
CN105446705B (en) 2014-06-30 2019-06-21 国际商业机器公司 Method and apparatus for determining the characteristic of configuration file
CN105630466A (en) * 2014-10-30 2016-06-01 阿里巴巴集团控股有限公司 Business control method and apparatus
CN105282243A (en) * 2015-09-28 2016-01-27 深圳市金立通信设备有限公司 File synchronization method and terminal
CN106528223A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Method and device for reading variable value
CN108255533B (en) * 2016-12-28 2021-12-17 平安科技(深圳)有限公司 System configuration changing method and device
CN108345459B (en) * 2017-01-22 2021-09-17 北京国双科技有限公司 Site deployment method and device
CN107748680B (en) * 2017-09-28 2021-03-16 努比亚技术有限公司 Kernel configuration method, terminal and computer readable storage medium
CN107682471B (en) * 2017-10-17 2021-06-29 新华三云计算技术有限公司 Method and device for adjusting network address
CN109413499A (en) * 2018-10-24 2019-03-01 深圳市康冠技术有限公司 Configuration method, system and the equipment of Android TV-set fixer
CN109471679A (en) * 2018-11-19 2019-03-15 郑州云海信息技术有限公司 The method that a kind of pair of PCIE exchange chip configuration file is configured
CN112685074A (en) * 2020-12-28 2021-04-20 紫光云技术有限公司 Method for visually modifying redis configuration based on rules

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5933646A (en) * 1996-05-10 1999-08-03 Apple Computer, Inc. Software manager for administration of a computer operating system
US6256635B1 (en) * 1998-05-08 2001-07-03 Apple Computer, Inc. Method and apparatus for configuring a computer using scripting
GB2388212A (en) * 2002-04-29 2003-11-05 Marconi Comm Ltd Improvements relating to software configuration management systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5933646A (en) * 1996-05-10 1999-08-03 Apple Computer, Inc. Software manager for administration of a computer operating system
US6256635B1 (en) * 1998-05-08 2001-07-03 Apple Computer, Inc. Method and apparatus for configuring a computer using scripting
GB2388212A (en) * 2002-04-29 2003-11-05 Marconi Comm Ltd Improvements relating to software configuration management systems

Also Published As

Publication number Publication date
CN1790257A (en) 2006-06-21

Similar Documents

Publication Publication Date Title
CN1332304C (en) Method for uniformly configuring configuration files
US8898285B2 (en) Service oriented architecture version and dependency control
US7310653B2 (en) Method, system, and product for maintaining software objects during database upgrade
US7113904B2 (en) System and method for providing dynamic multiple language support for application programs
US6269460B1 (en) Dynamic enhancement of error condition handling and displayed error messages in computer operations
US20080215867A1 (en) Method and system for automatically transitioning of configuration settings among computer systems
US6263347B1 (en) System for linking data between computer and portable remote terminal and data linking method therefor
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
CN108762743B (en) Data table operation code generation method and device
US20080082539A1 (en) Systems and methods for provisioning content from multiple sources to a computing device
US20150317042A1 (en) System and Methods for Loading an Application and its Modules in a Client Device
US8046757B2 (en) Method for installing ActiveX control
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
US7865821B2 (en) Electronic document update notification device and electronic document update notifying method
CN110020356A (en) A kind of code generating method of page module, apparatus and system
CN101147128A (en) Method to automate resource management in computer applications
AU2002253111B2 (en) Method, computer program product and article of manufacture for providing service-to-role assignment to launch application services in role-based computer system
AU2002253111A1 (en) Method, computer program product and article of manufacture for providing service-to-role assignment to launch application services in role-based computer system
CN105739717A (en) Information input method and device
JP2009205353A (en) User interface providing method, and device and program therefor
KR100798147B1 (en) System and method for automatically transmitting data of betweenframes using standard entries repository
CN101989197A (en) System for multiplexing web program permission and method for generating and accessing program
CN116360754A (en) Page generation method and device
US20060136523A1 (en) Program packing systems
KR20220001369A (en) Method and system for providing user-selected content in real time

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant