前言: Linux系统有两个时间同步服务:ntpd和chrony,一般较低版本的系统使用ntpd,新版本系统使用chrony. ntpd有两种校时策略slew和step: slew是平滑.缓慢的渐进式调整(adjusts the clock in small steps所谓的微调). step的同步方式指一个一个的跳跃(跳跃式调整). Chrony服务默认采用了渐进式模式. 时间跳跃式调整可能会对服务器业务造成影响,比如数据库事务.这里主要针对ntpd服务配置微调模式. 微调模式配置: 配置nt
Matrix The fitrst thing we do,let's kill all the language lawyers. -- Henry VI, Part II The "programming language of the future" Content 万物之始(The beginning) 基础(Basic) 变量(Value) 数据类型(Data type) 注释(Code comments) 函数(Function) 条件语句(Conditional stat
大小写转换: function ToLower: string; function ToLower(LocaleID: TLocaleID): string; function ToLowerInvariant: string; function ToUpper: string; function ToUpper(LocaleID: TLocaleID): string; function ToUpperInvariant: string; class function LowerCase(co
1.由于需要用到编译,所以先安装xcode,注意利用appstore安装xcode后,记得打开xcode 点install,也可以建立一个macos项目,运行下 试下. 2. 去官网下载:https://redis.io/ 然后执行,make test 这步会很久 make test 完毕后会看到: 然后再执行: sudo make install 然后再运行它,启动redis redis-server