官术网_书友最值得收藏!

Starting RabbitMQ

As we can see, the installation part of RabbitMQ is quite easy and starting RabbitMQ is similar to its installation. Some package managers in Linux, Mac OS X, and Windows installer add configuration parameters to operation system's configuration for automatic startup. In such a case, we don't need to run the RabbitMQ command manually; however, if we install RabbitMQ manually, we need to run the RabbitMQ commands manually.

Starting RabbitMQ on Windows

If we use the Windows installer of RabbitMQ, the installer already makes configurations for starting automatically. Therefore, we don't need to run RabbitMQ manually; however, whenever we'd like to control the status of the server, we just need to run following command on the sbin folder of RabbitMQ:

rabbitmqctl status

Status of RabbitMQ in Windows

You may have installed RabbitMQ manually on your Windows and you might wonder how you can run the RabbitMQ server. You should run the following command to start RabbitMQ (you have to run this command with an administrative user). Moreover, you can install the RabbitMQ server as a Windows service:

rabbitmq-server

Other OSes (Linux, Mac OS X)

There's isn't much difference in running RabbitMQ on Windows and other operating systems. If we have RabbitMQ already installed using package managers, such as apt-get, yum, and so on, we don't need to run the RabbitMQ manually because RabbitMQ has already started automatically. So, we'd like to check the status of the RabbitMQ using the following command:

sudo rabbitmqctl status

Status of RabbitMQ in Unix

After controlling the RabbitMQ status, if we get a message that says that RabbitMQ isn't running, then we should run RabbitMQ using the following command on the sbin folder of RabbitMQ installation folder:

rabbitmq-server

Starting of RabbitMQ in Unix

主站蜘蛛池模板: 区。| 太仓市| 苗栗市| 南开区| 确山县| 凤山县| 乌鲁木齐市| 德兴市| 苗栗市| 容城县| 神木县| 涟水县| 仁怀市| 武胜县| 原阳县| 加查县| 海安县| 亚东县| 哈巴河县| 墨脱县| 墨玉县| 邛崃市| 临安市| 营口市| 天气| 赣榆县| 内丘县| 通辽市| 牟定县| 江源县| 竹山县| 砀山县| 岚皋县| 普兰店市| 佛坪县| 桐城市| 铜陵市| 桐庐县| 盐池县| 南陵县| 盈江县|