apcupsd for Mac 版
apcupsd 是什么
apcupsd 是一个在后台运行的守护进程,专门用来控制 APC 品牌的不间断电源(UPS)。当市电中断或电压异常时,它能及时感知 UPS 的状态变化,并在电量耗尽前通知系统安全关机,避免数据丢失或硬件损坏。它适合需要为服务器、工作站或家庭网络设备提供断电保护的用户,尤其是习惯通过命令行管理系统的管理员。软件以守护进程方式常驻,配置灵活,能够配合多种 APC 型号完成基本的监控与自动响应,是搭建可靠供电保护方案时一个务实的选择。
如何安装 apcupsd
- 打开 终端(按 ⌘ + 空格,输入“终端”)。
- 如果还没安装 Homebrew,先运行下面这条安装命令。
- 运行下面这条命令:
二进制包支持平台
Homebrew 官方提供的预编译包(bottle)覆盖:
- Apple 芯片 · 最新 macOS
- Apple 芯片 · macOS 26 Tahoe
- Apple 芯片 · macOS 15 Sequoia
- Apple 芯片 · macOS 14 Sonoma
- Apple 芯片 · macOS 13 Ventura
- arm64_monterey
- arm64_big_sur
- Intel · macOS 14 Sonoma
- Intel · macOS 13 Ventura
- Intel · macOS 12 Monterey
- big_sur
- Linux · ARM64
- Linux · x86_64
安装注意事项
For apcupsd to be able to communicate with UPSes connected via USB,nthe kernel extension must be installed by the root user:nn sudo cp -pR $HOMEBREW_CELLAR/apcupsd/3.14.14/Library/Extensions/ApcupsdDummy.kext /System/Library/Extensions/n sudo chown -R root:wheel /System/Library/Extensions/ApcupsdDummy.kextn sudo touch /System/Library/Extensions/nn Note: The kernel extension currently does not work as expected.nn You will have to unplug and plug the USB cable back in after eachn reboot in order for apcupsd to be able to connect to the UPS.nnTo load apcupsd at startup, activate the included Launch Daemon:nn sudo cp $HOMEBREW_CELLAR/apcupsd/3.14.14/lib/Library/LaunchDaemons/org.apcupsd.apcupsd.plist /Library/LaunchDaemonsn sudo chmod 644 /Library/LaunchDaemons/org.apcupsd.apcupsd.plistn sudo launchctl load -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plistnnIf this is an upgrade and you already have the Launch Daemon loaded, younhave to unload the Launch Daemon before reinstalling it:nn sudo launchctl unload -w /Library/LaunchDaemons/org.apcupsd.apcupsd.plistn sudo rm /Library/LaunchDaemons/org.apcupsd.apcupsd.plistn
与同类应用对比
只对比公开元数据,不做主观推荐;需要逐项对比时见对比页。
| 应用 | 版本 | 许可证 | 架构 | 近 30 天安装 |
|---|---|---|---|---|
| apcupsd | 3.14.14 | GPL-2.0-only | 命令行 | 27 |
| gpsd | 3.27.5 | BSD-2-Clause | 命令行 | 68 |
| flagd | flagd/v0.19.0 | Apache-2.0 | 命令行 | 36 |
| shibboleth-sp | 3.6.0 | Apache-2.0 | 命令行 | 27 |
命令行工具中的类似应用
gpsd
gpsd 是一个在后台运行的 GPS 守护进程,专门用来接收 GPS 或 AIS 接收器传来的原始数据,再以更简洁统一的格式转发出去。flagd
flagd 是一个遵循 Unix 哲学的特性开关守护进程,可以理解为一个开箱即用、开源且兼容 OpenFeature 的特性开关后端系统。shibboleth-sp
Shibboleth 服务提供者守护进程是 Shibboleth 单点登录体系中的服务端组件,运行在需要接入统一身份认证的应用侧。framework-tool-tui
Framework System TUI 是一个面向 Framework 笔记本用户的终端仪表盘,用来控制和监控硬件状态。nsd
nsd 是一款运行在命令行环境下的名称服务器守护进程,主要充当权威 DNS 名称服务器。ca-certificates
ca-certificates 是一套来自 Mozilla 的 CA 证书存储,常被各类命令行工具和系统组件用来判断 HTTPS 连接中的服务器身份是否可信…所属分类:命令行工具
评论加载中…
评论表单加载中…