测试媛的专题我爱编程

centos cachecloud-redis-安装

2018-06-21  本文已影响7人  清浅第五空间

1.新建centos用户,cachecloud redis 使用

useradd cachecloud

passwd cachecloud

hNg3hUe9DaEL

2.需要/opt/目录权限,使用root登录

chmod 777 /opt/

3.使用cachecloud 用户登录系统,创建cachecloud redis 目录(cachecloud用户)

mkdir -p /opt/cachecloud

mkdir -p /opt/cachecloud/data

mkdir -p /opt/cachecloud/conf

mkdir -p /opt/cachecloud/logs

4.创建目录(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

上一篇下一篇

猜你喜欢

热点阅读