我有以下配置文件monit:
check process rabbitmq-server with pidfile /var/lib/rabbitmq/mnesia/rabbit@ubuntu.pid
start program = "/etc/init.d/rabbitmq-server start"
stop program = "/etc/init.d/rabbitmq-server stop"
当我运行:sudo service monit restart
出现此错误:
Error: syntax error '/var/lib/rabbitmq/mnesia/rabbit@ubuntu.pid'
答案 0 :(得分:1)
似乎它包含特殊字符,你需要使用引号 “/var/lib/rabbitmq/mnesia/rabbit@ubuntu.pid”