vmware安裝centos7 安裝redis windows7訪問redis

來源:互聯網
上載者:User

標籤:虛擬   win   設定檔   防火牆   輸入   firewall   找到你   nload   登入   

1.在windows7中安裝vmware

2.在vmware中安裝centos7

3.禁用centos7內建的firewalld.service

4.安裝iptables防火牆

5.安裝Redis 3.2.6 is the latest stable version.

6.修改redis.conf設定檔(由於無法複製,只能顯示)

找到你redis-3.2.6的redis.conf設定檔。

由於設定檔太長我就不複製了。

vi redis.conf

注釋 #bind 127.0.0.1

注釋 #protected-mode no

!wq儲存退出後啟動redis

注意啟動需要帶設定檔 

這裡注意:root登入切換到redis-3.2.6目錄:

輸入 src/redis-server

看到如下就啟動成功了

 

這個時候你就可以用windows7的telnet命令來測試 開啟cmd telnet 192.168.2.1:6379(自己查看虛擬機器中的ipconfig)(6379預設連接埠)

或者使用Redis Desktop Manager開啟連結測試。

 

vmware安裝centos7 安裝redis windows7訪問redis

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.