crontab 定时任务
摘要:统是Centos7. 一、创建一个任务文件 1、命令行输入crontab -e会自动打开一个空文件: 比如输入以下内容: SHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/bin 0 0,12 * * * certbot renew --quiet 二、保存
阅读全文
posted @
2022-10-20 16:14
wakaka_wka
阅读(25)
推荐(0) 编辑
CentOS 安装 certbot
摘要:安装 先安装 snapd,使用 snap 安装 certbot 可以隔离环境影响 yum install snapd # 设置为开机启动并立即启动 sudo systemctl enable --now snapd # 建立软链接 sudo ln -s /var/lib/snapd/snap /sn
阅读全文
posted @
2022-10-20 14:52
wakaka_wka
阅读(344)
推荐(0) 编辑
HttpWebRequest 请求被中止: 未能创建 SSL/TLS 安全通道
摘要:在HttpWebRequest前设置代码 ServicePointManager.Expect100Continue = true; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtoco
阅读全文
posted @
2022-10-17 12:29
wakaka_wka
阅读(274)
推荐(0) 编辑