linux redis 源码安装,redis 源码安装

这篇博客详细介绍了如何使用install_server.sh脚本来快速设置Redis实例,包括选择端口、配置文件路径、日志文件和数据目录。脚本成功安装并启动了Redis服务器,最后演示了停止服务的过程。
摘要由CSDN通过智能技术生成

root@apiserver02:/opt/redis/utils# ./install_server.sh

Welcome to the redis service installer

This script will help you easily set up a running redis server

Please select the redis port for this instance: [6379]

Selecting default: 6379

Please select the redis config file name [/etc/redis/6379.conf] /opt/redis/conf/6379.conf

Please select the redis log file name [/var/log/redis_6379.log] /opt/redis/logs/redis_6379.log

Please select the data directory for this instance [/var/lib/redis/6379] /opt/redis/data

Please select the redis executable path [] /opt/redis/bin/redis-server

Selected config:

Port           : 6379

Config file    : /opt/redis/conf/6379.conf

Log file       : /opt/redis/logs/redis_6379.log

Data dir       : /opt/redis/data

Executable     : /opt/redis/bin/redis-server

Cli Executable : /opt/redis/bin/redis-cli

Is this ok? Then press ENTER to go on or Ctrl-C to abort.

Copied /tmp/6379.conf => /etc/init.d/redis_6379

Installing service...

update-rc.d: using dependency based boot sequencing

insserv: warning: script 'K01apf' missing LSB tags and overrides

insserv: warning: script 'apf' missing LSB tags and overrides

Success!

Starting Redis server...

Installation successful!

root@apiserver02:/opt/redis/utils# /etc/init.d/redis_6379 stop

Stopping ...

Redis stopped

root@apiserver02:/opt/redis/utils#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值