我正在尝试使用forever start -l mqtt.log --append -c -sh /root/mqtt-sh.sh
使用永久工具使mosquitto mqtt代理在我的云实例上持续运行,并且我已经通过将此#!/bin/sh /usr/sbin/mosquitto -c /etc/mosquitto/conf.d/broker.conf
添加到mqtt-sh中来创建了shell脚本。 sh conf文件。
但这是我得到的输出:
help: usage: forever [action] [options] SCRIPT [script-options]
help:
help: Monitors the script specified in the current process or as a daemon
help:
help: actions:
help: start Start SCRIPT as a daemon
help: stop Stop the daemon SCRIPT by Id|Uid|Pid|Index|Script
help: stopall Stop all running forever scripts
help: restart Restart the daemon SCRIPT
help: restartall Restart all running forever scripts
help: list List all running forever scripts
help: config Lists all forever user configuration
help: set <key> <val> Sets the specified forever config <key>
我还在永远列表中检查了该过程,但该过程不存在