redis单机搭建
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redis单机搭建相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# useradd redis
[[email protected] ~]# sudo su – redis
[[email protected] ~]$ rz -y
rz waiting to receive.
Starting zmodem transfer. PressCtrl+C to cancel.
Transferring redis-3.2.6.tar.gz...
100% 1508 KB 1508 KB/sec 00:00:01 0 Errors
[[email protected] ~]$ ls
redis-3.2.6.tar.gz
[[email protected] ~]$ mkdir run
[[email protected] ~]$ tar zxf redis-3.2.6.tar.gz –C run/
[[email protected] ~]$ cd run/redis-3.2.6/
[[email protected] redis-3.2.6]$ make
[[email protected] ~]$ ~/run/redis-3.2.6/src/redis-server~/run/redis-3.2.6/redis.conf &
[[email protected] ~]$ netstat -lantup|grep redis
(Not all processes could be identified, non-owned process info
will not be shown, you wouldhave to be root to see it all.)
tcp 0 0127.0.0.1:6379[l1] 0.0.0.0:* LISTEN 8536/redis-server 1
[l1]默认绑定的地址以及端口
本文出自 “李群艳博客” 博客,转载请与作者联系!
以上是关于redis单机搭建的主要内容,如果未能解决你的问题,请参考以下文章