CACTI installation configuration in RedHatAS4 System

Source: Internet
Author: User
Installation environment and requirements: 1. system: RedHatAS4 (update2) 2. software Package requirements: cacti-0.8.6j, mysql-5.0.20, php-5.2.0, apache2.0.58 (the above are source package ). installation and configuration process: 1. install apache2.0.58. decompress the package and enter the installation directory. The compilation process is as follows :#. /configure -- prefix =/usr/local/apache2-

Installation environment and requirements:

1. System: RedHat AS4 (update2)

2. Software Package requirements: cacti-0.8.6j, mysql-5.0.20, php-5.2.0, apache2.0.58 (the above are source package ).

Installation and configuration process:

1. Install apache2.0.58

Decompress the package and enter the installation directory. The compilation process is as follows:

#./Configure -- prefix =/usr/local/apache2 -- enable-modules = so

# Make; make install

The compilation option is relatively simple. -- prefix = you need to install apache. -- enable-modules = so indicates that apache can be dynamically loaded.

Required. so Module

After the installation is complete, edit the apache configuration file so that it can be used properly:

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

Find the following line:

# ServerName www.linuxidc.com: 80

Changed:

ServerName yourIP: 80

Start apache:

#/Usr/local/apache2/bin/apachectl start

Enter your IP address or localhost in the browser to test whether the apache test page is displayed. If the test page is successful, the installation is successful.

2. Install mysql-5.0.20

Decompress the package and enter the installation directory. The compilation process is as follows:

#./Configure -- prefix =/usr/local/mysql

# Make; make install

# Cp support-files/my-medium.cnf/etc/my. cnf (this step is to copy the configuration file to/etc)

You can specify the installation path in the compilation options.

Mysql configuration process:

# Groupadd mysql

# Useradd-g mysql

# Cd/usr/local/mysql

#./Bin/mysql_install_db -- user = mysql

# Chown-R root.

# Chown-R mysql var

# Chogrp-R mysql.

Start mysql

#./Bin/mysqld_safe -- user = mysql &

If the following information is displayed, the startup is successful.

# Starting mysqld daemon with databases from/usr/local/mysql/var

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.