网站首页技术博客
Redis的下载安装配置启动
摘要1、 下载wget http://download.redis.io/releases/redis-4.0.1.tar.gz
2、 解压 tar –zxf redis-4.0.1.tar.gz
3、 编译make 或者 make MALLOC=libc
4、 安装make install 或者 make PREFIX=/usr/local/redis install
5、 运行 cd /usr/local/redis
./bin/redis-server
6、 后台运行
cp /usr/local/src/redis-4.0.1/redis.conf
编辑r
1、 下载wget http://download.redis.io/releases/redis-4.0.1.tar.gz
2、 解压 tar –zxf redis-4.0.1.tar.gz
3、 编译make 或者 make MALLOC=libc
4、 安装make install 或者 make PREFIX=/usr/local/redis install
5、 运行 cd /usr/local/redis
./bin/redis-server
6、 后台运行
cp /usr/local/src/redis-4.0.1/redis.conf
编辑redis.conf
vim redis.conf
修改
Daemonize = no 为yes.
运行 ./bin/redis-server redis.conf
7、 连接 ./bin/redis-cli
Ctrl+c或者exit退出连接
8、 结束redis运行
pkill redis-server
9、 查看redis进程是否运行
ps aux|grep redis
下一篇:nginx安装