上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 186 下一页
摘要: 一,客户端机器:安装openvpn 用yum安装 # yum install openvpn 查看当前版本: # openvpn --version OpenVPN 2.5.11 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要: 一,出现错误的代码: 1,代码 func startBackgroundJob() { ticker := time.NewTicker(1 * time.Minute) timeStop, _ := time.Parse("2006-01-02 15:04:05", "2025-07-08 09: 阅读全文
posted @ 2025-07-19 07:40 刘宏缔的架构森林 阅读(89) 评论(0) 推荐(0)
摘要: 一,代码 //定时运行功能, func startBackgroundJob() { ticker := time.NewTicker(1 * time.Minute) go func() { for range ticker.C { // 执行后台任务逻辑 now := time.Now() // 阅读全文
posted @ 2025-07-19 07:39 刘宏缔的架构森林 阅读(11) 评论(0) 推荐(0)
摘要: 一,文档 地址 https://www.workerman.net/q/14237 二,子进程退出: 代码: Worker::stopAll(); 例子: public function list(Request $request) { Worker::stopAll(); $where = []; 阅读全文
posted @ 2025-07-19 07:39 刘宏缔的架构森林 阅读(17) 评论(0) 推荐(0)
摘要: 一,报错信息 某个站点测试用octane运行后又改回通过php-fpm运行, 访问时报错: In Application.php line 933: Class "Laravel\Octane\OctaneServiceProvider" not found 二,解决: 原因是因为之前为项目安装过o 阅读全文
posted @ 2025-07-19 07:38 刘宏缔的架构森林 阅读(34) 评论(0) 推荐(0)
摘要: 一,官方文档地址: https://openvpn.net/community-resources/configuring-client-specific-rules-and-access-policies/ 二,可以使用的地址对: [ 1, 2] [ 5, 6] [ 9, 10] [ 13, 14 阅读全文
posted @ 2025-07-09 13:38 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要: 一,报错信息 web nginx[55459]: nginx: [warn] low address bits of 10.8.0.14/24 are meaningless in /opt/soft/nginx/conf/conf.d/adm.conf:52 原因: 这个问题只是因为写命令时没有严 阅读全文
posted @ 2025-07-05 08:51 刘宏缔的架构森林 阅读(74) 评论(0) 推荐(0)
摘要: 一,修改openvpn配置文件 # vi server.conf 修改这里指定端口: port 1194 例如:改为2194 然后重启openvpn服务 # systemctl restart openvpn-server@server.service 二,配置防火墙 1,本机器防火墙 查看open 阅读全文
posted @ 2025-07-05 08:51 刘宏缔的架构森林 阅读(0) 评论(0) 推荐(0)
摘要: 一,格式: <ca> </ca> <cert> </cert> <key> </key> key-direction 1<tls-auth> </tls-auth> 二,看一个例子: 以上海大学的vpn为例:来源: https://vpn.shu.edu.cn/index/OpenVPNsysm/A 阅读全文
posted @ 2025-07-05 08:50 刘宏缔的架构森林 阅读(1) 评论(0) 推荐(0)
摘要: 一,nginx的配置文件 例子: server { listen 443 ssl; listen 1597 ssl; server_name adm.laowang.com; root /web/site/public; index index.php; access_log /logs/adm/a 阅读全文
posted @ 2025-07-05 08:48 刘宏缔的架构森林 阅读(198) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 186 下一页