1. install centos 5.3
2. Add file at /etc/yum.repos.d/dag.repo
[root@localhost ~]# cat /etc/yum.repos.d/dag.repo
#Add by Ye at 2009/09/19n
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el5/en/i386/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
[root@localhost ~]#
3. yum install yum-fastestmirror
4.yum update
5.yum install cacti
cacti will install on
[root@localhost cacti]# pwd
/var/www/cacti
[root@localhost cacti]#
6.rm /var/www/html
7. ln -s /var/www/cacti /var/www/html
8.將開機自動帶起httpd service open
[root@localhost /]# chkconfig httpd on
[root@localhost /]#
9.編輯 /etc/php.ini
將 memory_limit 改成 128M ,因為 poller Weathermap 等程式如果圖越多,所需要的記憶體越大
memory_limit = 128M ; Maximum amount of memory a script may consume
10. 開啟httpd 的 service
[root@localhost /]# service httpd start
Starting httpd: [ OK ]
[root@localhost /]#
11. install mysql
[root@localhost /]# chkconfig mysqld on
error reading information on service mysqld: No such file or directory
[root@localhost /]# yum install mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* extras: ftp.cse.yzu.edu.tw
* updates: ftp.cse.yzu.edu.tw
* base: ftp.cse.yzu.edu.tw
* addons: ftp.cse.yzu.edu.tw
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package mysql-server.i386 0:5.0.77-3.el5 set to be updated
–> Processing Dependency: perl-DBD-MySQL for package: mysql-server
–> Running transaction check
—> Package perl-DBD-mysql.i386 0:4.012-1.el5.rf set to be updated
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-server i386 5.0.77-3.el5 updates 9.8 M
Installing for dependencies:
perl-DBD-mysql i386 4.012-1.el5.rf dag 224 k
Transaction Summary
================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 10 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): perl-DBD-mysql-4.012-1.el5.rf.i386.rpm | 224 kB 00:06
(2/2): mysql-server-5.0.77-3.el5.i386.rpm | 9.8 MB 03:30
—————————————————————————————————————————–
Total 47 kB/s | 10 MB 03:38
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-DBD-mysql [1/2]
Installing : mysql-server [2/2]
Installed: mysql-server.i386 0:5.0.77-3.el5
Dependency Installed: perl-DBD-mysql.i386 0:4.012-1.el5.rf
Complete!
[root@localhost /]#
12. open mysqld
[root@localhost /]# chkconfig mysqld on
[root@localhost /]# service mysqld start
Initializing MySQL database: Installing MySQL system tables…
090918 10:18:19 [Warning] option ‘max_join_size’: unsigned value 18446744073709551615 adjusted to 4294967295
090918 10:18:19 [Warning] option ‘max_join_size’: unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables…
090918 10:18:19 [Warning] option ‘max_join_size’: unsigned value 18446744073709551615 adjusted to 4294967295
090918 10:18:19 [Warning] option ‘max_join_size’: unsigned value 18446744073709551615 adjusted to 4294967295
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h localhost.localdomain password ‘new-password’
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
[ OK ]
Starting MySQL: [ OK ]
[root@localhost /]#
13. 設定 mysql root password
[root@localhost /]# mysqladmin -u root password ‘Passw0rd’
[root@localhost /]#