# rsync 使用指南 🚀 rsync 是一个用于远程和本地同步文件的工具,支持增量传输、压缩以及权限保留。 # 1. 安装 rsync 🛠️ # 🐧 Linux(Ubuntu/Debian) sudo apt install rsync# 🍏 macOS brew install rsync# 🪟 Windows(使用 WSL 或 Cygwin) # 在 WSL 环境中安装(以 Ubuntu 为例)sudo apt install rsync# 2. rsync 基本语法 📜 rsync [选项] 源 目标 📂 本地同步: rsync /source/...

# Windows 服务配置教程(WinSW & NSSM) WinSW(Windows Service Wrapper)和 NSSM(Non-Sucking Service Manager)是两种常见的方法,可以将 JAR 包、Nginx、Node.js 服务器等注册为 Windows 服务,实现 后台运行 和 开机自启。 # 1. 使用 WinSW 配置 Windows 服务 # 1.1 下载 WinSW 📥 官网下载:https://github.com/winsw/winsw/releases 🔽 下载 WinSW-x64.exe 📝 重命名 为...

# 单引号、双引号、反引号的区别 # 单引号 单引号用来表示字符,也就是 rune 类型 (等价于一个 32 位的整数),它只能包含一个字符,如: var c0 rune = '😀'var c1 byte = 'a'var c2 int = '中'fmt.Printf("c1:%c c2:%c\n", c1, c2)输出: c1:a c2:中 # 双引号 双引号用来表示字符串 string,字符串中可以包含转义字符,如: var s string = "hello"var s2 string =...

Cron 表达式可视化 什么是 Cron Cron 是类 Unix 系统上的一个时间表进程(daemon),用于在固定时间、日期、间隔运行程序或脚本。它常用于系统管理任务,如备份、系统维护和其他周期性任务。 Cron 基本概念 Cron 表(Crontab):保存定时任务的文件。 Cron 表达式:定义任务何时运行的格式,由五个时间字段和一个命令字段组成。 Cron 表达式格式 * * * * * command_to_execute- - - - -| | | | || | | | +---- 星期几 (0 - 7) (星期天为0或7)| | | +------ 月份 (1 - 12)| |...

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post h$ hexo new "My New Post"More info: Writing # Run server h$...