Get the App
SLTechnology News&Howtos  ›  Servers  › 

Centos7 install redis-5.0

Shulou Source: shulou.com Published: 2022-06-02 22:22:59 09月22日 Update

Wget http://download.redis.io/releases/redis-5.0.5.tar.gz

Tar-xf redis-5.0.5.tar.gz

Cd redis-5.0.5

Make installl

INSTALL install

INSTALL install

INSTALL install

INSTALL install

INSTALL install

Make [1]: Leaving directory `/ usr/local/src/redis-5.0.5/src'

Set redis to boot

[root@iZd7oc0a0u64q75bim8bu8Z redis-5.0.5] #. / 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] / etc/redis/redis.conf

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

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

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

Selected config:

Port: 6379

Config file: / etc/redis/redis.conf

Log file: / var/log/redis.log

Data dir: / var/lib/redis/db

Executable: / usr/local/bin/redis-server

Cli Executable: / usr/local/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...

Successfully added to chkconfig!

Successfully added to runlevels 345!

Starting Redis server...

Installation successful!

Start redis

Redis-server / etc/redis/redis.conf

[root@iZd7oc0a0u64q75bim8bu8Z redis-5.0.5] # ss-ntlpu | grep 6379

Tcp LISTEN 0 128 127.0.0.1 pid=7255,fd=6 6379: users: ("redis-server", pid=7255,fd=6)

Tags: Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi OPPO Reno Docker Redmi