新安装的ubuntu12.04,没有其他干扰。
只有一个命令:sudo apt-get install cacti
中间需要设置数据库的密码
日志:
huihui@ubuntu:/home$ sudo apt-get install cacti [sudo] password for huihui: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会安装下列额外的软件包: apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common dbconfig-common libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbd-mysql-perl libdbi-perl libdbi1 libhtml-template-perl libmysqlclient18 libnet-daemon-perl libphp-adodb libplrpc-perl librrd4 mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 php5-cli php5-common php5-mysql php5-snmp rrdtool snmp ttf-dejavu ttf-dejavu-extra 建议安装的软件包: apache2-doc apache2-suexec apache2-suexec-custom php5-ldap virtual-mysql-client mysql-client postgresql-client php-pear libipc-sharedcache-perl php5-adodb libterm-readkey-perl tinyca mailx php5-suhosin librrds-perl 推荐安装的软件包: apache2 lighttpd nginx httpd 下列【新】软件包将被安装: apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common cacti dbconfig-common libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbd-mysql-perl libdbi-perl libdbi1 libhtml-template-perl libmysqlclient18 libnet-daemon-perl libphp-adodb libplrpc-perl librrd4 mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 php5-cli php5-common php5-mysql php5-snmp rrdtool snmp ttf-dejavu ttf-dejavu-extra 升级了 0 个软件包,新安装了 34 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 需要下载 42.8 MB 的软件包。 解压缩后会消耗掉 139 MB 的额外空间。 您希望继续执行吗?[Y/n]y 获取:1 http://archive.ubuntu.com/ubuntu/ precise/main mysql-common all 5.5.22-0ubuntu1 [13.7 kB] 获取:2 http://archive.ubuntu.com/ubuntu/ precise/main libmysqlclient18 amd64 5.5.22-0ubuntu1 [946 kB] 获取:3 http://archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB] 获取:4 http://archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB] 获取:5 http://archive.ubuntu.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB] 获取:6 http://archive.ubuntu.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB] 获取:7 http://archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB] 获取:8 http://archive.ubuntu.com/ubuntu/ precise/main mysql-client-core-5.5 amd64 5.5.22-0ubuntu1 [1,926 kB] 获取:9 http://archive.ubuntu.com/ubuntu/ precise/main mysql-client-5.5 amd64 5.5.22-0ubuntu1 [8,298 kB] 获取:10 http://archive.ubuntu.com/ubuntu/ precise/main mysql-server-core-5.5 amd64 5.5.22-0ubuntu1 [6,022 kB] 获取:11 http://archive.ubuntu.com/ubuntu/ precise/main mysql-server-5.5 amd64 5.5.22-0ubuntu1 [8,816 kB] 获取:12 http://archive.ubuntu.com/ubuntu/ precise/main libapr1 amd64 1.4.6-1 [89.6 kB] 获取:13 http://archive.ubuntu.com/ubuntu/ precise/main libaprutil1 amd64 1.3.12+dfsg-3 [74.6 kB] 获取:14 http://archive.ubuntu.com/ubuntu/ precise/main libaprutil1-dbd-sqlite3 amd64 1.3.12+dfsg-3 [10.4 kB] 获取:15 http://archive.ubuntu.com/ubuntu/ precise/main libaprutil1-ldap amd64 1.3.12+dfsg-3 [8,044 B] 获取:16 http://archive.ubuntu.com/ubuntu/ precise/main apache2.2-bin amd64 2.2.22-1ubuntu1 [1,337 kB] 获取:17 http://archive.ubuntu.com/ubuntu/ precise/main apache2-utils amd64 2.2.22-1ubuntu1 [91.0 kB] 获取:18 http://archive.ubuntu.com/ubuntu/ precise/main apache2.2-common amd64 2.2.22-1ubuntu1 [228 kB] 获取:19 http://archive.ubuntu.com/ubuntu/ precise/main apache2-mpm-prefork amd64 2.2.22-1ubuntu1 [2,402 B] 获取:20 http://archive.ubuntu.com/ubuntu/ precise/main dbconfig-common all 1.8.47 [458 kB] 获取:21 http://archive.ubuntu.com/ubuntu/ precise/main php5-common amd64 5.3.10-1ubuntu3 [430 kB] 获取:22 http://archive.ubuntu.com/ubuntu/ precise/main libapache2-mod-php5 amd64 5.3.10-1ubuntu3 [3,136 kB] 获取:23 http://archive.ubuntu.com/ubuntu/ precise/main libdbi1 amd64 0.8.4-5.1 [28.5 kB] 获取:24 http://archive.ubuntu.com/ubuntu/ precise/main libhtml-template-perl all 2.10-1 [65.0 kB] 获取:25 http://archive.ubuntu.com/ubuntu/ precise/main php5-cli amd64 5.3.10-1ubuntu3 [3,050 kB] 获取:26 http://archive.ubuntu.com/ubuntu/ precise/universe libphp-adodb all 5.12-1 [552 kB] 获取:27 http://archive.ubuntu.com/ubuntu/ precise/main librrd4 amd64 1.4.7-1 [242 kB] 获取:28 http://archive.ubuntu.com/ubuntu/ precise/main mysql-server all 5.5.22-0ubuntu1 [11.8 kB] 获取:29 http://archive.ubuntu.com/ubuntu/ precise/main php5-mysql amd64 5.3.10-1ubuntu3 [76.6 kB] 获取:30 http://archive.ubuntu.com/ubuntu/ precise/main php5-snmp amd64 5.3.10-1ubuntu3 [11.0 kB] 获取:31 http://archive.ubuntu.com/ubuntu/ precise/main snmp amd64 5.4.3~dfsg-2.4ubuntu1 [161 kB] 获取:32 http://archive.ubuntu.com/ubuntu/ precise/main ttf-dejavu-extra all 2.33-2ubuntu1 [3,420 kB] 获取:33 http://archive.ubuntu.com/ubuntu/ precise/main ttf-dejavu all 2.33-2ubuntu1 [3,178 B] 获取:34 http://archive.ubuntu.com/ubuntu/ precise/main rrdtool amd64 1.4.7-1 [369 kB] 获取:35 http://archive.ubuntu.com/ubuntu/ precise/universe cacti all 0.8.7i-2ubuntu1 [1,891 kB] 下载 42.8 MB,耗时 1小时 38分 9秒 (7,266 B/s) 正在从软件包中解出模板:100% 正在预设定软件包 ... Selecting previously unselected package mysql-common. (正在读取数据库 ... 系统当前共安装有 140014 个文件和目录。) 正在解压缩 mysql-common (从 .../mysql-common_5.5.22-0ubuntu1_all.deb) ... Selecting previously unselected package libmysqlclient18. 正在解压缩 libmysqlclient18 (从 .../libmysqlclient18_5.5.22-0ubuntu1_amd64.deb) ... Selecting previously unselected package libnet-daemon-perl. 正在解压缩 libnet-daemon-perl (从 .../libnet-daemon-perl_0.48-1_all.deb) ... Selecting previously unselected package libplrpc-perl. 正在解压缩 libplrpc-perl (从 .../libplrpc-perl_0.2020-2_all.deb) ... Selecting previously unselected package libdbi-perl. 正在解压缩 libdbi-perl (从 .../libdbi-perl_1.616-1build2_amd64.deb) ... Selecting previously unselected package libdbd-mysql-perl. 正在解压缩 libdbd-mysql-perl (从 .../libdbd-mysql-perl_4.020-1build2_amd64.deb) ... Selecting previously unselected package mysql-client-core-5.5. 正在解压缩 mysql-client-core-5.5 (从 .../mysql-client-core-5.5_5.5.22-0ubuntu1_amd64.deb) ... Selecting previously unselected package mysql-client-5.5. 正在解压缩 mysql-client-5.5 (从 .../mysql-client-5.5_5.5.22-0ubuntu1_amd64.deb) ... Selecting previously unselected package mysql-server-core-5.5. 正在解压缩 mysql-server-core-5.5 (从 .../mysql-server-core-5.5_5.5.22-0ubuntu1_amd64.deb) ... 正在处理用于 initramfs-tools 的触发器... update-initramfs: Generating /boot/initrd.img-3.8.0-29-generic Warning: No support for locale: zh_CN.utf8 正在处理用于 man-db 的触发器... 正在设置 mysql-common (5.5.22-0ubuntu1) ... Selecting previously unselected package mysql-server-5.5. (正在读取数据库 ... 系统当前共安装有 140380 个文件和目录。) 正在解压缩 mysql-server-5.5 (从 .../mysql-server-5.5_5.5.22-0ubuntu1_amd64.deb) ... Selecting previously unselected package libapr1. 正在解压缩 libapr1 (从 .../libapr1_1.4.6-1_amd64.deb) ... Selecting previously unselected package libaprutil1. 正在解压缩 libaprutil1 (从 .../libaprutil1_1.3.12+dfsg-3_amd64.deb) ... Selecting previously unselected package libaprutil1-dbd-sqlite3. 正在解压缩 libaprutil1-dbd-sqlite3 (从 .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_amd64.deb) ... Selecting previously unselected package libaprutil1-ldap. 正在解压缩 libaprutil1-ldap (从 .../libaprutil1-ldap_1.3.12+dfsg-3_amd64.deb) ... Selecting previously unselected package apache2.2-bin. 正在解压缩 apache2.2-bin (从 .../apache2.2-bin_2.2.22-1ubuntu1_amd64.deb) ... Selecting previously unselected package apache2-utils. 正在解压缩 apache2-utils (从 .../apache2-utils_2.2.22-1ubuntu1_amd64.deb) ... Selecting previously unselected package apache2.2-common. 正在解压缩 apache2.2-common (从 .../apache2.2-common_2.2.22-1ubuntu1_amd64.deb) ... Selecting previously unselected package apache2-mpm-prefork. 正在解压缩 apache2-mpm-prefork (从 .../apache2-mpm-prefork_2.2.22-1ubuntu1_amd64.deb) ... Selecting previously unselected package dbconfig-common. 正在解压缩 dbconfig-common (从 .../dbconfig-common_1.8.47_all.deb) ... Selecting previously unselected package php5-common. 正在解压缩 php5-common (从 .../php5-common_5.3.10-1ubuntu3_amd64.deb) ... Selecting previously unselected package libapache2-mod-php5. 正在解压缩 libapache2-mod-php5 (从 .../libapache2-mod-php5_5.3.10-1ubuntu3_amd64.deb) ... Selecting previously unselected package libdbi1. 正在解压缩 libdbi1 (从 .../libdbi1_0.8.4-5.1_amd64.deb) ... Selecting previously unselected package libhtml-template-perl. 正在解压缩 libhtml-template-perl (从 .../libhtml-template-perl_2.10-1_all.deb) ... Selecting previously unselected package php5-cli. 正在解压缩 php5-cli (从 .../php5-cli_5.3.10-1ubuntu3_amd64.deb) ... Selecting previously unselected package libphp-adodb. 正在解压缩 libphp-adodb (从 .../libphp-adodb_5.12-1_all.deb) ... Selecting previously unselected package librrd4. 正在解压缩 librrd4 (从 .../librrd4_1.4.7-1_amd64.deb) ... Selecting previously unselected package mysql-server. 正在解压缩 mysql-server (从 .../mysql-server_5.5.22-0ubuntu1_all.deb) ... Selecting previously unselected package php5-mysql. 正在解压缩 php5-mysql (从 .../php5-mysql_5.3.10-1ubuntu3_amd64.deb) ... Selecting previously unselected package php5-snmp. 正在解压缩 php5-snmp (从 .../php5-snmp_5.3.10-1ubuntu3_amd64.deb) ... Selecting previously unselected package snmp. 正在解压缩 snmp (从 .../snmp_5.4.3~dfsg-2.4ubuntu1_amd64.deb) ... Selecting previously unselected package ttf-dejavu-extra. 正在解压缩 ttf-dejavu-extra (从 .../ttf-dejavu-extra_2.33-2ubuntu1_all.deb) ... Selecting previously unselected package ttf-dejavu. 正在解压缩 ttf-dejavu (从 .../ttf-dejavu_2.33-2ubuntu1_all.deb) ... Selecting previously unselected package rrdtool. 正在解压缩 rrdtool (从 .../rrdtool_1.4.7-1_amd64.deb) ... Selecting previously unselected package cacti. 正在解压缩 cacti (从 .../cacti_0.8.7i-2ubuntu1_all.deb) ... 正在处理用于 ureadahead 的触发器... 正在处理用于 man-db 的触发器... 正在处理用于 ufw 的触发器... 正在处理用于 fontconfig 的触发器... 正在处理用于 doc-base 的触发器... Processing 29 changed doc-base files, 2 added doc-base files... 正在设置 libmysqlclient18 (5.5.22-0ubuntu1) ... 正在设置 libnet-daemon-perl (0.48-1) ... 正在设置 libplrpc-perl (0.2020-2) ... 正在设置 libdbi-perl (1.616-1build2) ... 正在设置 libdbd-mysql-perl (4.020-1build2) ... 正在设置 mysql-client-core-5.5 (5.5.22-0ubuntu1) ... 正在设置 mysql-client-5.5 (5.5.22-0ubuntu1) ... 正在设置 mysql-server-core-5.5 (5.5.22-0ubuntu1) ... 正在设置 mysql-server-5.5 (5.5.22-0ubuntu1) ... 131103 15:53:42 [Note] Plugin 'FEDERATED' is disabled. 131103 15:53:42 InnoDB: The InnoDB memory heap is disabled 131103 15:53:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins 131103 15:53:42 InnoDB: Compressed tables use zlib 1.2.3.4 131103 15:53:42 InnoDB: Initializing buffer pool, size = 128.0M 131103 15:53:42 InnoDB: Completed initialization of buffer pool 131103 15:53:42 InnoDB: highest supported file format is Barracuda. 131103 15:53:43 InnoDB: Waiting for the background threads to start 131103 15:53:44 InnoDB: 1.1.8 started; log sequence number 1595675 131103 15:53:44 InnoDB: Starting shutdown... 131103 15:53:44 InnoDB: Shutdown completed; log sequence number 1595675 mysql start/running, process 14303 正在设置 libapr1 (1.4.6-1) ... 正在设置 libaprutil1 (1.3.12+dfsg-3) ... 正在设置 libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) ... 正在设置 libaprutil1-ldap (1.3.12+dfsg-3) ... 正在设置 apache2.2-bin (2.2.22-1ubuntu1) ... 正在设置 apache2-utils (2.2.22-1ubuntu1) ... 正在设置 apache2.2-common (2.2.22-1ubuntu1) ... Enabling site default. Enabling module alias. Enabling module autoindex. Enabling module dir. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module status. Enabling module auth_basic. Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. 正在设置 apache2-mpm-prefork (2.2.22-1ubuntu1) ... * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] 正在设置 dbconfig-common (1.8.47) ... Creating config file /etc/dbconfig-common/config with new version 正在设置 php5-common (5.3.10-1ubuntu3) ... 正在设置 libapache2-mod-php5 (5.3.10-1ubuntu3) ... Creating config file /etc/php5/apache2/php.ini with new version * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] 正在设置 libdbi1 (0.8.4-5.1) ... 正在设置 libhtml-template-perl (2.10-1) ... 正在设置 php5-cli (5.3.10-1ubuntu3) ... Creating config file /etc/php5/cli/php.ini with new version update-alternatives: 使用 /usr/bin/php5 来提供 /usr/bin/php (php),于 自动模式 中。 正在设置 libphp-adodb (5.12-1) ... 正在设置 librrd4 (1.4.7-1) ... 正在设置 mysql-server (5.5.22-0ubuntu1) ... 正在设置 php5-mysql (5.3.10-1ubuntu3) ... 正在设置 php5-snmp (5.3.10-1ubuntu3) ... 正在设置 snmp (5.4.3~dfsg-2.4ubuntu1) ... 正在设置 ttf-dejavu-extra (2.33-2ubuntu1) ... 正在设置 ttf-dejavu (2.33-2ubuntu1) ... 正在设置 rrdtool (1.4.7-1) ... 正在设置 cacti (0.8.7i-2ubuntu1) ... dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf Creating config file /etc/dbconfig-common/cacti.conf with new version Creating config file /etc/cacti/debian.php with new version granting access to database cacti for cacti@localhost: success. verifying access for cacti@localhost: success. creating database cacti: success. verifying database cacti exists: success. populating database via sql... done. dbconfig-common: flushing administrative password Creating config file /etc/cacti/apache.conf with new version Creating config file /etc/cacti/lighttpd.conf with new version * Reloading web server config apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] 正在处理用于 libc-bin 的触发器... ldconfig deferred processing now taking place huihui@ubuntu:/home$
cacti访问路径:http://127.0.0.1/cacti/index.php,用户名admin,密码admin
浙公网安备 33010602011771号