redis运行后的一些警告
2013-12-14 00:00
120 查看
我更改了redis的conf,运行,出现了警告:
Warning: no config file specified, using the default config.
In order to specify a config file use 'redis-server /path/to/redis.conf'
警告:没有明确的config文件,使用默认配置。为了明确配置文件请使用'redis-server /path/to/redis.conf'
我琢磨了半天(我比较愚钝),后来明白了,需要用显示命令方式指定redis的conf运行:
#./redis-server /usr/local/src/redis-2.0.4/redis.conf
[c-sharp] view plain copy
./redis-server /usr/local/src/redis-2.0.4/redis.conf
这样运行后,上个警告消失。
但是还有一个警告:
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition.
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.
警告:过量使用内存设置为0!在低内存环境下,后台保存可能失败。为了修正这个问题,请在/etc/sysctl.conf 添加一项 'vm.overcommit_memory = 1' ,然后重启(或者运行命令'sysctl vm.overcommit_memory=1' )使其生效。
按这个提示来做,警告排除。
后续有很多开发填坑的文章发布,如果对你有帮助,请支持和加关注一下
http://e22a.com/h.05ApkG?cv=AAKHZXVo&sm=339944
https://shop119727980.taobao.com/?spm=0.0.0.0
Warning: no config file specified, using the default config.
In order to specify a config file use 'redis-server /path/to/redis.conf'
警告:没有明确的config文件,使用默认配置。为了明确配置文件请使用'redis-server /path/to/redis.conf'
我琢磨了半天(我比较愚钝),后来明白了,需要用显示命令方式指定redis的conf运行:
#./redis-server /usr/local/src/redis-2.0.4/redis.conf
[c-sharp] view plain copy
./redis-server /usr/local/src/redis-2.0.4/redis.conf
这样运行后,上个警告消失。
但是还有一个警告:
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition.
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.
警告:过量使用内存设置为0!在低内存环境下,后台保存可能失败。为了修正这个问题,请在/etc/sysctl.conf 添加一项 'vm.overcommit_memory = 1' ,然后重启(或者运行命令'sysctl vm.overcommit_memory=1' )使其生效。
按这个提示来做,警告排除。
后续有很多开发填坑的文章发布,如果对你有帮助,请支持和加关注一下
http://e22a.com/h.05ApkG?cv=AAKHZXVo&sm=339944
https://shop119727980.taobao.com/?spm=0.0.0.0
相关文章推荐
- redis运行后的一些警告
- redis运行后的一些警告
- redis运行后的一些警告
- redis运行后的一些警告
- redis的一些优化
- 一些php操作redis常用方法代码
- windows下安装redis以及一些常规操作
- 安装redis的一些问题
- redis--Jedis--一些常用的接口说明
- 安装qt5后编译运行后有关Qt at-spi的警告
- 关于redis和memcached的一些想法
- 去掉xcode中警告的一些经验
- Redis在Java中使用的一些简单介绍
- redis集群搭建出现的一些问题Node 127.0.0.1:6379 is not empty
- Redis服务器启动之后3个警告信息的解决方案
- 对redis数据持久化的一些想法
- Redis运维的一些常用的命令总结
- 使用redis的一些注意事项
- 美团在Redis上踩过的一些坑-5.redis cluster遇到的一些问题
- redis的一些操作命令