首页 > 代码库 > 安装redis

安装redis

新项目用到了redis, 感慨颇多,记下安装过程, 留个纪念

$sudo pip install redis
$which redis-server找不到

从网上下载http://www.redis.io/
解压之后进入文件夹make
$sudo make install

$which redis-server
/usr/local/bin/redis-server
然后
$/usr/local/bin/redis-server
启动成功

http://localhost:5700/home/add/b15dcb2c58c011e38b3f

/opt/app/python/aaa-control
$ bin/uwsgi.sh stop
$ bin/uwsgi.sh start

重启nginx
/opt/nginx/sbin/nginx -t
/opt/nginx/sbin/nginx -s reload

安装redis