CentOS安装perl-Sys-Syslog
Download latest openfusion-release rpm from http://repo.openfusion.net/centos6-x86_64/ Install openfusion-release rpm: # rpm -Uvh openfusion-release*rpm Install perl-Sys-Syslog rpm package: # yum install perl-Sys-Syslog
网事随记
Download latest openfusion-release rpm from http://repo.openfusion.net/centos6-x86_64/ Install openfusion-release rpm: # rpm -Uvh openfusion-release*rpm Install perl-Sys-Syslog rpm package: # yum install perl-Sys-Syslog
1. 安装ntpdate工具 # yum -y install ntp ntpdate 2. 设置系统时间与网络时间同步 # ntpdate cn.pool.ntp.org 3. 将系统时间写入硬件时间 # hwclock --systohc 4.强制系统时间写入CMOS中防止重启失效 hwclock -w 或clock -w
运行goaccess输出到nginx,Tomcat日志文件applog.txt通过ftp定时上传至/var/ftp/ goaccess /var/ftp/applog.txt -o /usr/share/nginx/html/index.html -p /usr/local/etc/goaccess-tomcat.conf --real-time-html --daemonize --geoip-database=/usr/share/GeoIP/GeoLiteCity.dat 查看goaccess后台运行状态,服务端与浏览器默认通过TCP7890端口实现实时传输
1.关机 (系统的关机、重启以及登出 ) 的命令 shutdown -h now 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdown -h hours:minutes & 按预定时间关闭系统 shutdown -c 取消按预定时间关闭系统 shutdown -r now 重启(1) reboot 重启(2) logout 注销
V