时间修改date 月日时分年.秒date -s可以直接设置系统时间比如将系统时间设定成1996年6月10日的命令如下。#date -s 06/10/96将系统时间设定成下午1点12分0秒的命令如下。#date -s 13:12:00时间同步1.首先需了解linux内一任务计划工具crontab cr...
分类:
系统相关 时间:
2014-08-03 01:42:03
阅读次数:
324
一、基本概念mysql5.1版本开始引进event概念。event既“时间触发器”,与triggers的事件触发不同,event类似与linux crontab计划任务,用于时间触发。通过单独或调用存储过程使用,在某一特定的时间点,触发相关的SQL语句或存储过程。二、适用范围 对于每隔一段时间就有固...
分类:
数据库 时间:
2014-08-02 12:37:23
阅读次数:
317
1、时间同步安装Nagios后,有3个检查时间同步的插件,根据不同的检测目标,使用不同的插件:check_ntp:已过时,最好不要再使用;check_ntp_peer:用于检查ntp服务器的健康状况。check_ntp_time:用于检查指定的服务器与ntp服务器之间的时间差。2、如何监控LVS的状态如果要监测..
分类:
移动开发 时间:
2014-08-01 20:08:03
阅读次数:
473
悲剧的背景
跑自动化脚本的机器连不上toast服务器了,
只能自己写个脚本每天跑了。
当然要放在crontab里了。
5 3 * * * sh ~/nosecron.sh
更悲剧的结果
第二天过来一看结果,FAIL了大半。
烦燥的分析
很多都是因为:
catch_pkts.append(pkt.getlayer(IP).build())
AttributeE...
分类:
其他好文 时间:
2014-08-01 16:16:01
阅读次数:
347
Linux服务器要求时间准确,但是Linux本身没有网络时间同步功能,我们需要借助ntpdate功能来实现时间精准.安装ntpdateyum -y installntpdate国内常用ntp服务器列表#ntp.sjtu.edu.cn 202.120.2.101 (上海交通大学网络中心NTP服务器地址...
分类:
系统相关 时间:
2014-08-01 15:20:51
阅读次数:
368
为当前用户创建cron服务1. 键入 crontab -e 编辑crontab服务文件 例如 文件内容如下: */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh 保存文件并并退出*/2 * * * * /bin/sh /home/adm...
分类:
其他好文 时间:
2014-07-31 23:13:30
阅读次数:
246
//make the procedure into block//2014.7.23 OK//#include "CSocket.h"#define NTP_SERVER_IP "192.168.1.12" /*ntp service IP*/int sendpkt(int sockfd...
分类:
其他好文 时间:
2014-07-31 20:20:27
阅读次数:
287
//effect:send ntp packet and get the ntp packet ,make the time OK//2014.7.31 is OK//#include #include #include #include #include #include #include #in...
分类:
其他好文 时间:
2014-07-31 20:18:57
阅读次数:
263
上面说了那么多的常用命令,还有一个功能我们也经常用到,就是定时器、日程表,一般通过crontab来运行;crontab指定在固定时间或固定间隔执行特定的脚本;crontab的常用参数有如下3个:-e :执行文字编辑器来设定日程表,一般默认的编辑器是VI;-r :删除目前所有的日程表;-l :列出目前...
分类:
系统相关 时间:
2014-07-31 19:46:07
阅读次数:
258
#InstallationinstructionsofNagiosonCentOS6.464bitAuthor:LarryZhaoQQ:920057952BLOG:larryzhao.blog.51cto.comE-mail:zhaolong0508@126.com#NTPServiceyuminstallntpservicentpdstartchkconfigntpdoncrontab-e*****/usr/sbin/ntpdatecn.pool.ntp.org#PacketsPreparenagios-3..
分类:
移动开发 时间:
2014-07-31 03:11:56
阅读次数:
398