总体配置

新人应该阅读配置概述

检查此页面所有参数的用法 可以在此文件中设置。

某些参数由某些扩展插件带来,因此在本引用指南中未提及。

在线编辑

该工具仅适用于iTop管理员。这是快捷方式,用于编辑配置文件<itop-root >> conffproductionnconfig-itop。此工具还可以确保流程的安全,因为如果找到任何语法错误,则更改将不会保存。

强烈建议在执行任何变更之前保留配置文件的副本。

不要编辑文件的下部。本部分以注释开头:要加载的数据模型模块。

配置中的某些更改可能导致iTop无法使用。在这种情况下,提交变更后,您将立即获得错误,并且将无法访问此GUI来回滚您的更改。最敏感的设置是MySQL服务器的凭据。

由于iTop配置是作为PHP文档存储和处理的,因此可以通过配置编辑器进行PHP代码注入。如果您认为让iTop管理员以交互方式编辑配置文件的风险太大(例如,如果iTop安装在与其他应用程序共享的配置上),则可以完全禁用交互式配置编辑器。要禁用交互式编辑器,请设置以下配置参数(在配置文件的“ module_settings”部分中):

可从“管理工具配置”菜单访问该编辑器:

1.png

它具有语法高亮性和一些

2.png

这是可能的操作活动:

  • 使用Ctrl + F查找
  • 使用Ctrl + H查找和替换
  • 用按钮或Ctrl + S快捷方式保存
  • 重置按钮将页面和配置重新加载到其持久状态(放弃非持久更改)

如果找到语法错误,则无法完成保存,并且在每个相关行上显示注释:

3.png

有时,错别字位于上标线的上方。

保存后,如果未遇到语法错误,则显示绿色标语:

4.png

请注意,新的配置在再次加载页面时生效。因此,为了查看修改后的配置的效果,您必须导航到iTop中的另一个页面。

原贴链接:https://www.itophub.io/wiki/page?id=2_7_0%3Aadmin%3Aconfiguration_editor


Configuration Editor

Newcomers should read the Configuration overview

Check this page for usage of all parameters which can be set within this file.

Some parameters are brought by some extensions/plugins and therefore are not mentionned in this reference guide.

Online editor

This tool is available only to the iTop administrators. It is a shortcut to edit the configuration file <itop-root>/conf/production/config-itop. This tool also secures the process in that the changes will not be saved if any syntax error is found.

It is highly recommended to keep a copy of the configuration file prior to doing any change.

Do NOT edit the lower part of the file. This part starts with the comment: Data model modules to be loaded.

Some changes made in the configuration may cause iTop to be inoperant. In such a case, right after the change is submitted, you would get an error, and it would not be possible to access this GUI to rollback your changes. The settings that are the most sensitive are the credentials to the MySQL server.

Since the iTop configuration is stored - and processed - as a PHP document, PHP code injection ispossible via the configuration editor. If you think  that letting iTop administrators interactively edit the configuration file is too risky (for example if iTop is installed on a server shared with other applications), you can completely disable the interactive configuration editor. To disable the interactive editor, set the following configuration parameter (in the 'module_settings' section of the configuration file):

'itop-config' => array(
    'config_editor' => 'disabled',
)

The editor is accessible from the “Admin tools / Configuration” menu:

https://www.itophub.io/wiki/media?media=2_7_0%3Aadmin%3Aconfig-menu.png

It has syntax hightlighting and some

https://www.itophub.io/wiki/media?media=2_7_0%3Aadmin%3Aconfig-editor.png

Here are the possible actions :

  • Find using Ctrl+F

  • Find and replace using Ctrl+H

  • Apply button or Ctrl+S shortcut to save

  • The Reset button reloads the page and the config to its persisted state (discard non persisted changes)

If a syntax error is found, save cannot be done, and an annotation is displayed on each concerned lines :

https://www.itophub.io/wiki/media?media=2_7_0%3Aadmin%3Aconfig-issue.png

Sometimes, the typo resides one line above the incriminated line.

Upon saving, and if no syntax error is encountered, then a green banner is shown:

https://www.itophub.io/wiki/media?media=2_7_0%3Aadmin%3Aconfig-ok.png

Note that the new configuration takes effect when a page gets loaded again. So in order to see the effect of the modified configuration you have to navigate to another page in iTop.

标签:
由 superadmin 在 2020/08/25, 16:31 创建
    

需要帮助?

如果您需要有关XWiki的帮助,可以联系:

深圳市艾拓先锋企业管理咨询有限公司