linux下启动redis报Can't open the log file: Permission denied错误

登录用户在使用命令行模式启动redis时报错,提示权限不足:

[advant@localhost ~]$ /usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf
 
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 171
>>> 'logfile /usr/local/redis/redis_log/redis_log.log'
Can't open the log file: Permission denied

使用root权限可以正常启动,因此可以断定是普通用户权限不足,修改一下即可。

[root@localhost redis_log]# chmod 777 /usr/local/redis/redis_log/redis_log.log

再次登录普通用户启动,就没有问题了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值