清羽Gist

Explore

  • Všechny gisty
  • Topics
  • Users
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 한국어 Polski Português Русский Türkçe Українська 简体中文 繁體中文

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Přihlásit se
n

Topics

ntp

Nedávno Vytvořeno Nejméně nedávno Vytvořeno Nedávno Aktualizováno Nejméně nedávno Aktualizováno
LiuShen

LiuShen / 通过HTTP同步时间

Naposledy aktivní 2 months ago bash ntp

在123端口无法使用的情况下通过http请求头携带的时间实现时间同步

0 0 1
sync-time.sh 1 Soubory
1 #!/bin/bash
2
3 set -e
4
5 URL="http://www.baidu.com/"
6 COUNT=10
7
8 echo "正在通过百度 HTTP 校准系统时间..."
9 echo
清羽Gist © 2026 QingyuGist
陕ICP备2024028531号-2 陕公网安备61011602000637号