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下cacti安裝配置Ubuntu
- Ubuntu 20.10的Docker安裝步驟UbuntuDocker
- ubuntu 16.04 lts 安裝intel realsense 步驟UbuntuIntel
- vnc安裝步驟,vnc安裝步驟詳解VNC
- UBUNTU手動安裝JDK的詳細步驟UbuntuJDK
- ubuntu 18.04安裝kalibr(詳細步驟)Ubuntu
- ubuntu20.04安裝教程超詳細 安裝ubuntu系統步驟圖解Ubuntu圖解
- xftp安裝步驟,xftp安裝的2大步驟FTP
- STF 安裝步驟
- php安裝步驟PHP
- oracle 安裝步驟Oracle
- [ 安裝 ] Zeppelin安裝步驟!
- ubuntu20.04.3安裝Qt6.22操作步驟UbuntuQT
- Termux安裝完整版Linux(Ubuntu)詳細步驟LinuxUbuntu
- windows安裝cnpm步驟WindowsNPM
- zookeeper安裝部署步驟
- Iris 框架安裝步驟框架
- anaconda安裝步驟
- Linux 安裝步驟Linux
- Nagios安裝步驟iOS
- charles的安裝步驟
- 安裝jdk的步驟JDK
- Sublime Text安裝步驟
- Centos安裝tmux步驟CentOSUX
- php安裝步驟(正式)PHP
- 安裝weblogic步驟Web
- GreenPlum的安裝步驟
- vnc安裝步驟,如何在Linux(CentOS 7)下vnc安裝步驟VNCLinuxCentOS
- vnc安裝步驟,4個在Linux下vnc的個安裝步驟VNCLinux
- 在 Ubuntu中從外部儲存庫安裝軟體包步驟Ubuntu
- MHA安裝和部署步驟
- Linux安裝Nginx步驟LinuxNginx
- CDH6.2.0安裝步驟
- Centos 7 安裝VNC步驟CentOSVNC
- LNMPPHP軟體安裝步驟LNMPPHP
- Protobuf java版本安裝步驟Java
- 簡單oracle安裝步驟Oracle