redis 3.2.6 on ubuntu 14.04
2017-12-21 19:27
387 查看
1. official site: https://github.com/antirez/redis/releases
2. compile and setup
tar zxf redis-3.2.6.tar.gz
cd redis-3.2.6/deps
export ARCH=
make geohash-int
make hiredis
make jemalloc
ls
make linenoise
make lua
cd ..
make
make install
sudo ./utils/install_server.sh (参数全部默认)
3.维护指令
service redis_6379 status
service redis_6379 stop
service redis_6379 start
redis-cli
redis的配置文件/etc/redis/6379.conf
grep -E -v "^#" /etc/redis/6379.conf |sed '/^$/d'
4.配置
/etc/redis/6379.conf
由于redis采用的安全策略,默认会只准许本地访问,修改上面配置文件,
把bind 127.0.0.1注释掉,再把protected-mode 改为no,设置密码requirepass,
可以用windows客户端维护查看:下载RedisDesktopManager(https://redisdesktop.com/)
设置密码后,redis-cli连接,然后输入auth password1
5.常用指令
略
6.参考:
http://blog.csdn.net/cuibruce/article/details/53501532 http://www.cnblogs.com/kmonkeywyl/p/5728062.html
2. compile and setup
tar zxf redis-3.2.6.tar.gz
cd redis-3.2.6/deps
export ARCH=
make geohash-int
make hiredis
make jemalloc
ls
make linenoise
make lua
cd ..
make
make install
sudo ./utils/install_server.sh (参数全部默认)
3.维护指令
service redis_6379 status
service redis_6379 stop
service redis_6379 start
redis-cli
redis的配置文件/etc/redis/6379.conf
grep -E -v "^#" /etc/redis/6379.conf |sed '/^$/d'
4.配置
/etc/redis/6379.conf
由于redis采用的安全策略,默认会只准许本地访问,修改上面配置文件,
把bind 127.0.0.1注释掉,再把protected-mode 改为no,设置密码requirepass,
可以用windows客户端维护查看:下载RedisDesktopManager(https://redisdesktop.com/)
设置密码后,redis-cli连接,然后输入auth password1
5.常用指令
略
6.参考:
http://blog.csdn.net/cuibruce/article/details/53501532 http://www.cnblogs.com/kmonkeywyl/p/5728062.html
相关文章推荐
- redis 3.2.6 on ubuntu 14.04
- install and config redis on ubuntu14.04
- install redis and used in golang on ubuntu 14.04
- Install LEMP (Linux, Nginx, MySQL and PHP) Stack on Ubuntu Linux 14.04 LTS(转)
- Ubuntu 14.04 上使用 Nginx Passenger 部署 Ruby on Rails
- Linux(ubuntu~16.04.4) redis 3.2.6 Redis Cluster集群主从搭建笔记
- Install Scala and SBT using apt-get on Ubuntu 14.04 or any Debian derivative using apt-get
- [Ubuntu] Install teamviewer9 on Ubuntu14.04_x64
- 【Redis笔记-1】Redis Desktop Manager On Ubuntu
- How to Install Laravel with an Nginx Web Server on Ubuntu 14.04(Composer,laravel,nginx)
- NVIDIA Cuda 7.5 on Ubuntu 14.04 64 bits
- Install Nginx on Ubuntu 14.04 LTS
- 在Ubuntu14.04下安装Redis
- Ubuntu14.04安装redis和简单配置
- ubuntu14.04 adding swap on /dev/mapper 停住不动
- virtualenv and virtualenvwrapper on Ubuntu 14.04
- Install CUDA 6.5 on Ubuntu 14.04 LTS
- Ubuntu 14.04 安装 Redis
- Ubuntu14.04安装redis和简单配置