macOS 设置 vm.max_map_count [RAGFlow]

王柳  金牌会员 | 2024-8-29 12:40:44 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 909|帖子 909|积分 2727

题目

我的环境:macOS M2 内存16GB
使用 ragflow 时,需要设置 vm.max_map_count 来让 ES 正常运行
按照教程来操纵,会产生报错
https://ragflow.io/docs/dev/#start-up-the-server
  1. % sudo launchctl load /Library/LaunchDaemons/com.user.vmmaxmap.plist
  2. Password:
  3. Load failed: 5: Input/output error
  4. Try running `launchctl bootstrap` as root for richer errors.
复制代码

解决

可能跟 launchctl 的用户组有关,时间告急,修改文件权限,然后 load
  1. sudo chown root:wheel    /Library/LaunchDaemons/com.user.vmmaxmap.plist
复制代码

  1. sudo launchctl load /Library/LaunchDaemons/com.user.vmmaxmap.plist     
复制代码

重启电脑后, docker - ES 的日志轻微正常了
贴出来渴望各人不在这个题目上淹灭太多时间,有更好的方法欢迎提出

其他实行 - linuxVmSettings

有教程发起,在 /Users/pc087/Library/Group\ Containers/group.com.docker/settings.json 中添加 linuxVmSettings 键值对
https://www.soinside.com/question/RzVRcCymgF3fa5CKQxnMCj
但添加后,重启 Docker Desttop 后,添加的 linuxVmSettings 数据会消散。

2024-08-28

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

王柳

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表