centos cachecloud-redis-安装

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容