Cacti 升级

本文档详细介绍了如何升级Cacti系统,包括备份旧数据库和目录,解压缩新版本,编辑配置文件,迁移数据文件,拷贝自定义脚本和XML资源,以及设置权限。最后,通过网页界面完成数据库的更新。
现在用的 cacti 1.0.3   决定升级一下cacti到最新版本 1.1.1

官方升级指导文件

Upgrading Cacti

  1. Backup the old Cacti database.

    shell> mysqldump -l --add-drop-table cacti > mysql.cacti

    Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup.
    备份数据库

  2. Backup the old Cacti directory.

    shell> mv cacti cacti_old
    备份旧的版本
  3. Extract the distribution tarball.

    shell> tar xzvf cacti-version.tar.gz
    解压程序包
  4. Rename the new Cacti directory to match the old one.

    shell> mv cacti-version cacti
    重命名
  5. Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.

    $database_type = "mysql";
    $database_default = "cacti";
    $database_hostname = "localhost";
    $database_username = "cactiuser";
    $database_password = "cacti";
    编辑配置文件
  6. Copy the *.rrd files from the old Cacti directory.

    shell> cp cacti_old/rra/* cacti/rra/
    拷贝数据文件
  7. Copy any relevant custom scripts from the old Cacti directory. Some script are updated between versions. Therefore, make sure you only over write if the scripts either don't exist or are newer than the distribution's.

    shell> cp -u cacti_old/scripts/* cacti/scripts/
    拷贝脚本
  8. Copy any relevant custom resource XML files from the old Cacti directory. Some resource XML files are updated between versions. Therefore, make sure you only over write if the XML files either don't exist or are newer than the distribution's.

    shell> cp -u -R cacti_old/resource/* cacti/resource/
    拷贝xml文件
  9. Set the appropriate permissions on Cacti's directories for graph/log generation. You should execute these commands from inside Cacti's directory to change the permissions.

    shell> chown -R cactiuser rra/ log/
    更改程序所有者

    (Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)

  10. Point your web browser to:

    http://your-server/cacti/

    Follow the on-screen instructions so your database can be updated to the new version.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值