1.新建centos用戶,cachecloud redis 使用
useradd cachecloud
passwd cachecloud
hNg3hUe9DaEL
2.需要/opt/目錄權(quán)限秘狞,使用root登錄
chmod 777 /opt/
3.使用cachecloud 用戶登錄系統(tǒng)逼侦,創(chuàng)建cachecloud redis 目錄(cachecloud用戶)
mkdir -p /opt/cachecloud
mkdir -p /opt/cachecloud/data
mkdir -p /opt/cachecloud/conf
mkdir -p /opt/cachecloud/logs
4.創(chuàng)建目錄(cachecloud用戶)
mkdir -p /soft/
mkdir -p /soft/cachecloud
將 cachecloud-init.sh 上傳到 /soft/cachecloud
5.確認(rèn) cachecloud-init.sh 里面redis的安裝版本(目前版本為3.2.3)(cachecloud用戶)
vi /soft/cachecloud/cachecloud-init.sh
readonly redisTarGz="redis-3.2.3.tar.gz"
6.安裝 cachecloud redis(cachecloud用戶)
cd /soft/cachecloud
sh cachecloud-init.sh cachecloud
(!!?佟W缑浴=挑妗4佟!M咴恪M灿蕖!F姓恪3膊簟句伶!
1.初始init.sh的時(shí)候出現(xiàn):
cachecloud-init.sh:行2: $'\r': 未找到命令
cachecloud-init.sh:行11: $'\r': 未找到命令
解決方法:
因?yàn)槊钪苯訌膚indows 復(fù)制過來導(dǎo)致的
yum install dos2unix
dos2unix /soft/cachecloud/cachecloud-init.sh
)