安装过程如下
wget http://download.redis.io/releases/redis-4.0.10.tar.gz
tar xvf redis-4.0.10.tar.gz
mv redis-4.0.10 /usr/local/redis
cd /usr/local/redis
make
ln -s /usr/local/redis/src/redis-server /usr/bin/redis-server
ln -s /usr/local/redis/src/redis-cli /usr/bin/redis-cli
使用软连接启动 redis 的时候报错如下
redis-server /usr/local/redis/redis.conf
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 88
>>> 'protected-mode yes'
Bad directive or wrong number of arguments
#使用绝对路径启动 redis 就没有报错
$/usr/local/redis/src/redis-server /usr/local/redis/redis.conf
为什么软连接会有这个问题