摘要: 代理 手动 设置终端代理 export all_proxy=http://127.0.0.1:10808 清除代理 unset all_proxy 阅读全文
posted @ 2025-02-13 17:00 冯元春 阅读(0) 评论(0) 推荐(0) 编辑
摘要: upstream hyperf { # Hyperf HTTP Server 的 IP 及 端口 server 127.0.0.1:9501; } server { # 监听端口 listen 443 ssl; listen [::]:443 ssl; ssl_certificate /var/ww 阅读全文
posted @ 2025-02-12 19:31 冯元春 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 安装 Vue CLI 在终端中运行: npm install -g @vue/cli 创建一个新的 Vue 3 项目: vue create my-vue3-project 阅读全文
posted @ 2025-02-06 10:10 冯元春 阅读(5) 评论(0) 推荐(0) 编辑
摘要: import spacy # 加载中文模型 nlp = spacy.load('zh_core_web_md') # 标准答案和学生答案 correct_answer = "反对兼并战争;大力发展农业,渔业,林业;注重教育;反对暴政,提倡施行仁政;以民为本;" student_answer = "反 阅读全文
posted @ 2025-01-22 14:42 冯元春 阅读(8) 评论(0) 推荐(0) 编辑
摘要: docker login url:1888 --username=username --password=password docker build -t 镜像名 . docker tag 镜像名:标签 49.51.49.181:1888/xiang/镜像名:标签 docker push 49.51 阅读全文
posted @ 2024-12-07 18:01 冯元春 阅读(5) 评论(0) 推荐(0) 编辑
摘要: $query = Amodel::query();; $query->with("user"); if (isset($params['username']) && filled($params['username'])) { $username = $params["username"]; $qu 阅读全文
posted @ 2024-12-07 01:42 冯元春 阅读(25) 评论(0) 推荐(0) 编辑
摘要: $res = shell_exec("git -C /var/www/hyperf pull 2>&1"); 启动hyperf项目 sudo php bin/hyperf.php start 阅读全文
posted @ 2024-11-23 02:25 冯元春 阅读(3) 评论(0) 推荐(0) 编辑
摘要: docker phpmyadmin 连接宿主mysql数据库报错:mysqli::real_connect(): (HY000/2002): Connection refused 解决: bind-address:0.0.0.0 阅读全文
posted @ 2024-11-22 00:10 冯元春 阅读(33) 评论(0) 推荐(0) 编辑
摘要: $records = DB::table('order') ->where('buy_at', '<', Carbon::now()->subMinutes(50)) ->get(); 阅读全文
posted @ 2024-11-19 21:41 冯元春 阅读(12) 评论(0) 推荐(0) 编辑
摘要: $container = ApplicationContext::getContainer(); $redis = $container->get(Redis::class); $timestamp = time() + $delay_seconds; return $redis->zAdd($qu 阅读全文
posted @ 2024-11-07 00:22 冯元春 阅读(14) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示