作者简介:大家好,我是smart哥,前中兴通讯、美团架构师,现某互联网公司CTO
联系qq:184480602,加我进群,大家一起学习,一起进步,一起对抗互联网寒冬
学习必须往深处挖,挖的越深,基础越扎实!
阶段1、深入多线程
阶段2、深入多线程设计模式
阶段3、深入juc源码解析
码哥源码部分
码哥讲源码-原理源码篇【2024年最新大厂关于线程池使用的场景题】
码哥讲源码-原理源码篇【揭秘join方法的唤醒本质上决定于jvm的底层析构函数】
码哥源码-原理源码篇【Doug Lea为什么要将成员变量赋值给局部变量后再操作?】
码哥讲源码【谁再说Spring不支持多线程事务,你给我抽他!】
打脸系列【020-3小时讲解MESI协议和volatile之间的关系,那些将x86下的验证结果当作最终结果的水货们请闭嘴】
1.停止Erlang节点及节点上的RabbitMQ应用
[root@rabbit3 /]# rabbitmqctl stop
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
Stopping and halting node rabbit@rabbit3 ...
2.启动Erlang节点及节点上的RabbitMQ应用
[root@rabbit3 /]# rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
或者
[root@rabbit3 /]# rabbitmq-server start -detached
Warning: PID file not written; -detached was passed.
启动的时候报Warning: PID file not written; -detached was passed.警告,经过多方努力查找到了原因,官网是这样解释的:
Start the server process in the background. Note that this will cause the pid not to be written to the pid file.
For example, runs RabbitMQ AMQP server in the background:
rabbitmq-server -detached
也就是说只要加上-detached参数,RabbitMQ应用启动运行就会包上面的警告信息,应该是服务的遗留bug.