使用nohup命令 nohup rabbitmq-server -detached > /dev/null 2> /dev/null & 使用setsid命令 setsid rabbitmq-server &