[root@mng ~]#yum install httpd php mysql php-mysql mysql-server wget rsyslog rsyslog-mysql
[root@mng ~]#chkconfig --add rsyslog
[root@mng ~]#chkconfig --add mysqld
[root@mng ~]#chkconfig --add httpd
[root@mng ~]#chkconfig rsyslog on
[root@mng ~]#chkconfig httpd on
[root@mng ~]#chkconfig mysqld on
[root@mng ~]#service rsyslog start
[root@mng ~]#service mysqld start
[root@mng ~]#service httpd start
[root@mng ~]#mysqladmin -u root password P@SS$SQL
mysql -u root -p < /usr/share/doc/rsyslog-mysql-5.8.10/createDB.sql
mysql -u root -p mysql
mysql> GRANT ALL ON Syslog.* TO rsyslog@localhost IDENTIFIED BY 'PasswSyslogServer';
mysql> flush privileges;
mysql> exit
[root@mng ~]# nano /etc/rsyslog.conf
------------------------------------------------------------------------------------------
#### Module ####
$ModLoad imuxsock
$ModLoad imklog
#$ModLoad immark
$ModLoad ommysql
$ModLoad imudp
$UDPServerRun 514
$ModLoad imtcp
$InputTCPServerRun 514
$ModLoad ommail
$ModLoad ommysql
authpriv.* :ommysql:127.0.0.1,Syslog,rsyslog,PasswSyslogServer
--------------------------------------------------------------------------------------------
[root@mng ~]#chkconfig syslog off
[root@mng ~]#service syslog stop
[root@mng ~]#chkconfig rsyslog on
[root@mng ~]#service rsyslog start
[root@mng ~]# ps -ax | grep sys
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
1000 ? Sl 0:00 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
[root@mng ~]#wget http://download.adiscon.com/loganalyzer/loganalyzer-3.6.3.tar.gz
[root@mng ~]# tar zxvf loganalyzer-3.6.3.tar.gz
[root@mng ~]# mv loganalyzer-3.6.3/src /var/www/html/log
[root@mng ~]# mv loganalyzer-3.6.3/contrib/* /var/www/html/log/
[root@mng ~]# cd /var/www/html/log/
[root@mng log]# chmod u+x configure.sh secure.sh
[root@mng log]#./configure.sh