centos 配置 NTP 服务

简介 NTP是网络时间同步协议,就是用来同步网络中各个计算机的时间的协议。   NTP服务端配置 1. 检查是否已经安装 ntp 若未安装使用yum进行安装 查看是否安装 rpm -q ntp  yum安装命令 yum –y install ntp 1.1 启动服务( 如出现异常, 请先停止服务 ) service ntpd start 1.2 开放端口 123 /sbin/iptables -I INPUT -p tcp –dport 123 -j ACCEPT 2. 同步时间 ntpdate ntp.api.bz 返回与服务器相差时间, 即同步成功。 3. 同步硬件时 …

gulp 批量混淆代码

package.json {   “name”: “camera”,   “version”: “1.0.0”,   “description”: “2019年4月15日14:12:51”,   “main”: “config.js”,   “scripts”: {     “test”: “echo \”Error: no test …

利用 heatmap.js 创建热力图

代码 <!DOCTYPE html> <html> <head>   <meta charset=“UTF-8”>   <title></title>   <style>     div {       width: 600px;       height: 400px;       border: none;     }   </style> </head> <body>   <div id=“heatmap”>& …

解决 position: fixed 无效

无效原因一: -webkit-overflow-scrolling 在移动开发中,用户体验是非常重要的点。 所以少不了平滑滚动,通常使用 -webkit-overflow-scrolling 实现这一效果 该属性控制元素在移动设备上是否使用滚动回弹效果。 webkit-overflow-scrolling: touch; /* 当手指从触摸屏上移开,会保持一段时间的滚动 */ -webkit-overflow-scrolling: auto; /* 当手指从触摸屏上移开,滚动会立即停止 */ 父元素的 -webkit-overflow-scrolling 属性值为 touch,子元素的 pos …

fingerprint2 计算内容详解

配置详解 userAgent: navigator.userAgent language: 语言 colorDepth: 返回目标设备或缓冲器上的调色板的比特深度 screen.colorDepth deviceMemory: 以千兆字节为单位返回设备内存量。该值是通过舍入到最接近的2的幂并将该数除以1024而给出的近似值 pixelRatio: 像素比 devicePixelRatio hardwareConcurrency: navigator.hardwareConcurrency 返回可用于运行在用户的计算机上的线程的逻辑处理器的数量 screenResolution: 检测屏幕宽高, …

腾讯云PSQL数据库外部表使用

使用工具 Navicat Premium 12 create extension postgres_fdw; create server smp_fdw foreign data wrapper postgres_fdw options (host ‘10.0.0.4’,dbname ‘SMP’, port ‘5432’, instanceid ‘postgres-k0pfmwks’); postgres-k0pfmwks 为数据库实例ID create user mapping for PUBLI …

css 流动边框

<!DOCTYPE html> <html> <head> <meta charset=“utf8”> <style> :root {     –border-flow-size: 10em;     –border-flow-width: calc(var(–border-flow-size) / 40);     –border-flow-width-double: calc(var(–border-flow-width)*2);     &#82 …