[root@syslog ~]# service rsyslog restartShutting down system logger: [ OK ]Starting system logger: [ OK ]
创建mysql用户并赋予权限
mysql> GRANT ALL ON Syslog.* TO 'syslog'@'%' IDENTIFIED BY 'passwd';Query OK, 0 rows affected (0.00 sec)mysql> FLUSH PRIVILEGES;Query OK, 0 rows affected (0.00 sec)
导入表
[root@syslog ~]# mysql -usyslog -ppasswd < /usr/share/doc/rsyslog-mysql-5.8.10/createDB.sql
[root@www ~]# tar xf loganalyzer-3.6.4.tar.gz -C /var/www/html/[root@www ~]# cd /var/www/html/[root@www html]# lsloganalyzer-3.6.4[root@www html]# cp -a loganalyzer-3.6.4/src/ log cp -a loganalyzer-3.6.4/contrib/*.sh log/[root@www html]# cd log[root@www log]# chmod +x *.sh[root@www log]# ./configure.sh [root@www log]# ./secure.sh [root@www log]# chmod 666 config.php
启动httpd服务
[root@www log]# service httpd startStarting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using www.anyisalin.com for ServerName [ OK ]