1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > cachecloud(redis云平台)源码方式搭建(inux下适合新手的超详细搭建步骤)

cachecloud(redis云平台)源码方式搭建(inux下适合新手的超详细搭建步骤)

时间:2022-06-05 21:59:46

相关推荐

cachecloud(redis云平台)源码方式搭建(inux下适合新手的超详细搭建步骤)

前言

1、linux操作系统发行版:CentOS release 6.9

2、服务器需要安装MySQL,具体搭建方案见之前的文章:/qq_33286321/article/details/1070673353

3、cachecloud版本:1.2

4、使用cachecloud(redis云平台)搭建和监控redis见下一篇文章:/qq_33286321/article/details/107099597

准备

1、从GitHub上下载cachecloud的源码放到本地,并用ieda打开(之所以用源码方式,是为了二次开发,比如:登录

2、创建cache-cloud数据库

搭建

1、初始化数据库

执行工程中的cachecloud.sql脚本

2、修改工程中的数据库配置

将cachecloud.db.url 、cachecloud.db.user、cachecloud.db.password修改成自己的数据库参数(注意cachecloud.db.url后面需要加上编码信息,不然cachecloud系统会出现中文乱码,但前提MySQL的编码也要是utf-8

3、打包

3.1、本地部署打包

在工程的根目录下执行:mvn clean compile install -Plocal

3.2、远程部署打包

在工程的根目录下执行:mvn clean compile install -Ponline

4、部署

4.1、本地部署(无)

4.2、远程部署

进入/opt执行:mkdir cachecloud-web

进入/opt/cachecloud-web执行:mkdir logs

拷贝war包(cachecloud-open-web/target/cachecloud-open-web-1.0-SNAPSHOT.war)到/opt/cachecloud-web下

拷贝配置文件(cachecloud-open-web/src/main/resources/cachecloud-web.conf)到/opt/cachecloud-web下,并改名为cachecloud-open-web-1.0-SNAPSHOT.conf(spring-boot要求,否则配置不生效

拷贝脚本(cachecloud根目录下script目录下的start.sh和stop.sh)到/opt/cachecloud-web下

给脚本赋权

进入/opt/cachecloud-web执行:chmod 755 *.sh

5、启动

5.1、本地启动

在cachecloud-open-web目录下执行:mvn spring-boot:run

5.2、远程启动

进入/opt/cachecloud-web执行:./start.sh

6、登录(用户名和密码默认:admin/admin

6.1、本地登录

http://localhost:9999/manage/login

6.2、远程登录

http://远程服务器的ip:8585/manage/login

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。