09 2024 档案
摘要:#!/bin/bash # 这是一个导出MySQL数据库的shell脚本 # 设置MySQL用户名、密码和数据库名称 username="" password="" database="" # 导出数据库 # 获取当前时间戳 timestamp=$(date +"%Y%m%d%H%M%S") # 导
阅读全文
摘要:sed -i 's/DB_HOST=.*/DB_HOST=1.1.1.1/' /var/www/html/mine/.env
阅读全文
摘要:public function main() { $redis = ApplicationContext::getContainer()->get(\Redis::class); while (true) { $message = $redis->rpop(self::KEY_GROUP_TASK)
阅读全文