install redis
来源:互联网 发布:中国工业企业数据库 编辑:程序博客网 时间:2024/06/07 02:45
2.uncompact file
$ tar zxvf redis-3.2.9.tar.gz && mv redis-3.2.9 /opt/redis
3.compile redis:
$ cd /opt/redis && make && make install
4.configure redis
$ sudo mkdir /etc/redis
$ sudo cp redis.conf /etc/redis/redis.conf
5.launch redis,specialize configuration file
$ /opt/redis/src/redis-server /etc/redis/redis.conf
6.lauch redis passing arguments via the command line
$ ./redis-server --port 6380 --slaveof 127.0.0.1 6379
7. use redis-cli
redis-Command Line Interface
(1)
$ ./redis-cli # Pass authentication Using "auth" directives
127.0.0.1:6379> auth foobared
OK
(2)
$ ./redis-cli -n 1 -a foobared incr mycounter
8. get value
$ ./src/redis-cli -a foobared get k1
9. enable authentication
(1) uncomment the line including 'requirepass'
$ sudo sed -r '/^#\s?requirepass/ s/^#\s?//g' -i /etc/redis/redis.conf
$ cat /etc/redis/redis.conf | grep -P \s?requirepass
- redis install
- 【REDIS】 Install
- install redis
- redis系列--redis单机install
- redis系列--redis集群install
- ubuntu 12 install redis
- centos install redis
- centos install redis phpredis
- centos 6.3 & redis install
- centos 6.5 install redis
- Install Redis on Ubuntu
- Ubuntu install Redis
- linux redis install
- redis cluster install
- Redis windows Install
- redis centos 安装 install
- redis install&cluster
- redis jdk install
- 【Regular Expression】RE分类及案例
- [Linux] Desktop Management
- [Firewall] iptables Configuration
- 【反向代理】图解
- 【Tomcat】Invalid character found in the request target
- install redis
- Words used when reading Redis documents
- Eclipse中将Java项目转换成Web项目的方法
- 查看端口占用
- sed 实践案例 (不定期更新)
- Exception in thread "http-nio-8083-exec-5" 异常
- 【Tomcat】重新獲得war包
- 决策树demo(python)
- Basic Skill