修改rabbitmq web-UI端口号
一、拷贝配置文件
[root@test03 ~]# cd /usr/share/doc/rabbitmq-server-3.6.15/ [root@test03 rabbitmq-server-3.6.15]# ls LICENSE LICENSE-BSD-base64js LICENSE-MIT-EJS10 LICENSE-MIT-Mochiweb rabbitmq.config.example LICENSE-APACHE2 LICENSE-BSD-glMatrix LICENSE-MIT-Erlware-Commons LICENSE-MIT-Sammy README LICENSE-APACHE2-excanvas LICENSE-BSD-recon LICENSE-MIT-Flot LICENSE-MIT-Sammy060 set_rabbitmq_policy.sh.example LICENSE-APACHE2-ExplorerCanvas LICENSE-EPL-OTP LICENSE-MIT-jQuery LICENSE-MIT-SockJS LICENSE-APL2-Rebar LICENSE-ISC-cowboy LICENSE-MIT-jQuery164 LICENSE-MPL2 LICENSE-APL2-Stomp-Websocket LICENSE-MIT-EJS LICENSE-MIT-Mochi LICENSE-MPL-RabbitMQ [root@test03 rabbitmq-server-3.6.15]# cp rabbitmq.config.example /etc/rabbitmq/ [root@test03 rabbitmq-server-3.6.15]#
二、编辑 rabbitmq.config
[root@test03 rabbitmq]# mv rabbitmq.config.example rabbitmq.config [root@test03 rabbitmq]# vim rabbitmq.config
三、复制此内容到配置文件
{listener, [{port, 15675}, {ip, "0.0.0.0"}, {ssl, false}]}
四、重启rabbitmq
rabbitmqctl stop :停止rabbitmq systemctl restart rabbitmq-server.service