清羽Gist

Explore

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

user:thomas 사용자가 만든 gist

title:mygist 주어진 제목의 gist

description:sync 주어진 설명의 gist

filename:myfile.txt 주어진 파일 이름을 가진 gist

extension:yml 주어진 확장자를 가진 gist

language:go 주어진 언어를 가진 gist

topic:homelab 주어진 토픽의 gist

all:systemctl 모든 필드 검색

로그인
b

Topics

bash

최신 순 생성일 오래된 순 생성일 최신 순 수정일 오래된 순 수정일
LiuShen

LiuShen / 通过HTTP同步时间

마지막 활동 2 months ago bash ntp

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

0 0 1
sync-time.sh 1 파일
1 #!/bin/bash
2
3 set -e
4
5 URL="http://www.baidu.com/"
6 COUNT=10
7
8 echo "正在通过百度 HTTP 校准系统时间..."
9 echo
LiuShen

LiuShen / Linux服务器添加SWAP虚拟内存

마지막 활동 6 months ago bash linux ram swap

在Linux服务器添加SWAP虚拟内存,提高服务器使用率

0 0 1
swap.sh 1 파일
1 #!/bin/bash
2
3 # ============================
4 # 创建一个 4GB 的 Swap 文件
5 # ============================
6
7 # 步骤 1:创建 4GB 的 Swap 文件
8 echo "步骤 1:创建 4GB 的 Swap 文件"
9
10 # 使用 fallocate 创建一个 4GB 的 swap 文件
清羽Gist © 2026 QingyuGist
陕ICP备2024028531号-2 陕公网安备61011602000637号