linux

Centos7 rsyslog+loganalyzer日志服务器搭建

发布时间:7年前热度: 3521 ℃评论数:

系统环境: 

OS:Centos 7   

mysql:mysql-5.6 

php:5.4 

web:httpd 2.4 



# yum install rsyslog rsyslog-mysql -y 


mysql -u root -p < /usr/share/doc/rsyslog-8.24.0/mysql-createDB.sql 


grant all on Syslog.* to 'Syslog'@'127.0.0.1' identified by 'Syslogassword'; 


# vim /etc/rsyslog.conf 
$ModLoad imudp 
$UDPServerRun 514 
$ModLoad imtcp 
$InputTCPServerRun 514 
$Modload ommysql 
local4.*                                                :ommysql:127.0.0.1,Syslog,Syslog,Syslogassword 


# systemctl start rsyslog && systemctl enable rsyslog 


# yum install mysql-server php php-mysql php-pdo php-common php-gd httpd -ys 


# wget http://download.adiscon.com/loganalyzer/loganalyzer-4.1.5.tar.gz 


# tar xf loganalyzer-4.1.5.tar.gz 


# mv src/* /var/www/html/ 


# mv contrib/* /var/www/html/ 


# chmod u+x /var/www/html/*.sh 


# ./configure.sh 


# ./secure.sh 


# chmod 666 config.php 


# chown apache.apache ./* -R

日志,服务器,搭建

手机扫码访问