Environment: centos 5.3 x32 log server environment: nginx php mysql rsyslog rsyslog-mysql loganalyzer log client environment: rsyslog log server 192.168.0.100 log client server 192.168.0.101
one, nginx+php mysql Installation
Please check http://cqfish.blog.51cto.com/622299/393351http://cqfish.blog.51cto.com/622299/393352 Second, log server installation # yum install rsyslog rsyslog- Mysql configuration # vi /etc/rsyslog add the following lines $ModLoad immark # provides --MARK-- message capability $ModLoad ommysql *.* :ommysql:localhost,Syslog,root,pass$ModLoad imudp.so # provides UDP syslog reception $UDPServerRun 514 # start a UDP syslog server at standard port 514 Note: *.* :ommysql:localhost,Syslog,root,passlocalhost for mysql host address Syslog for mysql database root for mysql username pass for mysql user root password $UDPServerRun 514 UDP port, accept client log import database # mysql < /usr/share/doc/rsyslog-mysql-3.22.1/createDB.sql Note: createDB.sql The Syslog database is automatically created. 3. Start the rsyslog log server # /etc/init.d/syslog stop Stop the syslog log # /etc/init.d/rsyslog start Start the rsyslog log and set the rsyslog to boot #chkconfig --level 3 Syslog off Stop syslog boot # chkconfig --level 3 rsyslog on Enable rsyslog boot 4, install loganalyzer server # tar zxvf loganalyzer-3.2.1.tar.gz# cp -rf /root/loganalyzer-3.2.1/src/* /var/html/syslog Note: /var/html/syslog is the web server directory # cd /var/html/syslogCreate config.php configuration file # touch config.php# chmod 666 config.phpstart nginx# /opt/Nginx/sbin/nginx enter http://192.168.0.100 in IE for loganalyzer configuration. Prompt for the next step. Next operation Note: Note that the database table name is case-sensitive. It should be written as SystemEvents 5. Log server client installation # yum Install rsyslog# vi /etc/rsyslog add the following content *.* @192.168.0.100 Note: 192.168.0.100 is the log server IP address
One of the benefits of learning Linux is that you can understand how the hardware works and the pri
Overview This article describes how to transfer files between a Linux host and a Windows host. Beca
First install CentOS6 to install rp-pppoe this software, the previous version of centos is installed
Linux shared memory Shared memory is a memory area reserved by the system for communication between
Linux displays the Chinese character file name on the FAT partition
Briefly explain the four intrusion levels for Linux servers
WindowsXP classic failure network failure articles
Create a mysql database note with c language under linux
Linux read-write lock implementation tutorial
Common security policy setting method under Linux
Linux shell implements HTTP service
How to determine whether Linux is running on a virtual machine
Restore deleted files under Ext3
Linux tar.gz, tar, zip, etc. decompress, compress the command
Let Win7 finish the patch infrequently prompt to restart the system
Win8/office phone activates English voice Chinese translation
Win10 upgrade KB3122947 after the error 80070643 how to do?
Win8.1 blue screen error code 0x0000007F repair method
How to view Win10 disk test results
Win7 64-bit Ultimate Edition makes SSD SSD faster optimization method
According to these transformations, Win8's Charms sidebar
Windows 7 Media Center to see network video encountered problems
How to retrieve the windows8 command prompt
LOL anti-day new heroes hunter twins 3 levels of single-handed dragons hit the second dragon