一直用apcupsd管理ups, 因为本来就要使用nginx, 所以想把默认用的apache换成nginx. 查了下, 用fcgiwrap 就行了, 记录下修改过程. 安装软件包 apt install -y apcupsd apcupsd-cgi fcgiwrap nginx 修改配置文件 修改/etc/apcupsd/apccontrol 使用自定义关机脚本 SHUTDOWN=/root/bin/poweroff 修改/etc/apcupsd/apcco……

阅读全文