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

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.

主站蜘蛛池模板: 安阳县| 清远市| 东光县| 灵石县| 炉霍县| 嘉善县| 神木县| 鞍山市| 绥中县| 高雄县| 崇阳县| 威远县| 开平市| 永顺县| 茂名市| 肇源县| 介休市| 江安县| 手游| 城步| 普安县| 邵阳县| 洪湖市| 全南县| 石林| 宜都市| 南涧| 襄樊市| 伊金霍洛旗| 文成县| 枣强县| 神农架林区| 法库县| 鄂伦春自治旗| 绿春县| 郓城县| 宝鸡市| 江山市| 禹城市| 罗城| 永和县|