1、原因
是因为使用 nohup 会产生日志文件,默认写入到 nohup.out
2、解决
将 nohup 的日志输出到 /dev/null,这个目录会让所有到它这的信息自动消失
nohup sh mqbroker -n localhost:9876 autoCreateTopicEnable=true > /dev/null 2> /dev/null &

1、原因
是因为使用 nohup 会产生日志文件,默认写入到 nohup.out
2、解决
将 nohup 的日志输出到 /dev/null,这个目录会让所有到它这的信息自动消失
nohup sh mqbroker -n localhost:9876 autoCreateTopicEnable=true > /dev/null 2> /dev/null &