1.新建centos用戶,cachecloud redis 使用
useradd cachecloud
passwd cachecloud
hNg3hUe9DaEL
2.需要/opt/目錄權限,使用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.確認 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
(?。。。。。。。。。。。?!
1.初始init.sh的時候出現:
cachecloud-init.sh:行2: $'\r': 未找到命令
cachecloud-init.sh:行11: $'\r': 未找到命令
解決方法:
因為命令直接從windows 復制過來導致的
yum install dos2unix
dos2unix /soft/cachecloud/cachecloud-init.sh
)