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

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.

主站蜘蛛池模板: 青川县| 改则县| 罗山县| 周至县| 黄浦区| 卓尼县| 德保县| 新野县| 体育| 宁陵县| 奇台县| 平阳县| 海盐县| 库车县| 始兴县| 惠来县| 石棉县| 慈利县| 湄潭县| 伊宁县| 南川市| 万安县| 南华县| 华宁县| 双鸭山市| 三河市| 海宁市| 平昌县| 台中市| 京山县| 钟祥市| 齐河县| 监利县| 三亚市| 密山市| 册亨县| 旌德县| 江口县| 大名县| 义乌市| 普兰店市|