Redis安装

[root@promote ~]# cd /usr/local/

[root@promote local]#  wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz

[root@promote local]# tar xf redis-2.2.12.tar.gz 
[root@promote local]# ls
bin  etc  games  include  lib  libexec  redis-2.2.12  redis-2.2.12.tar.gz  sbin  share  src

[root@promote local]# cd redis-2.2.12

[root@promote redis-2.2.12]# make 32bit
cd src && make 32bit
make[1]: Entering directory `/usr/local/redis-2.2.12/src'


WARNING: if it fails under Linux you probably need to install libc6-dev-i386


make ARCH="-m32"
make[2]: Entering directory `/usr/local/redis-2.2.12/src'
MAKE hiredis
cd ../deps/hiredis && make static ARCH="-m32"
make[3]: Entering directory `/usr/local/redis-2.2.12/deps/hiredis'
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -m32   -g -ggdb  net.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -m32   -g -ggdb  hiredis.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -m32   -g -ggdb  sds.c
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wwrite-strings -m32   -g -ggdb  async.c
ar rcs libhiredis.a net.o hiredis.o sds.o async.o
make[3]: Leaving directory `/usr/local/redis-2.2.12/deps/hiredis'
MAKE linenoise
cd ../deps/linenoise && make ARCH="-m32"

………………………………………………………………………………………

………………………………………………………………………………………

………………………………………………………………………………………

………………………………………………………………………………………

[root@promote redis-2.2.12]# cd src/

[root@promote src]# ./redis-server 
[10182] 28 Mar 05:55:35 # Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
[10182] 28 Mar 05:55:35 * Server started, Redis version 2.2.12
[10182] 28 Mar 05:55:35 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[10182] 28 Mar 05:55:35 * The server is now ready to accept connections on port 6379
[10182] 28 Mar 05:55:36 - 0 clients connected (0 slaves), 539544 bytes in use
[10182] 28 Mar 05:55:41 - 0 clients connected (0 slaves), 539544 bytes in use
[10182] 28 Mar 05:55:46 - 0 clients connected (0 slaves), 539544 bytes in use
[10182] 28 Mar 05:55:51 - 0 clients connected (0 slaves), 539544 bytes in use
[10182] 28 Mar 05:55:56 - 0 clients connected (0 slaves), 539544 bytes in use
[10182] 28 Mar 05:56:01 - 0 clients connected (0 slaves), 539544 bytes in use


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值