Use ubuntu to set up the cacti monitoring server-Linux Enterprise Application-Linux server application information. The following is a detailed description. 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.
$ Sudo apt-get install apache2
$ Sudo apt-get install mysql-server
$ Sudo apt-get install php5
Download the latest cacti package from the http://www.cacti.net website, and ubuntu server can download it with the wget command.
$ Sudo-s
$ Cacti-version.tar.gz/var/www
$ Cd/var/www
$ Tar xzf cacti-version.tar.gz
$ Mv cacti-version cacti
$ Rm cacti-version.tar.gz
$ Exit
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
$ Sudo vi/var/www/cacti/include/config. php
$ Database_password = "cactiuser ";
Add cactiuser
$ Sudo useradd cactiuser-d/var/www/cacti-s/bin/false
$ Sudo chown-R cactiuser/var/www/cacti/rra/var/www/cacti/log
The above may not work:
# Sudo chown-hR cactiuser/var/www/cacti/rra/var/www/cacti/log
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.
User Name: admin
Password: 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.