[Linux] linux系统创建交换文件(swapfile) 2023-09-07 linux 442 words 1 min read linux系统创建交换文件(swapfile) 查看交换空间大小 1 2 3 4 # free -h total used free shared buff/cache available Mem: 1.8Gi 699Mi 465Mi 3.0Mi 694Mi 1.0Gi Swap: 2.0Gi 885Mi 1.1Gi 如果没有设置交换空间,则Swa Read more...
[Shell] shell变量替换:=、=、:-、-、:?、?、:+、+句法 2023-09-07 linux shell 2854 words 6 mins read shell变量替换:=、=、:-、-、:?、?、:+、+句法 linux bash shell之变量替换::=句法、=句法、:-句法、-句法、=?句法、?句法、 Read more...
[Nats] nats 简介及使用 2023-09-07 golang 2482 words 5 mins read NATS是一个开源、轻量级、高性能的分布式消息中间件,实现了高可伸缩性和优雅的Publish/Subscribe模型,使用Golang语言开 Read more...
[Linux] bash标准输出及文件重定向 2023-08-20 linux shell 1304 words 3 mins read bash标准输出及文件重定向 标准输入输出 在Linux中,每个进程都会有三个文件,即打开的输入输出流,也叫标准I/O流。 并且这三个文件会进行重 Read more...
[Go] Golang服务平滑重启更新 2023-07-13 golang 705 words 2 mins read 重启更新Golang服务,不中断请求中的连接,请求会继续响应,实现服务平滑处理。 Github开源稳定解决方案 facebookgo/grace - Package grace provides a library that makes it easy to build socket based servers Read more...