redis單機搭建

來源:互聯網
上載者:User

標籤:redis 搭建

1.       建立分使用者(用於啟動redis)

[[email protected] ~]# useradd redis

  1. 2.       切換到分使用者環境

[[email protected] ~]# sudo su – redis

  1. 3.       上傳redis軟體或者wget http://download.redis.io/releases/redis-3.2.6.tar.gz

[[email protected] ~]$ rz -y

rz waiting to receive.

Starting zmodem transfer.  PressCtrl+C to cancel.

Transferring redis-3.2.6.tar.gz...

  100%    1508 KB   1508 KB/sec    00:00:01       0 Errors 

[[email protected] ~]$ ls

redis-3.2.6.tar.gz

  1. 4.       解壓縮redis檔案並安裝

[[email protected] ~]$ mkdir run

[[email protected] ~]$ tar zxf redis-3.2.6.tar.gz –C run/

[[email protected] ~]$ cd run/redis-3.2.6/

[[email protected] redis-3.2.6]$ make

  1. 5.       啟動redis(這裡使用預設設定檔進行啟動)

[[email protected] ~]$ ~/run/redis-3.2.6/src/redis-server~/run/redis-3.2.6/redis.conf  &

[[email protected] ~]$ netstat -lantup|grep redis

(Not all processes could be identified, non-owned process info

 will not be shown, you wouldhave to be root to see it all.)

tcp       0      0127.0.0.1:6379[l1]       0.0.0.0:*     LISTEN     8536/redis-server 1

 [l1]預設綁定的地址以及連接埠


本文出自 “李群豔部落格” 部落格,轉載請與作者聯絡!

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.