-
手动安装页面下方给出了 Linux 下守护进程的设置方式,但并不适用于 macOS,Google 上也没有搜索到 Alist 在 macOS 下配置开机启动的方法,为此我搜索了使用 launchd 配置 LaunchAgents / LaunchDaemons 的方法。 我尝试在 我的 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>alist</string>
<key>ProgramArguments</key>
<array>
<string>/Users/whyto/alist</string>
<string>server</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist> 尝试无果后,我也将其放入 请问如何在 macOS 下配置 Alist 开机启动呢? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
同问,我甚至连.plist文件都不会写,希望出一个帮助文档 |
Beta Was this translation helpful? Give feedback.
-
我实现了曲线救国 首先打开
我把 保存该 缺点是运行的时候菜单栏会有一个图标,当然你可以用诸如 Bartender 4 之类的软件将其隐藏掉。 |
Beta Was this translation helpful? Give feedback.
-
这个sh加到计划任务多简单 |
Beta Was this translation helpful? Give feedback.
-
经过进一步探索,目前我已经解决使用 macOS 原生 launchd.plist 实现登录启动的问题了。方法:
最后大致说明这个文件的功能,嫌麻烦也可以直接跳过:
如果要删除可选项,则需要将及其后面对应的值(string、array之类)一并删除。推荐使用 PlistEdit Pro 操作。 参考资料(可自行深入探索): |
Beta Was this translation helpful? Give feedback.
-
是否可以用docker版的alist来实现开机启动捏 |
Beta Was this translation helpful? Give feedback.
经过进一步探索,目前我已经解决使用 macOS 原生 launchd.plist 实现登录启动的问题了。方法:
使用文本编辑器创建
local.alist.launch.plist
(以此名称为例),并拷贝至主文件夹/资源库/LaunchAgents
下。文件内容如下: