麒麟V10系统,应用商店直接安装redis,使用的默认配置,启动日志报没有权限创建pid文件:
1:M 27 Aug 2025 06:53:35.440 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 27 Aug 2025 06:53:35.441 # Fatal: Can’t initialize Background Jobs. Error message: Operation not permitted
1:C 27 Aug 2025 06:53:37.000 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
1:C 27 Aug 2025 06:53:37.000 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 27 Aug 2025 06:53:37.000 * Redis version=7.4.5, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 27 Aug 2025 06:53:37.000 * Configuration loaded
1:M 27 Aug 2025 06:53:37.000 * monotonic clock: POSIX clock_gettime
1:M 27 Aug 2025 06:53:37.001 # Failed to write PID file: Permission denied
1:M 27 Aug 2025 06:53:37.001 * Running mode=standalone, port=6379.