Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 install redis-5.0

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report