摘要:
在ks8开发中需要将容器优雅的下电。 容器内如果一号进程就是服务进程时通常需要在业务层面实现当收到signal后对一些资源的回收和清理操作,本文主要针对一号进程非服务进程通过后台进程管理服务进程的实现方法。 启动脚本开始处添加trap函数,当接收到sigterm信号时执行退出操作。 handler的 阅读全文
posted @ 2025-02-17 20:35
天涯海角&咫尺天涯
阅读(12)
评论(0)
推荐(0)
摘要:
start() { # ()创建子进程 ( flock -x 200 # 200 文件描述符,进程级别的。 ctl_n=$(ps -fu ${USER} | grep 'xxx start' | grep -v 'grep' | grep -v "$$" | wc -l) # grep -v "$$ 阅读全文
posted @ 2025-02-13 17:13
天涯海角&咫尺天涯
阅读(3)
评论(0)
推荐(0)
摘要:
解决方法: 1. 使用自定义的openssl-ca.cnf openssl req -new -key client.key -out client.csr -subj "/C=cn/ST=nanjing/L=nanjing/O=zte/OU=zte/CN=localhost" -config ./ 阅读全文
posted @ 2025-02-12 16:02
天涯海角&咫尺天涯
阅读(19)
评论(0)
推荐(0)
摘要:
1. 使用 chage 命令可以查看当前用户的密码过期信息: chage -l ci Last password change : Feb 01, 2025Password expires : May 02, 2025Password inactive : neverAccount expires 阅读全文
posted @ 2025-02-10 14:28
天涯海角&咫尺天涯
阅读(110)
评论(0)
推荐(0)
摘要:
// debug 调试代码发现 CryptoUtil.nonce卡住,继续跟踪发现是random.nextInt方法阻塞。 public ScramSession start(String user) { String nonce = CryptoUtil.nonce(nonceLength, se 阅读全文
posted @ 2025-02-06 15:56
天涯海角&咫尺天涯
阅读(6)
评论(0)
推荐(0)