nosql 非关系型型数据库
redis的安装和配置
1)工具准备:
远程连接工具secureCRT
2)环境准备:
jdk安装和配置
mysql安装和配置
tomcat安装
3)redis下载,可以用wget下载,但是我采用secureCRT上传的方式
- redis是用Redis是一个使用ANSI C编写的开源、支持网络、基于内存、可选持久性的键值对存储数据库
Install
Download, extract and compile Redis with:
$ wget http://download.redis.io/releases/redis-4.0.11.tar.gz
$ tar xzf redis-4.0.11.tar.gz
$ cd redis-4.0.11
$ make
The binaries that are now compiled are available in the src directory. Run Redis with:
$ src/redis-server
You can interact with Redis using the built-in client:
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"
issues-THP
This will create latency and memory usage issues with Redis. To fix this issue run the command
'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root,
and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
31515:M 29 Sep 08:10:08.656 * Ready to accept connections=
issues
31981:M 29 Sep 08:19:09.870 # 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.
31981:M 29 Sep 08:19:09.870 * Ready to accept connections