1. Please describe the issue you observed:
When run nameserver on host which use cgroup v2, the nameserver exited with error:
cat: can't open '/sys/fs/cgroup/memory/memory.limit_in_bytes': No such file or directory
/root/rocketmq/nameserver/bin/runserver.sh: line 58: arithmetic syntax error
BUG REPORT
1. Please describe the issue you observed: When run nameserver on host which use cgroup v2, the nameserver exited with error:
2. Please tell us about your environment:
The above picture show the host use cgroup v2.
3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc): We should enhance these code: https://github.com/apache/rocketmq-operator/blob/a8665716c8028741ec106814798e39fe07e6dcaa/images/namesrv/alpine/runserver-customize.sh#L57-L66