Ubuntu下启动 Redis时, 提示 "Can't open the log file: Permission denied failed"
来源:互联网 发布:虚拟机安装mac卡 编辑:程序博客网 时间:2024/06/08 08:30
问题来源:在删除var目录下的log文件时,将redis文件夹删除了。然后在重启时:/etc/init.d/redis-server start,提示:
Starting redis-server:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 94
>>> 'logfile /var/log/redis/redis-server.log'
Can't open the log file: No such file or directory
failed。好吧,于是 touch /var/log/redis/redis-server.log后,再重启时,提示:
Starting redis-server:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 94
>>> 'logfile /var/log/redis/redis-server.log'
Can't open the log file: Permission denied
failed
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 94
>>> 'logfile /var/log/redis/redis-server.log'
Can't open the log file: Permission denied
failed
查了一下,最终发现有可能是权限不够的问题,于是,ls -l /var/log/redis/redis-server.log
提示:-rw-r--r-- 1 root root 0 6月 2 10:05 /var/log/redis/redis-server.log。如下图所示:
解决办法:
chmod 777 /var/log/redis/redis-server.log
再重启,显示成功。问题得到解决
阅读全文
0 0
- Ubuntu下启动 Redis时, 提示 "Can't open the log file: Permission denied failed"
- redis aof持久化 遇到的Can't open the append-only file: Permission denied
- redis aof持久化遇到的Can't open the append-only file Permission denied
- 553 Can't open that file: Permission denied
- can't open file db/txn-current-lock:permission denied
- Ubuntu SVN提交内容遇到错误:Can't open file '/home/svn/db/txn-current-lock': Permission denied
- SVN commit或import时出现 can't open file 'txn-current-lock' permission denied 的原因及解决方法
- Can't open file 'svn/db/txn-current-locks':permission denied
- svn: Can't open file '/var/www/svn/experience/db/txn-current-lock': Permission denied
- svn: Can't open file 'PATH/TO/YOUR/FILES/.svn/lock': Permission denied
- Can't open file 'svn/myapp/db/txn-current-locks':permission denied
- 报错“svn: Can't open file '.svn/lock': Permission denied”
- SVN报错:can't open file db/txn-current-lock:permission denied 解决方法
- SVN报错:can't open file db/txn-current-lock:permission denied 解决方法
- apache + svn Can't open file '*/txn-current-lock': Permission denied
- svn can't open file db/txn-current-lock permission denied问题
- MAC svn: E000013: Can't open file /db/txn-current-lock: Permission denied 解决方案
- SVN 无法提交 svn: Can't open file '/svn/ssq/db/txn-current-lock': Permission denied
- sort
- 编辑器ueditor使用总结
- xiaoCMS中sqllite转成mysql
- 文本选中事件
- 广播接受者拦截电话
- Ubuntu下启动 Redis时, 提示 "Can't open the log file: Permission denied failed"
- int main(int argc,char* argv[])详解
- 遍历集合的同时对集合进行操作
- 通过学习volatile关键字了解java内存数据访问
- js中的preventDefault与stopPropagation详解
- Nginx限制ip多次访问
- 技术问题分享之GitHub
- Python 中的 GIL(Global Interpreter Lock) 全局解释器锁是什么?
- rv1108 tty uart serialport框架分析-1