需要环境中支持gcc与tcl
安装gcc
yum install cpp
yum install binutils
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make
一些准备工作
cd usr/local/
mkdir kencery
cd kencery/
安装tcl
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
tar -zxvf tcl8.6.1-src.tar.gz
cd tcl8.6.1
cd unix
./configure
make
make install
安装redis(安在kencery)
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar -zxvf redis-4.0.8.tar.gz
mv redis-4.0.8 redis
cd redis
cd src/
make test
make install
测试redis是否安装成功(/usr/src/redis/src/)
redis-server &
redis-server /usr/local/kencery/redis/redis.conf
redis-cli shutdown
netstat -ntlp |grep 6379
redis-cli
set ...
get ...
参考文章
一.整体安装过程:
https://www.cnblogs.com/hanyinglong/p/5036558.html
二.redis-server & 出现的warning:
1.
The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn..
https://www.cnblogs.com/faunjoe88/p/7158484.html
vim /etc/sysctl.conf 里加
net.core.somaxconn= 1024 后
执行 sysctl -p 生效
2.
overcommit_memory is set to 0! Background save may fail under low memory condition
https://blog.csdn.net/houjixin/article/details/46412557
vim /etc/sysctl.conf 里加
vm.overcommit_memory=1 后
执行 sysctl -p 生效
3.
you have Transparent Huge Pages (THP) support enabled in your kernel.
vim /etc/rc.local 里加
if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
fi
重启后生效
4综合警告分析:
https://blog.csdn.net/a491857321/article/details/52006376