Redis在6379上运行,甚至conf文件也改为7000

时间:2014-03-25 09:57:48

标签: linux amazon-web-services redis

我正在通过以下步骤在Linux Centos中安装redis:

mkdir /redis/
cd /redis
wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz
extracted it using tar -xzf redis-2.6.14.tar.gz
make && make install PREFIX=/redis/
Changed the port in redis.conf(/redis/redis.conf) to 7000
Changed the port redis_init_script(/redis/utils/redis_init_script) to 7000
Then issued the command /redis/bin/redis-server

现在当我发出命令时,我看到了这个,

表示6379

:(

1 个答案:

答案 0 :(得分:1)

您还没有告诉它使用哪个配置文件,因此您使用所有默认值启动服务器。请尝试改为:

/redis/bin/redis-server /redis/redis.conf