Linux運維之(十九)rsyslog附屬軟件日誌分析平臺loganalyzer

loganalyzer

安裝步驟

[root@host1 ~]# yum -y install httpd mariadb* php php-gd php-xml php-mysqlnd rsyslog-mysql libcurl-devel net-snmp-devel
[root@host1 ~]# systemctl restart httpd
[root@host1 ~]# systemctl restart mariadb
[root@host1 ~]# mysqladmin -u root -p password 12345

在這裏插入圖片描述

MariaDB [(none)]> grant all privileges on *.* to loguser@'localhost' identified by '12345';
MariaDB [(none)]> flush privileges;

在這裏插入圖片描述

[root@host1 ~]# cd /usr/share/doc/rsyslog-8.24.0/
[root@host1 rsyslog-8.24.0]# mysql -u root -p < mysql-createDB.sql 
[root@host1 rsyslog-8.24.0]# vi /etc/rsyslog.conf
#做如下修改:
#打開第12行註釋,添加14、15行內容

在這裏插入圖片描述

[root@host1 rsyslog-8.24.0]# systemctl restart rsyslog
[root@host1 rsyslog-8.24.0]# cd ~
[root@host1 ~]# tar zxvf loganalyzer-4.1.10.tar.gz 
[root@host1 ~]# mv loganalyzer-4.1.10 loganalyzer
[root@host1 ~]# mv loganalyzer /var/www/html/
[root@host1 ~]# cd /var/www/html/
[root@host1 html]# ll
[root@host1 html]# cd loganalyzer/src/
[root@host1 src]# touch config.php
[root@host1 src]# chmod 666 config.php 
[root@host1 src]# chown -R apache:apache /var/www/html/loganalyzer/

在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章