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

Install redis-3.2.5 under centos 6.7 of redis

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 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: centos 6 configures local Yum source, please refer to http://blog.csdn.net/zhang123456456/article/details/56690945

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.conf

Daemonize yes

Pidfile / var/run/redis_6379.pid

Port 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 redis

Root 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 redis

Root 5861 2553 0 23:31 pts/1 00:00:00 grep redis

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

Wechat

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

12
Report