- Cacti 0.8 Beginner's Guide
- Thomas Urban
- 337字
- 2021-04-09 21:42:01
- Create a backup of the database:
mysqldump –u root -p --lock-tables --add-drop-table cacti > /root/cacti_backup.sql
- This will back up the Cacti database to a file called
cacti_backup.sql
. You will be asked for the MySQL root password. - Change to the
/var/www/html
directory. From http://www.cacti.net download the source of the version to which you want to upgrade. - Extract the file:
tar –xzvf cacti-0.8.7g.tar.gz
- You will have a new directory named
cacti-0.8.7g
. - Change to the newly created directory and edit
include/config.php
. Change the database entries in there to match your installation. - Before copying the files, you should stop the poller using the web interface. Go to the Configuration | Settings and change to the Poller tab. Disable the poller by unchecking it.
- Copy the files from your existing installation to the new one. Execute the following commands, replacing
0.8.x
with the new version:cp /var/www/html/cacti/rra/* /var/www/html/cacti-0.8.x/rra/ cp –u /var/www/html/cacti/scripts/* /var/www/html/cacti-0.8.x/scripts/ cp –u –R /var/www/html/cacti/resource/* /var/www/html/cacti-0.8.x/resource/
- Set the permissions on the log and
rra
folders:cd /var/www/html/cacti-0.8.7g/ chown –R cactiuser log/ rra/
- Change the symbolic link so that it points to the new directory:
cd /var/www/html/ ln –fs cacti-0.8.x cacti
- The final upgrade process is done using the web interface. Point your browser to
http://<yourserver>/cacti/install
and follow the steps. Make sure you select Upgrade on the second page. - You can now enable the poller again using the Cacti web interface.
- Once you have made sure that everything is working fine, you can remove or archive the original Cacti directory.
You upgraded Cacti to a newer version. As a safety net, you created a backup of the database so you can revert back to the old version in case of an error. You copied the RRD files and other resources to the new installation and switched over by changing the symbolic link to point to the new location. You finished the upgrade process by going to the install URL which provided the final web-based upgrade process.
推薦閱讀
- Adobe創(chuàng)意大學(xué)After Effects CS5 影視特效師標(biāo)準(zhǔn)實(shí)訓(xùn)教材
- TArch 8.5天正建筑軟件標(biāo)準(zhǔn)教程
- Photoshop后期強(qiáng):數(shù)碼攝影后期完全寶典
- 剪映專(zhuān)業(yè)版(電腦版)視頻剪輯全攻略:音效添加+轉(zhuǎn)場(chǎng)特效+視頻制作
- ChronoForms 3.1 for Joomla! site Cookbook
- Dreamweaver CC實(shí)例教程(第5版·微課版)
- Vivado從此開(kāi)始(進(jìn)階篇)
- After Effects影視動(dòng)畫(huà)特效及欄目包裝案例實(shí)戰(zhàn)
- Photoshop+CorelDRAW 字體設(shè)計(jì)與創(chuàng)意:草圖/實(shí)現(xiàn)/包裝(微課版)
- Photoshop+CorelDRAW平面設(shè)計(jì)案例實(shí)戰(zhàn):從入門(mén)到精通(視頻自學(xué)全彩版)
- 剪映:從零開(kāi)始精通短視頻剪輯(電腦版)
- MODx Web Development
- 電磁場(chǎng)數(shù)值計(jì)算及基于FreeFEM的編程實(shí)現(xiàn)
- Photoshop CC 平面設(shè)計(jì)
- AutoCAD 2010 建筑設(shè)計(jì)與制作技能基礎(chǔ)教程