日志服务器(15)

2021-10-20 09:47:50 浏览数 (1)

搜索日志

点击 【Search】 选项卡

可以根据时间范围和日志级别进行检索


修改配置

点击 【Admin Center】 选项卡


命令汇总

  • yum install httpd -y
  • /etc/init.d/httpd start
  • chkconfig httpd on
  • chkconfig httpd --list
  • vim /etc/sysconfig/iptables
  • /etc/init.d/iptables reload
  • iptables -L -nv | grep 80
  • rpm -ivh Percona-Server-*
  • /etc/init.d/mysql start
  • mysqladmin -uroot password 'mysql'
  • yum install php
  • cd /var/www/html/
  • cat >index.php <<EOF
  • cat index.php
  • setenforce 0
  • getenforce
  • su - root
  • rpm -qa | grep rsyslog
  • yum -y install rsyslog-mysql
  • cd /usr/share/doc/rsyslog-mysql-5.8.10/
  • wc -l createDB.sql
  • cat createDB.sql
  • mysql -u root -pmysql < createDB.sql
  • vim /etc/rsyslog.conf
  • grep -v "^#" /etc/rsyslog.conf | grep -v "^$"
  • /etc/init.d/rsyslog restart
  • netstat -an | grep 514
  • vim /etc/sysconfig/iptables
  • /etc/init.d/iptables reload
  • iptables -L -nv | grep 514
  • vim /etc/rsyslog.conf
  • grep -v "^#" /etc/rsyslog.conf | grep -v "^$"
  • /etc/init.d/rsyslog restart
  • vim /etc/bashrc
  • tail -n 3 /etc/bashrc
  • source /etc/bashrc
  • tailf /var/log/messages
  • wget http://download.adiscon.com/loganalyzer/loganalyzer-3.6.6.tar.gz
  • tar zxf loganalyzer-3.6.6.tar.gz
  • cd loganalyzer-3.6.6
  • mkdir -p /var/www/html/loganalyzer
  • rsync -a src/* /var/www/html/loganalyzer/
  • cat contrib/configure.sh
  • touch /var/www/html/loganalyzer/config.php
  • chmod 666 /var/www/html/loganalyzer/config.php
  • yum clean all
  • yum install php-mysql
  • > config.php
  • yum clean all
  • yum install php-gd
  • /etc/init.d/httpd restart

原文地址

0 人点赞