Install the server monitoring program Cacti Based on Ubuntu8.04Server
Source: Internet
Author: User
Step 1: We recommend that you use the unzip tuserver system + LAMP service to install the cacti software for Ubuntu and LAMP services, because the LAMP service provided by the Server system + system is relatively stable. During the installation process, Ubuntuserver selects and installs the LAMP service. If you use Ubuntu for installation on the desktop or the LAMP service is not installed during installation, run the following command to set up the LAMP server first. # Sudoapt Step 1: Install Ubuntu and LAMP services
We recommend that you use the Ubuntu Server system + LAMP service to install the cacti software, because the Server version system + Built-in LAMP service will be relatively stable.
During the installation of Ubuntu server, select and install the LAMP service.
If you use Ubuntu for installation on the desktop or the LAMP service is not installed during installation, run the following command to set up the LAMP server first.
Download the latest cacti package from the http://www.cacti.net website, and Ubuntu server can download it with the wget command.
Cacti-0.8.7b.tar.gz
# Music cacti-0.8.7b.tar.gz/var/www
# Cd/var/www
# Tar xzf cacti-0.8.7b.tar.gz
# Mv cacti-version cacti
# Rm cacti-0.8.7b.tar.gz
# Exit
Step 4: related settings
# Cd/var/www/cacti
# Sudo mysqladmin-u root-p create cacti
# Sudo mysql-u root-p cacti <cacti. SQL
# Sudo mysql-u root-p cacti
Pay attention to this. If you really don't know how to use mysql under the command, you should first create a database with phpmyadmin and then import data. Run the command to modify the password of the mysql database.
Grant all on cacti. * to cactiuser @ localhost identified by 'cacti ';
Flush privileges;
Set password for cactiuser @ localhost = password ('cactiuser ');
Quit
Edit/var/www/cacti/include/config. php and change the Database Password to cactiuser.
This is based on the database password you set above
Next, if you have built the LAMP, do not add it again.
Edit/etc/php5/apache2/php. ini.
# Sudo vi/etc/php5/apache2/php. ini
; Extension = mysql. so
Edit/etc/php5/cli/php. ini.
# Sudo vi/etc/php5/cli/php. ini
; Extension = mysql. so
Edit/etc/php5/cgi/php. ini.
# Sudo vi/etc/php5/cgi/php. ini
; Extension = mysql. so
Restart apache2
# Sudo/etc/init. d/apache2 restart
This server uses http: // localhost/cacti/for access. Other hosts Use http: // cacti Server IP Address/cacti for access. The default username and password are admin.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.