国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Redis > 正文

CentOS6.4 安裝Redis 教程詳解

2020-10-28 21:37:02
字體:
來源:轉載
供稿:網友

按照下面步驟依次執行

1.檢查依賴,安裝依賴

[root@ecs-3c46 ~]# whereis gccgcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz[root@ecs-3c46 ~]# whereis tctc: /sbin/tc /usr/lib64/tc /usr/share/tc /usr/share/man/man8/tc.8.gz[root@ecs-3c46 ~]# whereis wgetwget: /usr/bin/wget /usr/share/man/man1/wget.1.gz[root@ecs-3c46 ~]# yum -y install tcl 

2.進入/user/local/src/

[root@ecs-3c46 ~]# cd /user/local/src/ 

3.wget下載redis

[root@ecs-3c46 src]# wget http://download.redis.io/releases/redis-3.0.7.tar.gz 

4.解壓

[root@ecs-3c46 src]tar zxvf redis-3.0.7.tar.gz 

5.將文件轉存到/usr/local/redis

[root@ecs-3c46 src]mkdir /usr/local/redis[root@ecs-3c46 src]mv redis-3.0.7 /usr/local/redis[root@ecs-3c46 src]ll /usr/local/redis 

6.編譯安裝

[root@ecs-3c46 src]cd /usr/local/redis[root@ecs-3c46 redis]make && make install 

 7.在etc目錄下創建redi文件夾并創建配置文件,并修改配置文件

[root@ecs-3c46 redis]mkdir -p /etc/redis[root@ecs-3c46 redis]pwd[root@ecs-3c46 redis]cp -fr /usr/local/redis/redis.conf /etc/redis/ 

8.vim編輯/etc/redis/redis.conf,修改daemonize屬性為yes

[root@ecs-3c46 redis]# vim /usr/local/redis/redis.conf# By default Redis does not run as a daemon. Use 'yes' if you need it.# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.daemonize yes 

 9.執行/usr/loal/bin/redis-server /etc/redis/redis.conf來啟動redis服務器

[root@ecs-3c46 redis]# /usr/loal/bin/redis-server /etc/redis/redis.conf-bash: /usr/loal/bin/redis-server: No such file or directory[root@ecs-3c46 redis]# /usr/local/bin/redis-server /etc/redis/redis.conf73449:M 13 May 10:56:00.839 * Increased maximum number of open files to 10032 (it was originally set to 1024).

                _._                                                 
           _.-``__ ''-._                                            
      _.-``    `.  `_.  ''-._           Redis 3.0.7 (00000000/0) 64 bit
  .-`` .-```.  ```//    _.,_ ''-._                                  
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 73449
  `-._    `-._  `-./  _.-'    _.-'                                  
 |`-._`-._    `-.__.-'    _.-'_.-'|                                 
 |    `-._`-._        _.-'_.-'    |           http://redis.io       
  `-._    `-._`-.__.-'_.-'    _.-'                                  
 |`-._`-._    `-.__.-'    _.-'_.-'|                                 
 |    `-._`-._        _.-'_.-'    |                                 
  `-._    `-._`-.__.-'_.-'    _.-'                                  
      `-._    `-.__.-'    _.-'                                      
          `-._        _.-'                                          
              `-.__.-'                                              

 10.再打開一個終端,切換至redis的安裝目錄執行redis-cli

[root@ecs-3c46 bin]# redis-cli127.0.0.1:6379> keys *(empty list or set)127.0.0.1:6379> 

以上所述是小編給大家介紹的CentOS6.4 安裝Redis 教程,希望對大家有所幫助!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 竹山县| 珠海市| 桦南县| 宁乡县| 汽车| 卢氏县| 枣阳市| 潮安县| 莎车县| 壤塘县| 凌云县| 肃南| 阳江市| 佳木斯市| 华容县| 大宁县| 泰宁县| 彭泽县| 辽阳市| 永年县| 台安县| 广河县| 凤阳县| 麟游县| 夏邑县| 泰顺县| 阿巴嘎旗| 井冈山市| 宁陕县| 清流县| 三台县| 阳城县| 泽库县| 娄烦县| 福建省| 阿拉善盟| 宁阳县| 香格里拉县| 襄垣县| 贵定县| 安平县|