redis运行后的一些警告
2010-12-28 11:01
127 查看
我更改了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
这样运行后,上个警告消失。
但是还有一个警告:
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' )使其生效。
按这个提示来做,警告排除。
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
./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' )使其生效。
按这个提示来做,警告排除。
相关文章推荐
- redis运行后的一些警告
- redis运行后的一些警告
- redis运行后的一些警告
- redis运行后的一些警告
- 关于Redis的一些好玩东西
- redis外网连接的一些坑
- 使用redis解决一些并发访问的问题
- 处理一些编译警告的简单
- 关于redis的一些简单理解和应用
- 在项目中redis做缓存的一些思路
- 学习redis-安装和基本一些命令
- REDIS源码中一些值得学习的技术细节02
- scrapy一些非常实用资料整理,与其他mongdb、django、redis、solr、tor结合使用以及用Python脚本调用等等方法
- KSM导致的警告“ ksmtuned .... read-only system ” 的一些说明
- 修改老项目时 遇到的一些警告~
- 【Linux学习】 Redis常用的一些指令
- redis 一些常用命令
- redis启动警告处理
- linux安装redis的一些问题
- 安装qt5后编译运行后有关Qt at-spi的警告