上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 169 下一页
摘要: 一,操作允许ip伪装 1,# 允许防火墙伪装IP [root@blog ~]# firewall-cmd --add-masquerade --permanent success 效果: [root@blog ~]# more /etc/firewalld/zones/public.xml <?xm 阅读全文
posted @ 2024-08-12 15:25 刘宏缔的架构森林 阅读(378) 评论(0) 推荐(0)
摘要: 一,添加别名 1,代码: //初始化es的client $client = $this->_init_es(); // 确定参数 $params = [ 'index' => 'gs_second', //索引名字 'name' => 'gs_second_idx', //索引的别名 ]; // 执 阅读全文
posted @ 2024-08-08 14:59 刘宏缔的架构森林 阅读(41) 评论(0) 推荐(0)
摘要: 一,查看节点的fs得到索引数据的保存目录 说明: 修改索引数据的保存目录,通常是因为要把数据单独保存到服务器专用的数据盘,方便扩展\管理\备份等 访问: http://localhost:9200/_nodes/stats/fs 也可以从命令行访问: [root@lhdpc elasticsearc 阅读全文
posted @ 2024-08-08 13:48 刘宏缔的架构森林 阅读(475) 评论(0) 推荐(0)
摘要: 一,只包含中文: 'city' => 'required|regex:/^[\x{4e00}-\x{9fa5}]+$/u', 正则表达式 [\x{4e00}-\x{9fa5}] 匹配所有中文字符,其中 \x{4e00} 是中文字符的开始码,\x{9fa5} 是结束码。 u 修饰符用于正则表达式,以支 阅读全文
posted @ 2024-08-07 19:32 刘宏缔的架构森林 阅读(328) 评论(0) 推荐(0)
摘要: 一,代码: 1, 中间件 <?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; use App\ext 阅读全文
posted @ 2024-08-07 17:26 刘宏缔的架构森林 阅读(58) 评论(0) 推荐(0)
摘要: 一,报错: {"index":{"_index":"my_office","_id":"48","status":400 ,"error":{"type":"document_parsing_exception","reason":"[1:1123] failed to parse field [p 阅读全文
posted @ 2024-08-06 16:34 刘宏缔的架构森林 阅读(280) 评论(0) 推荐(0)
摘要: 一,使用-u参数指定用户: 1,添加编辑命令时指定用户 # -e : 编辑 # -u : 指定用户名 root@lhdpc:/data/api# crontab -e -u www-data crontab: installing new crontab 2,查看cron中命令时指定用户: # -l 阅读全文
posted @ 2024-08-06 15:29 刘宏缔的架构森林 阅读(1081) 评论(0) 推荐(1)
摘要: 一,真实用户id和有效用户id的区别: 1, 真实用户 ID (RUID) 是启动进程的用户的 ID 2,有效用户 ID (EUID) 是当前执行进程的用户 ID 即:进程启动时的用户id是真实用户 ID (RUID), 但实际执行时为了控制权限会切换为:有效用户 ID 二,代码:切换用户和组的有效 阅读全文
posted @ 2024-08-06 15:05 刘宏缔的架构森林 阅读(99) 评论(0) 推荐(0)
摘要: 一,代码: <?php namespace App\Console\Commands; use Illuminate\Console\Command; class IndexAllCommand extends Command { /** * The name and signature of th 阅读全文
posted @ 2024-08-06 10:18 刘宏缔的架构森林 阅读(27) 评论(0) 推荐(0)
摘要: 一,创建command 1,执行命令 liuhongdi@lhdpc:/data/api$ php artisan make:command IndexAllCommand 2,查看创建的文件: <?php namespace App\Console\Commands; use Illuminate 阅读全文
posted @ 2024-08-06 09:57 刘宏缔的架构森林 阅读(261) 评论(0) 推荐(0)
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 169 下一页