tail -f ~/logs/rocketmqlogs/boker.log 无法打开
来源:9-5 搭建RocketMQ

变形叮当
2020-07-02
nohup sh bin/mqnamesrv &
tail -f ~/logs/rocketmqlogs/namesrv.log
都没问题,也提示了success
但是启动broker后,打印tail -f ~/logs/rocketmqlogs/broker.log日志 时提示:
tail: 无法打开"/root/logs/rocketmqlogs/broker.log" 读取数据: 没有那个文件或目录
tail: 没有剩余文件
我的是centos7系统
请问怎么解决,谢谢老师。
2回答
-
北生爱吃驴打滚
2020-10-07
以下是我的nohup.out中的内容,根据这个,我发现是我没有修改runbroker.sh中的内存限制,导致内存不够用了
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 8589934592, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 8589934592 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/rocketmq/rocketmq-4.7.1/distribution/target/rocketmq-4.7.1/rocketmq-4.7.1/bin/hs_err_pid15519.log012020-10-09 -
大目
2020-07-02
您好,可以打开你执行nohup命令的目录,查看下nohup.out,看下里面有啥报错不
00
相似问题