Monitoring Network artifact --- Cacti installation and configuration (1)

Source: Internet
Author: User

CactiIt is a very practical graphic analysis tool for network traffic monitoring. It is also a monitoring network artifact. Let's see his installation and configuration!

I. Cacti Installation

1. installation environment: RedHat AS 4

2. install Apache, MySQL, and PHP

(1) install MySQL

: Http://dev.mysql.com/downloads/mysql/5.0.html

// Check whether MySQL is installed in the system. If yes, Uninstall all packages starting with mysql.

# Rpm-qa | grep mysql

# Rpm-e mysql -*

// Find/etc/my. cnf (MySQL option configuration file). If yes, delete it to avoid affecting the startup of the new installation version.

# Rm-f/etc/my. cnf

# Tar-zxvf mysql-standard-5.0.27-linux-i686-glibc23.tar.gz

# Cp-rf mysql-standard-5.0.27-linux-i686-glibc23/usr/local/

// Create a symbolic link. If a new version of MySQL is available in the future, you can just extract the source code to a new path and re-create a symbolic link. This is very convenient and data is more secure.

# Ln-s mysql-standard-5.0.27-linux-i686-glibc23/usr/local/mysql

// Add the user and user group used to start MySQL (if MySQl has been installed before, the user and user group may already exist ).

# Useradd mysql

# Groupadd mysql

// Initialize the authorization table

# Cd/usr/local/mysql

# Scripts/mysql_install_db

// Modify the ownership of the MySQl directory

# Cd/usr/local

# Chgrp-R mysql mysql-standard-5.0.27-linux-i686-glibc23.

# Chgrp-R mysql

# Chown-R mysql mysql-standard-5.0.27-linux-i686-glibc23/data

# Chown-R mysql/data

# Ln-s/usr/local/mysql/bin/*/usr/local/bin/

// Start Mysql

# Bin/safe_mysqld -- user = mysql &

// Configure MySQl to be automatically started when the system starts

# Cp support-files/mysql. server/etc/rc. d/init. d/mysqld

# Chkconfig -- add mysqld

// Modify the maximum number of connections of MySQL

# Vi/etc/my. cnf

// Add the following lines

[Mysqld]

Set-variable = max_connections = 1000

Set-variable = max_user_connections = 500

Set-variable = wait_timeout = 200

// Set max_connections to 1000

// Set max_user_connections to 500

// Wait_timeout indicates that the IDLE (IDLE) connection will be closed after 200 seconds, but it will not affect the working connection.

// Save and exit, and restart MySQL

// Restart MySQL and run the following command to check whether the modification is successful.

# Mysqladmin-uroot-p variables

Password:

// The following information indicates that the modification is successful.

| Max_connections | 1000

| Max_user_connections | 500

| Wait_timeout | 200

(2) install Apache

: Http://httpd.apache.org/

# Tar-zxvf httpd-2.2.4.tar.gz

# Cd httpd-2.2.4

#./Configure -- prefix =/usr/local/apache -- enable-so

// Add the loading module parameter -- enable-so during compilation.

# Make

# Make install

# Vi/usr/local/apache/conf/httpd. conf

// Modify the Apache configuration file and add ServerName www.yourdomain.com (or ServerName local ip)

# Vi/etc/rc. d/rc. local

// Add/usr/local/apache/bin/apachectl-k start on rc. local to start the Apache service when the system starts.


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.