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