然後上傳至你的系統(rz命令 yum install rz)
2.安裝gcc
yum install gcc-c++
安裝過程的詢問 寫y
3.解壓redis
tar -zxvf redis-4.0.1.tar.gz
4.進入 redis-4.0.1 執行make
出現如圖錯誤
分配器allocator, 如果有malloc 這個 環境變數, 會有用這個環境變數的 去建立redis。
而且libc 並不是預設的 分配器, 預設的是 jemalloc, 因為 jemalloc 被證明 有更少的 fragmentation problems 比libc。
但是如果你又沒有jemalloc 而只有 libc 當然 make 出錯。 所以加這麼乙個引數,執行如下命令:
make malloc=libc
5 進入src cd src
然後 make test
tcl(tool command language)工具指令碼語言,是linux內的一種語言包。,這裡需要先安裝tcl。
(2、然後解壓 tar -zxvf tcl8.6.1-src.tar.gz
(4、安裝 tcl 為編譯 tcl 做準備:
cd 到tcl資料夾裡 cd tcl8.6.1/ cd unix
cd unix/ ./configure
./configure
編譯軟體包:
make
安裝軟體包:
make install
這個時候在命令列就可以輸入tclsh進入tcl直譯器 tcl就可以使用了。
6.進入redis解壓目錄 src 再次執行make test
7.安裝 make prefix=/usr/local/redis install
/usr/local/redis 是你要安裝的目錄
8.把解壓的redis路徑下的redis.conf檔案拷貝到安裝路徑下面
[root@localhost redis-4.0.1]# cp redis.conf /usr/local/redis
[root@localhost redis-4.0.1]# cd /usr/local/redis
[root@localhost redis]# ls bin redis.conf
到這裡redis已經安裝成功了。
9.後端啟動
(1、首先編輯redis.conf
[root@localhost redis]# vim redis.conf
2、找到daemonize no將其改為yes(在vim中插入資料按鍵盤上的i或者insert)
效果如下:
3、按esc退出insert模式,再按:,並且輸入wq。代表儲存並且退出
4、再次啟動
[root@localhost redis]# ls
bin redis.conf
[root@localhost redis]# ./bin/redis-server ./redis.conf
//這裡載入配置檔案
80167:c 30 jul 16:01:58.145 # oo0ooo0ooo0oo redis is starting oo0ooo0ooo0oo
80167:c 30 jul 16:01:58.145 # redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=80167, just started
80167:c 30 jul 16:01:58.145 # configuration loaded
這樣redis就啟動了
可以通過
ps -ef | grep -i redis
來檢視是否啟動
5、關閉redis
[root@localhost redis]# ./bin/redis-cli shutdown
Shadow 在CentOS 6 5下安裝
安裝tor官方的乙個外掛程式shadow用來做虛擬網路環境,進行驗證 安裝指南在此 然後把依賴裝上,在裝debuginfo install glibc 的過程中報錯或者找不到依賴,如果是yum鎖占用問題,關閉當前占用程序再裝即可,找不到依賴的話就先安裝yum utils 因為debuginfo in...
在CentOS 6 5上安裝NodeJS
centos的軟體源未包含有最新的nodejs,需要手動編譯安裝。首先安裝依賴的庫與工具 yum install libtool automake autoconf gcc c openssl devel configure prefix usr make make install 最後用 node...
Centos6 5下iscsi儲存搭建
在搭建vsphere環境需要用到網路儲存來模擬生產環境中的應用,現將一台800g 硬碟的伺服器配置成iscsi儲存。iscsi伺服器如下 ip 10.11.68.10 硬碟 除伺服器基本應用外,劃分500g作為儲存用,由於採用的lvm,我們直接建立邏輯卷即可。root iscsi10 vgs vg ...