CN107861751A - The amending method and device of configuration file - Google Patents
The amending method and device of configuration file Download PDFInfo
- Publication number
- CN107861751A CN107861751A CN201711172517.9A CN201711172517A CN107861751A CN 107861751 A CN107861751 A CN 107861751A CN 201711172517 A CN201711172517 A CN 201711172517A CN 107861751 A CN107861751 A CN 107861751A
- Authority
- CN
- China
- Prior art keywords
- file
- configuration
- modification
- configuration file
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of amending method of configuration file and device, is related to technical field of data processing, and main purpose is the modification function of in the case of without prejudice to System Security Policy, realizing configuration file and invented.The method of the present invention includes:When the modification for receiving configuration file instructs, the first file to be modified corresponding to the instruction is determined, first file is the configuration file of system;Obtain the second file corresponding to first file;Instructed according to the modification of the configuration file, second file is modified.The present invention is used for the modification of configuration file.
Description
Technical field
The present invention relates to the amending method and device of technical field of data processing, more particularly to a kind of configuration file.
Background technology
With the continuous development of technology, intelligent terminal is progressively popularized.In existing intelligent terminal, it is typically stored with and is
System two kinds of files of file and subscriber data file.When user uses intelligent terminal, the original configuration that system be present does not meet use
The operating habit at family or the situation of needs, and in line with service user, facilitate the principle of user, the supply commercial city of usual intelligent terminal
Configuration of the user to system can be supported to carry out appropriate modification to meet the needs of user.
At present, generally all it is that the configuration file in the system is entered when the system configuration to intelligent terminal is modified
The corresponding modification of row, however, in actual applications, its configuration file and system are former after the modification due to the configuration file to system
Some configuration files are different.Thus, when system need upgrading when, the security strategy based on system, when system configuration file not
Meanwhile system can not be upgraded.So there have been such a case, if user repaiies to the configuration file of system
Change, then it, which have modified the system of configuration file, can not just carry out follow-up upgrading and renewal.Therefore, how without prejudice to safe plan
In the case of slightly, the function that the configuration to system is modified can be realized, becomes urgent problem to be solved in domain.
The content of the invention
In view of the above problems, the present invention provides a kind of amending method and device of configuration file, and main purpose is not disobey
In the case of carrying on the back System Security Policy, the modification function to CONFIG.SYS is realized.
In order to solve the above technical problems, in a first aspect, the invention provides a kind of amending method of configuration file, this method
Including:
When the modification for receiving configuration file instructs, the first file to be modified corresponding to the instruction is determined, it is described
First file is the configuration file of system;
Obtain the second file corresponding to first file;
Instructed according to the modification of the configuration file, second file is modified.
Optionally, before the second file corresponding to acquisition first file, methods described also includes:
According to the first file, the second file corresponding to structure in systems;
It is that first file and the second file are established and pointed to according to first file and the corresponding relation of the second file
Relation.
Optionally, the second file corresponding to acquisition first file includes:
According to first file and the points relationship of second file, the second text corresponding to first file is obtained
Part.
Optionally, methods described also includes;
When system configuration is upgraded, first file is loaded;
The first file of loading is upgraded by upgrading tool.
Second aspect, present invention also offers a kind of modification device of configuration file, the device includes:
Determining unit, for when the modification for receiving configuration file instructs, determining to be modified corresponding to the instruction
First file, first file are the configuration file of system;
Acquiring unit, the second file corresponding to the first file determined for obtaining the determining unit;
Unit is changed, for being instructed according to the modification of the configuration file, to the second text acquired in the acquiring unit
Part is modified.
Optionally, described device also includes:
Construction unit, for according to the first file, the second file corresponding to structure in systems;
Establish unit, for according to first file and the construction unit structure the second file corresponding relation,
Points relationship is established for first file and the second file.
Optionally, the acquiring unit includes:
Determining module, for the points relationship according to first file and second file, obtain first text
Second file corresponding to part.
Optionally, described device also includes;
Loading unit, for when system configuration is upgraded, being loaded to first file;
Upgrade unit, for being upgraded by upgrading tool to the first file that the loading unit loads.
Above-mentioned purpose is realized, according to the third aspect of the invention we, there is provided a kind of storage medium, the storage medium bag
The program of storage is included, wherein, equipment where the storage medium is controlled when described program is run performs configuration described above
The amending method of file.
To achieve these goals, according to the fourth aspect of the invention, there is provided a kind of processor, the processor are used for
Operation program, wherein, described program performs the amending method of configuration file described above when running.
By above-mentioned technical proposal, the amending method and device of configuration file provided by the invention, exist for prior art
When being modified to the configuration file of system, its system is caused to influence asking for the follow-up upgrading of system and renewal because of security strategy
Topic, the present invention after determining the first file to be modified, obtain described first when system configuration needs to modify
Second file corresponding to file, and instructed according to the modification of the configuration file, directly the first file is not modified, but
Second file is modified, and by the second file and the corresponding relation of the first file, it is achieved thereby that to the first text
Part is the modification function of configuration file, and compared to prior art, the present invention is carried out by the relation of the first file and the second file
Modification, can reach the modification effect of CONFIG.SYS, and then ensure that the modification function to system configuration.Meanwhile pass through
Second file corresponding to being determined according to the first file, and then the second file is modified, solve repairing because of configuration file
The problem of changing and causing system not upgrade, so as to avoid when need change system configuration when influence follow-up system upgrading,
More news.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of amending method flow chart of configuration file provided in an embodiment of the present invention;
Fig. 2 shows the amending method flow chart of another configuration file provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition frame chart of the modification device of configuration file provided in an embodiment of the present invention;
Fig. 4 shows the composition frame chart of the modification device of another configuration file provided in an embodiment of the present invention;
Embodiment
The exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although the present invention is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are to be able to be best understood from the present invention, and can be by the scope of the present invention
Completely it is communicated to those skilled in the art.
In order to realize the modification function to configuration file, the embodiments of the invention provide a kind of modification side of configuration file
Method, applied to client, as shown in figure 1, this method includes:
101st, when the modification for receiving configuration file instructs, the first file to be modified corresponding to the instruction is determined.
Under normal circumstances, when user uses intelligent terminal, based on different operating habit and demand, it is sometimes desirable to being
The configuration of system carries out the modification of adaptability, therefore, it is necessary to system configuration is modified according to different needs.When being matched somebody with somebody
During the modification put, typically realized by modifying to the configuration file of system.Although however, different intelligent terminal
The system of carrying is not quite similar, but system is when being upgraded and being updated, and is to need to verify the system by configuration file
Whether distorted, therefore by wooden horse, virus or Malware, configuration file is modified when by existing technology
Afterwards, based on security strategy, the system is caused to carry out follow-up upgrading and renewal.Thus, for these reasons, the present invention is real
Apply in example, after have received the modification of configuration file, it may be determined that current system configuration needs to modify, therefore
The file of modification, i.e., the first file described in the embodiment of the present invention needed for being determined first in numerous files of system.
In the embodiment of the present invention, first file can be understood as needing the configuration file modified.
Wherein, when it is determined that needing the configuration file changed, can be determined according to prior art, here, choosing
Determination mode do not limit herein, can be chosen according to actual demand.In addition, the configuration described in the embodiment of the present invention
The modification instruction of file can be user in need to carry out to be assigned during configuration file modification or user according to difference
Behavior need, it is default in systems, specifically, not limiting herein, can in the light of actual conditions determine.
102nd, the second file corresponding to first file is obtained.
, can be according between the first file and the second file when having determined that the first file to be modified in step 101
Corresponding relation come the second file corresponding to determining.Wherein, described the second file can be understood as in embodiments of the present invention
The respective file of corresponding relation with CONFIG.SYS be present.
Because the second file and the first file have corresponding relation, therefore can be realized according to the corresponding relation to configuration
The acquisition of the respective file of file.Specifically, during second file is obtained, can the acquisition side based on prior art
Formula is carried out, for example, can be searched by configuration file corresponding table, and by the respective file of the configuration file found
Obtained.Certainly, specific acquisition modes can be chosen as the case may be, not do specific restriction herein.
103rd, instructed according to the modification of the configuration file, second file is modified.
Due to corresponding relation be present between the first file and the second file, after the second file is got, before being based on
The modification that the modification instruction of configuration file received in step 101 is adapted to is stated, to realize the modification to configuration file
Effect.Meanwhile after the second file modification, when the loading that system is configured, second file can be loaded directly into, this
Sample, the configuration can of system obtain amended system configuration according to amended second file.Specifically, modification mode and
Content can all be chosen according to concrete condition during practical application, not limit herein.
In addition, when user needs to modify to multiple system configurations in system, can also be implemented according to the present invention
Method described in example, successively modifies the second file corresponding to different multiple first files, to realize to the more of system
It is individual to configure the effect modified.
The amending method of configuration file provided in an embodiment of the present invention, enter for prior art in the configuration file to system
During row modification, the problem of causing its system to influence the follow-up upgrading and renewal of system because of security strategy, the present invention is when receiving
When modification to configuration file instructs and determines that system configuration needs to modify, by determine the first file to be modified it
Afterwards, the second file corresponding to first file is obtained, and is instructed according to the modification of the configuration file, not directly to the first text
Part is modified, but second file is modified, and by the second file and the corresponding relation of the first file, so that
Realize the modification function to the i.e. configuration file of the first file.Meanwhile pass through the second text corresponding to being determined according to the first file
Part, and then the second file is modified, solve the problems, such as to cause system not upgrade because of the modification of configuration file, so as to
Avoid influences the upgrading of follow-up system, more news when needing to change system configuration.
Further, additionally provide another kind as the refinement and extension to embodiment illustrated in fig. 1, the embodiment of the present invention and match somebody with somebody
The amending method of file is put, as shown in Fig. 2 its specific steps includes:
201st, according to the first file, the second file corresponding to structure in systems.
In embodiments of the present invention, the description of described the first file, the second file all with 101-103 in previous embodiment
In description it is consistent, this is no longer going to repeat them.
Because in the embodiment of the present invention, the first described file is actually the configuration file of system, therefore, for reality
Now without prejudice on the premise of security strategy, the modification to configuration file in this step can be first according to configuration file come structure
Build corresponding respective file, i.e., the second file described in this step.Due to the second file be according to constructed by the first file, because
This, the second file includes the full content of the first file, and has and identical file during the first file of loading in system loads
Function.Therefore, the method according to this step, corresponding second file is built by the first file, ensure that resulting
Respective file and original configuration file identical file function, and then for follow-up configuration file modification result it is accurate
Property, lay the foundation.
202nd, it is that first file and the second file are established according to first file and the corresponding relation of the second file
Points relationship.
After constructing the second file in step 201, because corresponding relation be present in the second file and the first file, therefore,
The points relationship of the two can be established according to this corresponding relation in this step, wherein, the finger described in the embodiment of the present invention
To relation it is to be understood that when system needs loading configuration file, system can be made to be loaded directly into matching somebody with somebody according to the points relationship
The respective file of file is put, i.e. system can be loaded directly into the second file when loading the first file according to points relationship.
Wherein, the points relationship of first file and the second file can be by being stored in system in the form of relation table
In, specifically, the points relationship by other means or can also be stored in other positions, do not do specific restriction herein,
It can be chosen according to being actually needed.
Thus, by establishing points relationship between the first file and the second file, it can be ensured that when system is configured
During the loading of file, can directly according to corresponding to the points relationship loading configuration file respective file, so as to ensure that configuration text
The accuracy of part loading procedure, can be according to corresponding to loading the points relationship to be follow-up after the first file is modifiable by the user
Second file, it ensure that the realization of the modification function of follow-up system configuration.
203rd, when the modification for receiving configuration file instructs, the first file to be modified corresponding to the instruction is determined.
Because the embodiment of the present invention is in order to realize the modification to CONFIG.SYS, therefore, when receiving configuration file
Modification instruction when, it may be determined that current system configuration needs to modify, and then, can determine to work as according to being actually needed
Corresponding first file during preceding configuration modification.Wherein, the modification instruction of the volume configuration file described in the embodiment of the present invention can be with
To be user assigned when needing and changing configuration file or user is default in systems, does not limit herein, can
Determined according to being actually needed, it should be understood that, when receiving the modification instruction of configuration file, it is to be ensured that the instruction can
Identified by system, reported an error with avoiding the occurrence of.Specifically, it is determined that during the first file, system configuration and configuration text can be passed through
The relation table of part is determined.Certainly determine that the mode of the first file includes but are not limited to above-mentioned determination mode, herein
Specific restriction is not done, specific prior art can be chosen according to being actually needed to carry out.
It should be noted that the method described in this step can be carried out after step 202, naturally it is also possible in step
Carry out before 201, can specifically be determined according to being actually needed.For example, work as the configuration file progress needed to multiple systems
When modification either needs the number changed more, can first carry out step 201 and 202 then carry out again after operation, and work as
When the quantity or less number of the configuration file of required modification, due to need not be modified to multiple configuration files, therefore
Step 201 and 202 can be performed again according to after the first file to be modified is determined every time.
By the method described in this step, when system configuration is modified, it is determined that corresponding first file to be modified,
And then the modification to system configuration is realized from the configuration file aspect of system, it is ensured that follow-up system configuration modification result
It is accurate fixed.
204th, the second file corresponding to first file is obtained.
, can be according to the points relationship after the points relationship that step 202 establishes between the first file and the second file
To realize the acquisition to the second file corresponding to the first file, specifically, this step can be:According to first file and institute
The points relationship of the second file is stated, the second file to be modified is determined by first file to be modified, and obtained.
Wherein, the mode of acquisition can be chosen according to the needs of actual conditions, not limit herein.
Here, by the points relationship between the first file and the second file come obtain the first file it is corresponding second text
Part, it can be ensured that when the configuration file of system needs modification, corresponding corresponding text can be got by the points relationship
Part, the accuracy of the respective file of acquisition is ensured that, and then ensure that the configuration described in the embodiment of the present invention on the whole
The accuracy of the modification result of file.
205th, instructed according to the modification of the configuration file, second file is modified.
Because the method described in the embodiment of the present invention is in order to realize the modification to configuration file, therefore, in this step
In, can be according to being received in abovementioned steps when the second file of corresponding first file has been got in abovementioned steps 204 after
The modification instruction of configuration file, the second file is modified, to realize the modification function to configuration file.When follow-up system exists
When carrying out the loading of system configuration, second file, i.e., amended respective file, so as to reach modification system can be loaded directly into
The effect under unified central planning put.Therefore, by the first file and the corresponding relation of the second file, the configuration file of system script is enough ensured simultaneously
In the case of changing, it is possible to achieve the modification function to system configuration.
206th, when system configuration is upgraded, first file is loaded.
After step 205 is modified, when system configuration needs to be upgraded or updated, institute can be loaded directly into
The configuration file of the first file, i.e. system is stated, because the method described in the embodiment of the present invention is to second corresponding to the first file
File is modified to realize the effect of modification system configuration, and therefore, in embodiments of the present invention, first file is system
Configuration file actually do not change and change, thus, the first file of loading is still the original configuration file of system.
Modifications and variations occur is only the respective file corresponding to configuration file, thus, in the situation of the security strategy based on system
Under, the system still is able to be upgraded and updated.
207th, the first file of loading is upgraded by upgrading tool.
After step 206 is loaded with the first file, first file can be upgraded according to the upgrading tool of system
Operation, due to the configuration file of system, i.e. the first file does not change, therefore the escalation process of the system configuration meets and is
The inspection for security strategy of uniting, and then corresponding updating operation can be carried out.Therefore, in embodiments of the present invention, first text
Part is that the configuration file of system does not actually change and changed, and the first file that system is loaded in escalation process is still
For the original configuration file of system.But respective file is changed, thus, implementing described method according to the present invention can
In the case where not influenceing the security strategy of system, while realization have modified system configuration function, system also retains
Upgrading and more New function.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the present invention additionally provides a kind of configuration file
Modification device, for being realized to the method shown in above-mentioned Fig. 1.The device embodiment is corresponding with preceding method embodiment,
For ease of reading, present apparatus embodiment is no longer repeated the detail content in preceding method embodiment one by one, but it should bright
Really, the device in the present embodiment can correspond to the full content realized in preceding method embodiment.As shown in figure 3, the device bag
Include:Determining unit 31, acquiring unit 32 and modification unit 33, wherein
Determining unit 31, it can be used for, when the modification for receiving configuration file instructs, determining to treat corresponding to the instruction
First file of modification, first file are the configuration file of system.
Acquiring unit 32, it can be used for obtaining the second file corresponding to the first file that the determining unit 31 determines.
Unit 33 is changed, can be used for being instructed according to the modification of the configuration file, to acquired in the acquiring unit 32
The second file modify.
Further, as the realization to method shown in above-mentioned Fig. 2, the embodiment of the present invention additionally provides a kind of configuration file
Modification device, for being realized to the method shown in above-mentioned Fig. 2.The device embodiment is corresponding with preceding method embodiment,
For ease of reading, present apparatus embodiment is no longer repeated the detail content in preceding method embodiment one by one, but it should bright
Really, the device in the present embodiment can correspond to the full content realized in preceding method embodiment.As shown in figure 4, the device bag
Include:Determining unit 41, acquiring unit 42 and modification unit 43, wherein
Determining unit 41, it can be used for, when the modification for receiving configuration file instructs, determining to treat corresponding to the instruction
First file of modification, first file are the configuration file of system.
Acquiring unit 42, it can be used for obtaining the second file corresponding to the first file that the determining unit 41 determines.
Unit 43 is changed, can be used for being instructed according to the modification of the configuration file, to acquired in the acquiring unit 42
The second file modify.
Further, described device also includes:
Construction unit 44, it can be used for according to the first file, in systems the second file corresponding to structure.
Unit 45 is established, can be used for pair of the second file according to first file and the structure of the construction unit 44
It should be related to, points relationship be established for first file and the second file, so that acquiring unit 42 is entered according to the points relationship
Row obtains operation.
Further, the acquiring unit 42 includes:
Determining module 421, can be used for the points relationship according to first file and second file, described in acquisition
Second file corresponding to first file.
Further, described device also includes;
Loading unit 46, it can be used for when system configuration is upgraded, the first text determined to the determining unit 41
Part is loaded.
Upgrade unit 47, it can be used for rising by the first file that upgrading tool loads the loading unit 46
Level.
By above-mentioned technical proposal, the embodiment of the present invention provides a kind of amending method and device of configuration file.For existing
Have technology when the configuration file to system is modified, cause its system influenceed because of security strategy the follow-up upgrading of system and
The problem of renewal, the present invention when determining that system configuration needs to modify, are led to after being instructed when the modification for receiving configuration file
Cross after determining the first file to be modified, obtain the second file corresponding to first file, and according to the configuration file
Modification instruction, directly the first file is not modified, but second file is modified, and pass through the second file
With the corresponding relation of the first file, it is achieved thereby that be the modification function of configuration file to the first file, compared to prior art,
Relation of the invention by the first file and the second file, and still the modification instruction of configuration file is modified, and can be reached
The modification effect of CONFIG.SYS, and then ensure that the modification function to system configuration.Meanwhile by according to the first file come
It is determined that corresponding second file, and then the second file is modified, solve cause because of the modification of configuration file system without
The problem of method upgrades, influence the upgrading of follow-up system, more news when needing to change system configuration so as to avoid.Separately
Outside, the second file corresponding to being built by the first file, ensure that resulting respective file and original configuration file phase
Same file function, and then the accuracy for the modification result of follow-up configuration file is laid a good foundation.Meanwhile by for first
Points relationship is established between file and the second file, it can be ensured that, can direct basis when system carries out the loading of configuration file
Respective file corresponding to the points relationship loading configuration file, so as to ensure that the accuracy of configuration file loading procedure, after being
It is continuous when the first file is modifiable by the user after, can according to corresponding to points relationship loading the second file, ensure that follow-up system
The realization of the modification function of configuration.Further, when system configuration is modified, corresponding to determination to be modified first is passed through
File, and then modification to system configuration can be realized in the configuration file aspect of system, it is ensured that follow-up system configuration is repaiied
Change the accurate fixed of result.Also, it is corresponding to obtain the first file by the points relationship between the first file and the second file
Second file, it can be ensured that when the configuration file of system needs modification, can be got by the points relationship corresponding
Respective file, the accuracy of the respective file of acquisition is ensured that, and then ensure that on the whole described in the embodiment of the present invention
Configuration file modification result accuracy.In addition, by being modified to the second file corresponding to the first file, can make
The configuration file of system can load the first file without changing when system configuration needs upgrading, so as to
It can realize in the case where not influenceing the security strategy of system and have modified system configuration function, and remain the upgrading of system
More New function.
The modification device of described configuration file includes processor and memory, and above-mentioned determining unit, acquiring unit are with repairing
Change unit etc. as program unit storage in memory, by computing device storage said procedure unit in memory Lai
Realize corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, in the case of without prejudice to security strategy, realize the configuration feature of modification system by adjusting kernel parameter to reach.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
The embodiments of the invention provide a kind of storage medium, program is stored thereon with, it is real when the program is executed by processor
The amending method of the existing configuration file.
The embodiments of the invention provide a kind of processor, the processor is used for operation program, wherein, described program operation
The amending method of configuration file described in Shi Zhihang.
The embodiments of the invention provide a kind of equipment, equipment includes processor, memory and storage on a memory and can
The program run on a processor, following steps are realized during computing device program:When the modification for receiving configuration file instructs
When, the first file to be modified corresponding to the instruction is determined, first file is the configuration file of system;Obtain described
Second file corresponding to one file;Instructed according to the modification of the configuration file, second file is modified.
Further, before the second file corresponding to acquisition first file, methods described also includes:
According to the first file, the second file corresponding to structure in systems;
It is that first file and the second file are established and pointed to according to first file and the corresponding relation of the second file
Relation.
Further, the second file corresponding to acquisition first file includes:
According to first file and the points relationship of second file, the second text corresponding to first file is obtained
Part.
Further, methods described also includes;
When system configuration is upgraded, first file is loaded;
The first file of loading is upgraded by upgrading tool.
Equipment in the embodiment of the present invention can be server, PC, PAD, mobile phone etc..
The embodiment of the present invention additionally provides a kind of computer program product, when being performed on data processing equipment, is suitable to
Perform the program of initialization there are as below methods step:When the modification for receiving configuration file instructs, determine that the instruction is corresponding
The first file to be modified, first file be system configuration file;Obtain the second text corresponding to first file
Part;Instructed according to the modification of the configuration file, second file is modified.
Further, before the second file corresponding to acquisition first file, methods described also includes:
According to the first file, the second file corresponding to structure in systems;
It is that first file and the second file are established and pointed to according to first file and the corresponding relation of the second file
Relation.
Further, the second file corresponding to acquisition first file includes:
According to first file and the points relationship of second file, the second text corresponding to first file is obtained
Part.
Further, methods described also includes;
When system configuration is upgraded, first file is loaded;
The first file of loading is upgraded by upgrading tool.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including key element
Other identical element in process, method, commodity or equipment also be present.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is these are only, is not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution,
Improve etc., it should be included within the scope of claims hereof.
Claims (10)
- A kind of 1. amending method of configuration file, it is characterised in that including:When the modification for receiving configuration file instructs, the first file to be modified corresponding to the instruction is determined, described first File is the configuration file of system;Obtain the second file corresponding to first file;Instructed according to the modification of the configuration file, second file is modified.
- 2. according to the method for claim 1, it is characterised in that obtain the second file corresponding to first file described Before, methods described also includes:According to the first file, the second file corresponding to structure in systems;It is that first file and the second file are established to point to and closed according to first file and the corresponding relation of the second file System.
- 3. according to the method for claim 2, it is characterised in that described to obtain the second file bag corresponding to first file Include:According to first file and the points relationship of second file, the second file corresponding to first file is obtained.
- 4. according to the method described in claim any one of 1-3, it is characterised in that methods described also includes;When system configuration is upgraded, first file is loaded;The first file of loading is upgraded by upgrading tool.
- A kind of 5. modification device of configuration file, it is characterised in that including:Determining unit, for when the modification for receiving configuration file instructs, determining to be modified first corresponding to the instruction File, first file are the configuration file of system;Acquiring unit, the second file corresponding to the first file determined for obtaining the determining unit;Unit is changed, for being instructed according to the modification of the configuration file, the second file acquired in the acquiring unit is entered Row modification.
- 6. device according to claim 5, it is characterised in that described device also includes:Construction unit, for according to the first file, the second file corresponding to structure in systems;Unit is established, for the corresponding relation according to first file and the second file of construction unit structure, for institute State the first file and the second file establishes points relationship.
- 7. device according to claim 6, it is characterised in that the acquiring unit includes:Determining module, for the points relationship according to first file and second file, obtain first file pair The second file answered.
- 8. according to the device described in claim any one of 6-7, it is characterised in that described device also includes;Loading unit, for when system configuration is upgraded, being loaded to first file;Upgrade unit, for being upgraded by upgrading tool to the first file that the loading unit loads.
- A kind of 9. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where equipment perform claim require 1 configuration file into claim 4 described in any one Amending method.
- A kind of 10. processor, it is characterised in that the processor is used for operation program, wherein, right will when described program is run Seek the amending method of 1 configuration file into claim 4 described in any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711172517.9A CN107861751A (en) | 2017-11-22 | 2017-11-22 | The amending method and device of configuration file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711172517.9A CN107861751A (en) | 2017-11-22 | 2017-11-22 | The amending method and device of configuration file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107861751A true CN107861751A (en) | 2018-03-30 |
Family
ID=61703450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711172517.9A Pending CN107861751A (en) | 2017-11-22 | 2017-11-22 | The amending method and device of configuration file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107861751A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765432A (en) * | 2019-09-25 | 2020-02-07 | 深圳市火乐科技发展有限公司 | System file modification method, intelligent projector and related product |
CN110851171A (en) * | 2019-11-09 | 2020-02-28 | 许继集团有限公司 | Embedded platform function configuration method, configuration tool and system |
CN111008006A (en) * | 2019-10-18 | 2020-04-14 | 宇龙计算机通信科技(深圳)有限公司 | RFC file modification method and device, storage medium and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5822531A (en) * | 1996-07-22 | 1998-10-13 | International Business Machines Corporation | Method and system for dynamically reconfiguring a cluster of computer systems |
CN102043653A (en) * | 2010-12-23 | 2011-05-04 | 中国农业银行股份有限公司 | Cache system and methods for modifying cache configuration and operating and querying cache data |
CN103824021A (en) * | 2014-02-27 | 2014-05-28 | 北京奇虎科技有限公司 | Setting method and device of browser setting item |
CN105138362A (en) * | 2015-08-20 | 2015-12-09 | 浪潮(北京)电子信息产业有限公司 | Method and device for saving user configuration under Linux system |
CN105809055A (en) * | 2016-02-26 | 2016-07-27 | 深圳天珑无线科技有限公司 | Access control method and device, and related equipment |
CN105825126A (en) * | 2016-03-08 | 2016-08-03 | 北京网康科技有限公司 | File protecting method and device |
-
2017
- 2017-11-22 CN CN201711172517.9A patent/CN107861751A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5822531A (en) * | 1996-07-22 | 1998-10-13 | International Business Machines Corporation | Method and system for dynamically reconfiguring a cluster of computer systems |
CN102043653A (en) * | 2010-12-23 | 2011-05-04 | 中国农业银行股份有限公司 | Cache system and methods for modifying cache configuration and operating and querying cache data |
CN103824021A (en) * | 2014-02-27 | 2014-05-28 | 北京奇虎科技有限公司 | Setting method and device of browser setting item |
CN105138362A (en) * | 2015-08-20 | 2015-12-09 | 浪潮(北京)电子信息产业有限公司 | Method and device for saving user configuration under Linux system |
CN105809055A (en) * | 2016-02-26 | 2016-07-27 | 深圳天珑无线科技有限公司 | Access control method and device, and related equipment |
CN105825126A (en) * | 2016-03-08 | 2016-08-03 | 北京网康科技有限公司 | File protecting method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765432A (en) * | 2019-09-25 | 2020-02-07 | 深圳市火乐科技发展有限公司 | System file modification method, intelligent projector and related product |
CN111008006A (en) * | 2019-10-18 | 2020-04-14 | 宇龙计算机通信科技(深圳)有限公司 | RFC file modification method and device, storage medium and terminal |
CN110851171A (en) * | 2019-11-09 | 2020-02-28 | 许继集团有限公司 | Embedded platform function configuration method, configuration tool and system |
CN110851171B (en) * | 2019-11-09 | 2023-08-11 | 许继集团有限公司 | Function configuration method, tool and system for embedded platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104820602A (en) | Method, device and system for publishing software package | |
US9560121B2 (en) | Provisioning a web hosting resource using a cloud service | |
CN107861751A (en) | The amending method and device of configuration file | |
CN108415714A (en) | The method for upgrading system and device of mobile terminal | |
CN109614158A (en) | A kind of call method of plug-in unit, system, storage medium and processor | |
CN108268609A (en) | A kind of foundation of file path, access method and device | |
CN110162464A (en) | Mcok test method and system, electronic equipment and readable storage medium storing program for executing | |
US9755844B2 (en) | Techniques to transform network resource requests to zero rated network requests | |
CN106873958A (en) | The call method and device of a kind of API | |
US20200274758A1 (en) | Provisioning hybrid cloud resources in an operating environment | |
CN106326062A (en) | Method and device for controlling running state of application program | |
EP3895020A1 (en) | Automated testing for metadata-driven custom applications | |
CN107957888A (en) | The gray scale upgrade method and device of application program | |
CN106096441A (en) | Date storage method and data storage device | |
US11121942B2 (en) | Orchestration engine facilitating management of dynamic connection components | |
CN110209420A (en) | A kind of method and device updating bootstrap loader | |
CN107798064A (en) | Page processing method, electronic equipment and computer-readable recording medium | |
CN109614159A (en) | Plan target distribution, introduction method and device | |
US20210149880A1 (en) | Systems and methods for extendable smart contracts in distributed ledger technology | |
CN111131474A (en) | Method, device and medium for managing user protocol based on block chain | |
CN105988785A (en) | RPC (remote procedure call) service development method and device | |
CN109388644A (en) | A kind of data-updating method and device | |
CN114391136A (en) | Enhanced virtual machine image management system | |
CN105867176A (en) | Application configuration switching method and device | |
CN109977317A (en) | Data query method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180330 |