chrony 同步系统时间

chrony 配置文件使用腾讯外网ntp grep tencent /etc/chrony.conf -A 2 -B 2 # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server ntp1.tencent.com iburst server ntp2.tencent.com iburst server ntp3.tencent.com iburst server ntp4.tencent.com iburst server ntp5.tencent.com iburst # Record the rate at which the system clock gains/losses time.

Published
Categorized as linux

Http Headers 文档地址

HTTP 标头(header)允许客户端和服务器通过 HTTP 请求(request)或者响应(response)传递附加信息。 一个 HTTP 标头由它的名称(不区分大小写)后跟随一个冒号(:),冒号后跟随它具体的值。 http 请求头 快速查询.

Published
Categorized as web

查找spring可配置项

spring 配置文件有哪些可配置项, 可以从官网查询 https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html

Published
Categorized as java, web

如何使用nologin用户执行命令

nologin 用户执行命令 [root@node1 ~]# ls -al /tmp/qemu-user-test ls: cannot access ‘/tmp/qemu-user-test’: No such file or directory [root@node1 ~]# su -s /bin/bash -c ‘echo “i am nologin user.” > /tmp/qemu-user-test’ qemu [root@node1 ~]# ls -al /tmp/qemu-user-test -rw-r–r– 1 qemu qemu 19 Jan 31 11:29 /tmp/qemu-user-test [root@node1 ~]# cat /tmp/qemu-user-test i am nologin user.

Published
Categorized as linux

检查ip冲突的方法

使用arping检查ip冲突. [root@node1 ~]# arping -I enp4s0f0 192.168.11.3 ARPING 192.168.11.3 from 192.168.12.196 enp4s0f0 Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.683ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.551ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.562ms Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C] 0.548ms 如果返回的mac 地址有多个, 说明这个局域网出现ip冲突.