| Sv translation | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
Во время обновления сервера Traffic Monitor конфигурационные файлы (например, с расширениями .conf, .cfg и .lua), которые были изменены во время использования предыдущей версии, не перезаписываются новыми. В тех же директориях создаются новые файлы с теми же названиями, но с расширением .rpmnew. Это сделано для того, чтобы поддержать возможность изменения структуры файлов новых версий. Для корректной работы Системы потребуется объединить файлы старой и новой версий.
Используйте любой из приведенных ниже способов объединения файлов. Объединение конфигурационных файлов в Midnight CommanderРассмотрим объединение на примере файлов postgresql.conf и postgresql.conf.rpmnew.
Файл postgresql.conf имеет вид: Файл postgresql.conf.rpmnew имеет вид: Для объединения требуется перенести данные из секций файла postgresql.conf в соответствующие секции файла postgresql.conf.rpmnew. Для этого:
Объединение конфигурационных файлов с помощью vimdiffДля работы с vimdiff на сервере должен установлен текстовый редактор vim. Рассмотрим объединение на примере файлов user.lua и user.lua.rpmnew. После обновления (при условии, если в штатный файл user.lua вносились изменения) появится файл user.lua.rpmnew. Необходимо корректно перенести все установленные ранее значения параметров и настроек из user.lua в user.lua.rpmnew. Для этого:
|
| Sv translation | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
During the update of Traffic Monitor server nconfiguration files (e.g, with .conf, .cfg, and .lua extensions) that were modified when using the previous version, cannot be overwritten with the new files. The new files are created in the same directories and with the same names, but with .rpmnew extension respectively.This is done to support the ability to change the structure of new file versions. For correct operation of the System it is required merging files of an old and a new version.
Use any files merging type specified below. Merging configuration files in Midnight CommanderLet's consider an example to merge postgresql.conf and postgresql.conf.rpmnew files.
The postgresql.conf file looks like: The postgresql.conf.rpmnew file looks like: To merge these files, you need to copy data from sections of the postgresql.conf file to the corresponding sections of the postgresql.conf.rpmnew file. For this:
Merging configuration files by means of vimdiffTo work with vimdiff the editor Vim should be installed on a server. Let's consider an example of merging user.lua and user.lua.rpmnew files. After the update, the user.lua. rpmnew file appears (if the original user.lua file has been changed). You should copy all earlier specified values of parameters and settings from user.lua to user.lua.rpmnew. To do this:
|




