上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 169 下一页
摘要: 一,ssh限制指定用户从固定ip登录: 1.配置 配置文件 [root@blog ~]# vi /etc/ssh/sshd_config 配置项: AllowUsers lhdop git@1.2.3.4 2,测试效果,ssh确认git用户的密码正确后会拒绝你 [op@blog work]$ git 阅读全文
posted @ 2024-07-16 10:17 刘宏缔的架构森林 阅读(416) 评论(0) 推荐(0)
摘要: 一,关于gitolite 1,官网: https://gitolite.com/gitolite/index.html 2,代码网站: https://github.com/sitaramc/gitolite 3,说明: 3个角色: git服务器,上面运行gitolite/ssh服务 管理服务器:用 阅读全文
posted @ 2024-07-16 09:41 刘宏缔的架构森林 阅读(112) 评论(0) 推荐(0)
摘要: 一,查看当前所有的zone 1,列出当前系统中所有的zone [root@blog ~]# firewall-cmd --get-zones block dmz drop external home internal nm-shared public trusted work 2,系统预设的zone 阅读全文
posted @ 2024-07-15 15:15 刘宏缔的架构森林 阅读(691) 评论(0) 推荐(0)
摘要: 一,zone的target有哪些取值? 1,一个zone的target有4个取值: default、ACCEPT、REJECT、DROP,如果不设置默认为default ACCEPT: 允许通过 REJECT: 禁止通过,会返回错误消息 DROP: 禁止通过,直接丢弃数据包 default: 和RE 阅读全文
posted @ 2024-07-15 14:06 刘宏缔的架构森林 阅读(541) 评论(0) 推荐(0)
摘要: 一,php访问/tmp文件夹中文件会报错: 代码: $filePath = "/tmp/php-temp/keji.jpeg"; $is_ex = file_exists($filePath); //print_r("is_ex: ".$is_ex); if ($is_ex){ echo "文件". 阅读全文
posted @ 2024-07-12 19:17 刘宏缔的架构森林 阅读(306) 评论(0) 推荐(0)
摘要: 一,创建bucket bucket是,存储空间是OSS的全局命名空间,相当于数据的容器,可以存储若干文件。 点 完成创建 按钮 二,创建账号供访问oss资源 创建用户成功后,把accesskey id和accesskey secret复制保存下来 三,创建对bucket的访问策略 最后点击 确定 按 阅读全文
posted @ 2024-07-12 15:10 刘宏缔的架构森林 阅读(43) 评论(0) 推荐(0)
摘要: 一,用systemctl管理es: 1,创建service配置文件: [root@iZ2zejc9t0hf6pnw6sewrxZ config]# vi /lib/systemd/system/elasticsearch.service service文件代码: [root@blog config] 阅读全文
posted @ 2024-07-11 17:33 刘宏缔的架构森林 阅读(217) 评论(0) 推荐(0)
摘要: 一,php代码 1,用composer安装elasticsearch库 [lhdop@blog dignews]$ composer require elasticsearch/elasticsearch 2, 创建索引: //创建索引 public function create(){ //初始化 阅读全文
posted @ 2024-07-11 16:26 刘宏缔的架构森林 阅读(54) 评论(0) 推荐(0)
摘要: 一,创建索引 1,简单创建索引: [lhdop@blog ~]$ curl -X PUT "localhost:9200/my_suoyin" {"acknowledged":true,"shards_acknowledged":true,"index":"my_suoyin"} 2, 查看创建索引 阅读全文
posted @ 2024-07-11 14:44 刘宏缔的架构森林 阅读(531) 评论(0) 推荐(0)
摘要: 一,安装插件 1,查看已安装的插件: [lhdop@blog ~]$ curl -X GET "localhost:9200/_cat/plugins?v&s=component" name component version 2,从命令行安装smartcn分词插件: [lhdop@blog bin 阅读全文
posted @ 2024-07-11 11:53 刘宏缔的架构森林 阅读(375) 评论(0) 推荐(0)
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 169 下一页