官术网_书友最值得收藏!

Time for action – configuring Cacti

The database and some other special configuration tasks are done by editing the information in the config.php file.

  1. Navigate to the cacti directory:
    cd /var/www/html/cacti/include
    
  2. Edit config.php with vi:
    vi config.php
    
    Time for action – configuring Cacti
  3. Change the $database_username and $database_password fields to the previously created username and password.
  4. Change the line $config['url_path'] = '/' to $config['url_path'] = '/cacti/'

What just happened?

You changed the database configuration for Cacti to the username and password that you created earlier. These settings will tell Cacti where to find the database and what credentials it needs to use to connect to it. You also changed the default URL path to fit your installation. As you install Cacti to /var/www/html/cacti, a sub-directory of the document root, you need to change this setting to /cacti/, otherwise Cacti will not work correctly.

Creating the poller cron entry and Cacti's system user

For the poller to work correctly, Cacti needs a system user account. You are going to create one now and also set up the poller's cron entry.

主站蜘蛛池模板: 泰和县| 什邡市| 永康市| 都兰县| 新乐市| 抚宁县| 元氏县| 马公市| 措勤县| 布拖县| 富顺县| 遂川县| 突泉县| 什邡市| 奉化市| 读书| 特克斯县| 湘潭县| 雅江县| 祁门县| 麻栗坡县| 深圳市| 崇文区| 五华县| 昌都县| 景泰县| 闸北区| 青田县| 锡林浩特市| 商洛市| 德惠市| 林州市| 桑日县| 翁牛特旗| 辽阳县| 福州市| 连平县| 遵义县| 文山县| 吴忠市| 全州县|