Ubuntu安裝cacti步驟
Ubuntu安裝cacti步驟
# apt-get install apache2
# apt-get install libapache2-mod-php5
# apt-get install php5
# apt-get install msyql-server
# apt-get install php5-mysql
# apt-get install php5-snmp
# apt-get install snmp snmpd
# apt-get install rrdtool
# cd /var/www/
# tar zxf /root/cacti-0.8.7b.tar.gz
# mv cacti-0.8.7b cacti
# useradd cactiuser
# chown -R cactiuser:cactiuser cacti/rra cacti/log
# mysql -u root -p
密碼
> create database cacti default character set utf8;
> grant all on cacti.* to cactiuser@localhost identified by `123456`;
> quit
# mysql -u cactiuser -p cacti < cacti/cacti.sql
# cd cacti/include
# vi config.php
<? php
$ database_type = “mysql”;
$ database_default = “cacti”;
$ database_hostname = “localhost”;
$ database_username = “cactiuser”;
$ database_password = “123456”;
$ database_port = “3306”;
?>
# /usr/bin/php /var/www/cacti/poller.php
# crontab -e
*/5 * * * * /usr/bin/php /var/www/cacti/poller.php & > /dev/null
瀏覽器:http://localhost/cacti
cacti安裝嚮導介面 – 下一步 – 全新安裝(php路徑為/usr/local/php/bin/php) – 完成
# apt-get install apache2
# apt-get install libapache2-mod-php5
# apt-get install php5
# apt-get install msyql-server
# apt-get install php5-mysql
# apt-get install php5-snmp
# apt-get install snmp snmpd
# apt-get install rrdtool
# cd /var/www/
# tar zxf /root/cacti-0.8.7b.tar.gz
# mv cacti-0.8.7b cacti
# useradd cactiuser
# chown -R cactiuser:cactiuser cacti/rra cacti/log
# mysql -u root -p
密碼
> create database cacti default character set utf8;
> grant all on cacti.* to cactiuser@localhost identified by `123456`;
> quit
# mysql -u cactiuser -p cacti < cacti/cacti.sql
# cd cacti/include
# vi config.php
<? php
$ database_type = “mysql”;
$ database_default = “cacti”;
$ database_hostname = “localhost”;
$ database_username = “cactiuser”;
$ database_password = “123456”;
$ database_port = “3306”;
?>
# /usr/bin/php /var/www/cacti/poller.php
# crontab -e
*/5 * * * * /usr/bin/php /var/www/cacti/poller.php & > /dev/null
瀏覽器:http://localhost/cacti
cacti安裝嚮導介面 – 下一步 – 全新安裝(php路徑為/usr/local/php/bin/php) – 完成
使用者名稱密碼預設均為admin,第一次會讓修改密碼
本文轉自linux部落格51CTO部落格,原文連結http://blog.51cto.com/yangzhiming/1352177如需轉載請自行聯絡原作者
yangzhimingg
相關文章
- ubuntu 下安裝nginx步驟UbuntuNginx
- Ubuntu 20.10的Docker安裝步驟UbuntuDocker
- ubuntu 18.04安裝kalibr(詳細步驟)Ubuntu
- ubuntu20.04安裝教程超詳細 安裝ubuntu系統步驟圖解Ubuntu圖解
- UBUNTU手動安裝JDK的詳細步驟UbuntuJDK
- ubuntu20.04.3安裝Qt6.22操作步驟UbuntuQT
- vnc安裝步驟,vnc安裝步驟詳解VNC
- [ 安裝 ] Zeppelin安裝步驟!
- Termux安裝完整版Linux(Ubuntu)詳細步驟LinuxUbuntu
- xftp安裝步驟,xftp安裝的2大步驟FTP
- Nagios安裝步驟iOS
- STF 安裝步驟
- anaconda安裝步驟
- Linux 安裝步驟Linux
- vnc安裝步驟,如何在Linux(CentOS 7)下vnc安裝步驟VNCLinuxCentOS
- Ubuntu18.10安裝HP網路印表機詳細步驟Ubuntu
- ubuntu16.04安裝MATLAB R2017b步驟詳解UbuntuMatlab
- Sublime Text安裝步驟
- aws安裝jenkins步驟Jenkins
- Iris 框架安裝步驟框架
- zookeeper安裝部署步驟
- windows安裝cnpm步驟WindowsNPM
- Maya 2023安裝步驟
- charles的安裝步驟
- Linux安裝Nginx步驟LinuxNginx
- 安裝jdk的步驟JDK
- vnc安裝步驟,4個在Linux下vnc的個安裝步驟VNCLinux
- 在 Ubuntu中從外部儲存庫安裝軟體包步驟Ubuntu
- linux下安裝docker步驟LinuxDocker
- CDH6.2.0安裝步驟
- Android studio的安裝步驟Android
- MHA安裝和部署步驟
- 【Nginx1.12.2安裝步驟】Nginx
- 國內Kubernetes安裝步驟
- Linux安裝JDK完整步驟LinuxJDK
- 如何安裝discuz論壇,discuz安裝步驟
- Mac安裝Redis,詳細redis安裝步驟MacRedis
- vnc安裝步驟,4個vnc安裝步驟實現vnc與Linux的連線VNCLinux
- 安裝sogou輸入法步驟:Go