zhangjianfang19910327 / zjianfang

node web
MIT License
1 stars 0 forks source link

install redis centos7_64 #3

Open zhangjianfang19910327 opened 5 years ago

zhangjianfang19910327 commented 5 years ago

tar xzvf redis-4.0.8.tar.gz cd redis-4.0.8   make   cd src make install PREFIX=/usr/local/redis cd ../ mkdir /usr/local/redis/etc mv redis.conf /usr/local/redis/etc vi /usr/local/redis/etc/redis.conf //将daemonize no 改成daemonize yes vi /etc/rc.local //在里面添加内容:/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf (意思就是开机调用这段开启redis的命令) /usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf

zhangjianfang19910327 commented 5 years ago

ps -ef |grep redis 查看是否启动 /usr/local/redis/bin/redis-cli 开启redis客户端测试