centos6.6源码编译安装redis4.0
程序员文章站
2022-06-28 22:23:02
...
Redis
安装位置:/usr/local/redis
需要安装依赖tcl >= 8.5
redis官网下载redis到本地。移动至想要安装的目录。
mv redis-4.0.9 /usr/local/redis
cd /usr/local/redis
make
配置完成后到Redis安装目录:
cd /usr/local/redis/src
启动
这里要注意提前修改
redis.conf
文件中的daemonize no
一行。改no
为yes
。允许作为守护进程启动。
[aaa@qq.com src]# ./redis-server &
[1] 3059
[aaa@qq.com src]# 3059:C 28 Apr 15:34:58.985 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
3059:C 28 Apr 15:34:58.986 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=3059, just started
3059:C 28 Apr 15:34:58.986 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf
3059:M 28 Apr 15:34:58.987 * Increased maximum number of open files to 10032 (it was originally set to 1024).
略去标志图案
3059:M 28 Apr 15:34:58.989 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
3059:M 28 Apr 15:34:58.989 # Server initialized
停止
./redis-cli shutdwon
或者kill掉。
注释:redis官方没有使用init.d来管理redis。推荐使用自带组件sentinel
来管理redis。强行使用service报错start-stop-daemon.c
找不到。
下一篇: 哪个博客系统利于SEO优化
推荐阅读
-
Linux CentOS6.6系统中安装mysql源码包的方法
-
Linux下源码编译安装配置SVN服务器的步骤分享
-
[环境配置]Ubuntu 16.04 源码编译安装OpenCV-3.2.0+OpenCV_contrib-3.2.0及产生的问题
-
CentOS 6.6 源码编译安装MySQL 5.7.18教程详解
-
详解Docker源码编译安装
-
Mac系统下源码编译安装MySQL 5.7.17的教程
-
Ubuntu 16.04源码编译安装Apache 2.4.25教程
-
CentOS中源码编译安装Nginx
-
Linux下源码编译安装MySql,centeros7
-
CentOS 6.3 安装配置Apache2.2.6的方法(源码编译安装)