用centOS在我的服务器上运行redis 3.2。 它曾经用wordpress安装顺利运行,但今天yum -y update ,我无法启动服务器了。
执行一个/etc/init.d/redis restart会产生各种奇怪的错误
/etc/init.d/redis-server start Starting redis-server: *** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 375 >>> 'vm-enabled no' Bad directive or wrong number of arguments failed
同时用nano redis.conf编辑文件并注释掉vm-enabled no会产生另一个错误,比如
*** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 389 >>> 'vm-swap-file /var/lib/redis/redis.swap' Bad directive or wrong number of arguments failed
它一直在继续。
我该如何解决这个问题? 现在guru系统pipe理员,所以任何noobie帮助将不胜感激。
PS我正在运行与cPanel的Redis。 我也安装了PHP的Pecl redis (3.1.4RC3)
我看到redis最近推出了第4版,但是做一个yum install -y redis会生成一个简单的
Package redis-3.2.10-2.el6.x86_64 already installed and latest version. Nothing to do