标签 centos 下的文章

1. 安装ntpdate工具 # yum -y install ntp ntpdate 2. 设置系统时间与网络时间同步 # ntpdate cn.pool.ntp.org 3. 将系统时间写入硬件时间 # hwclock --systohc 4.强制系统时间写入CMOS中防止重启失效   hwclock -w   或clock -w

Tags: centos NTP NTPDATE

Read more

运行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端口实现实时传输

Tags: centos goaccess Tomcat Nginx daemonize

Read more

1.关机 (系统的关机、重启以及登出 ) 的命令 shutdown -h now 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdown -h hours:minutes & 按预定时间关闭系统 shutdown -c 取消按预定时间关闭系统 shutdown -r now 重启(1) reboot 重启(2) logout 注销

Tags: centos

Read more

V