☰ 菜单
命令行 开源 27 次安装/月

apcupsd for Mac 版

apcupsd 是什么

apcupsd 是一个在后台运行的守护进程,专门用来控制 APC 品牌的不间断电源(UPS)。当市电中断或电压异常时,它能及时感知 UPS 的状态变化,并在电量耗尽前通知系统安全关机,避免数据丢失或硬件损坏。它适合需要为服务器、工作站或家庭网络设备提供断电保护的用户,尤其是习惯通过命令行管理系统的管理员。软件以守护进程方式常驻,配置灵活,能够配合多种 APC 型号完成基本的监控与自动响应,是搭建可靠供电保护方案时一个务实的选择。

如何安装 apcupsd

  1. 打开 终端(按 ⌘ + 空格,输入“终端”)。
  2. 如果还没安装 Homebrew,先运行下面这条安装命令。
  3. 运行下面这条命令:

二进制包支持平台

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 天安装
apcupsd3.14.14GPL-2.0-only命令行27
gpsd3.27.5BSD-2-Clause命令行68
flagdflagd/v0.19.0Apache-2.0命令行36
shibboleth-sp3.6.0Apache-2.0命令行27

命令行工具中的类似应用

评论加载中…

评论表单加载中…