1.1.2 显示RabbitMQ进程
查看RabbitMQ进程信息,输入下面命令:
<span style="font-size:18px;"><strong>?>pgrep -fl rabbitmq</strong> 31151/bin/sh /etc/init.d/rabbitmq-server restart 31153 /bin/bash -c ulimit -S -c 0>/dev/null 2>&1 ; /usr/sbin/rabbitmq-server 31156 /bin/sh /usr/sbin/rabbitmq-server 31171 su rabbitmq -s /bin/sh -c/usr/lib/rabbitmq/bin/rabbitmq-server 31173/usr/lib64/erlang/erts-6.2/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root/usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa/usr/lib/rabbitmq/lib/rabbitmq_server-3.3.5/sbin/../ebin -noshell -noinput -srabbit boot -sname [email protected] -boot start_sasl -kernelinet_default_connect_options [{nodelay,true}] -sasl errlog_type error -saslsasl_error_logger false -rabbit error_logger{file,"/var/log/rabbitmq/[email protected]"} -rabbit sasl_error_logger{file,"/var/log/rabbitmq/[email protected]"} -rabbitenabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbitplugins_dir"/usr/lib/rabbitmq/lib/rabbitmq_server-3.3.5/sbin/../plugins" -rabbitplugins_expand_dir "/var/lib/rabbitmq/mnesia/[email protected]"-os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsupfalse -mnesia dir "/var/lib/rabbitmq/mnesia/[email protected]" -kernelinet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672</span>
1.1.3 安装管理插件
为了安装管理插件,可以使用下面的脚步:
<span style="font-size:18px;"><strong>?> sudo rabbitmq-plugins enable rabbitmq_management</strong> The following plugins have been enabled: mochiweb webmachine rabbitmq_web_dispatch amqp_client rabbitmq_management_agent rabbitmq_management Plugin configuration has changed. Restart RabbitMQ for changes totake effect.</span>
接下来,重启RabbitMQ。
登陆rabbitmq, URL路径http://{rabbitmq-server-ip}:15672/
时间: 2024-12-28 15:35:52