'In Centos 7, how do you permanently consume messages with rabbitmq?

Good day,

I have just uploaded Symfony 3.4 project (PHP 7.2) to Centos server and my application needs to be connected to RabbitMQ. I want to do that in Centos server rabbitmq is constantly consuming messages. I know how to consume those messages temporarily by running this command: bin/console rabbitmq:consumer messaging . But how could permanently I consume the messages on server? I tried to google but didn't find any useful information

In my application I've installed:

"php-amqplib/php-amqplib": "*",

"php-amqplib/rabbitmq-bundle": "*"

UPDATE:

I achieved my desired situation with the following command:

nohup bin/console rabbitmq:consumer <your-consumer> &



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source