Copyright statement: original works can be reproduced. During reprinting, you must mark the original source, author information, and this statement in hyperlink form. Otherwise, legal liability will be held. Bytes. A lot of content may have been written by many friends on the Internet,
Copyright statement: original works can be reproduced. During reprinting, you must mark the original source, author information, and this statement in hyperlink form. Otherwise, legal liability will be held.Http://gaoxingf.blog.51cto.com/612518/187957
This article only describes how to install the Cacti environment on RedHat Enterprise Linux 5.3 and how to solve the errors encountered during installation.
A lot of content may have been written by many friends on the Internet. I just recorded some details of my installation and the errors I encountered and summarized them! I hope it will be useful to other users who want to install it! I am exhausted, but now the installation time is greatly shortened! Haha ~~
Start installation:
If the software used in this article cannot be used, you can search for a link on google/baidu! It should be easy to use at present, because I have used it. Pay attention to your installation directory during installation.
Part 1: Compile and install Apache and MySQL
# Wget ftp://ftp.ru/pub/sunfreeware/SOURCES/httpd-2.2.6.tar.gz
# Tar zxvf httpd-2.2.6.tar.gz
# Cd httpd-2.2.6
#./Configure -- prefix =/usr/local/apache22 -- enable-module = so -- with-mpm = worker -- enable-module = rewrite
# Make & make install
Start apache:
#/Usr/local/apache22/bin/apachectl start
Internet Explorer accesses http: // ip/"It works !", Indicates that apache is successfully installed.
Start to install mysql:
# Wget http://download.mysql.cn/download_file/gz/5.0/mysql-5.0.22.tar.gz
# Tar zxvf mysql-5.0.22.tar.gz
# Cd mysql-5.0.22
#. /Configure -- prefix =/usr/local/mysql -- localstatedir =/usr/local/mysql/data/-- without-innodb -- without-debug -- with-extra-charsets = gbk -- with-extra-charsets = all -- enable-consumer er -- with-pthread -- enable-thread-safe-client -- with-client-ldflags =-all-static
"Thank you for choosing MySQL!" is displayed after the configuration is successful !" Prompt.
# Make & make install // This step takes about 10 minutes. It's a long time...
Mysql Configuration
# Cp./support-files/mysql. server/etc/init. d/mysql
# Groupadd mysql
# Useradd-g mysql
# Chmod 777/etc/init. d/mysql
#/Usr/local/mysql/bin/mysql_install_db
# Chown-R mysql: mysql/usr/local/mysql/data/
Start Mysql
# Service mysql start
#/Usr/local/mysql/bin/mysqladmin-u root-p password 'rootpw '// set the password to rootpw
Enter password: // the default password is null, so press Enter.
#/Usr/local/mysql/bin/mysql-u root-p
Enter password: // Enter the new password and the logon is successful.
Mysql installation and configuration are complete.