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

Steps to install redis-3.2.5 under centos 6.7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Preliminary preparation:

1. The operating system needs to install gcc package and TCL library. Install yum-y install gcc and yum-y install tcl by configuring local yum source.

two。 Download the redis installation package and upload it to linux. Web site: http://download.redis.io/releases/

[root@mysql ~] # ll redis-3.2.5.tar.gz-rw-r--r--. 1 root root 1544040 Jun 1 22:57 redis-3.2.5.tar.gz

Description: how to configure local yum source in centos7. Please refer to https://www.jb51.net/article/108594.htm.

Formal installation

3. Decompression

[root@mysql ~] # tar-xzvf redis-3.2.5.tar.gz

4. Compilation and installation

[root@mysql ~] # cd redis-3.2.5 [root@mysql redis-3.2.5] # make & & make install

Description: execute the above command one at a time, so that Redis will be installed in the / usr/local/bin/ path.

5. Modify the configuration file

There is a redis.conf file under the redis-3.2.5 path, which needs to be copied and created to the / etc path, as follows

As shown:

[root@mysql redis-3.2.5] # mkdir-p / etc/redis [root@mysql redis-3.2.5] # mv redis.conf / etc/redis/

6. Modify the configuration file

[root@mysql redis-3.2.5] # vim / etc/redis/redis.conf [root@mysql redis-3.2.5] # cat / etc/redis/redis.confdaemonize yes pidfile / var/run/redis_6379.pidport 6379

7. Run / stop Redis

-- start

[root@mysql redis-3.2.5] # redis-server / etc/redis/redis.conf [root@mysql redis-3.2.5] # ps-ef | grep redisroot 5845 1 0 23:29? 00:00:00 redis-server *: 6379 root 5854 2553 0 23:30 pts/1 00:00:00 grep redis

Description: the first command means to start redisserver, and the second command means to check whether the redis service starts normally.

-- close

[root@mysql redis-3.2.5] # redis-cli shutdown [root@mysql redis-3.2.5] # ps-ef | grep redisroot 5861 2553 0 23:31 pts/1 00:00:00 grep redis

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

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