四十五、 Redis云平台CacheCloud搭建之二进制文件

            Redis云平台CacheCloud搭建之二进制文件

1、下载二进制安装包

官方下载地址:
https://github.com/sohutv/cachecloud

CSDN下载地址:
https://download.csdn.net/download/newbie_907486852/10636515

好处:安装方便
坏处:源码不能修改(比如redis版本号)

2、CacheCloud安装

只能是安装到opt目录(请注意):

将cachecloud-bin-1.2.tar.gz解压缩到opt目录:
[root@redis opt]# tar -xvf cachecloud-bin-1.2.tar.gz 

进入目录:
[root@redis opt]# cd cachecloud-web/

修改启动项目的JVM大小:
[root@redis cachecloud-web]# vim start.sh 

四十五、 Redis云平台CacheCloud搭建之二进制文件_第1张图片

连接mysql,加载数据库脚本:
[root@redis cachecloud-web]#  mysql -u root -h 127.0.0.1 -p
Enter password: 
mysql> source /opt/cachecloud-web/cachecloud.sql

查看数据库:
show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cache_cloud        |
| mysql              |
| test               |
+--------------------+
4 rows in set (0.15 sec)

mysql> use cache_cloud
Database changed
mysql> show tables;
+---------------------------------------+
| Tables_in_cache_cloud                 |
+---------------------------------------+
| QRTZ_BLOB_TRIGGERS                    |
| QRTZ_CALENDARS                        |
| QRTZ_CRON_TRIGGERS                    |
| QRTZ_FIRED_TRIGGERS                   |
| QRTZ_JOB_DETAILS                      |
| QRTZ_LOCKS                            |
| QRTZ_PAUSED_TRIGGER_GRPS              |
| QRTZ_SCHEDULER_STATE                  |
| QRTZ_SIMPLE_TRIGGERS                  |
| QRTZ_SIMPROP_TRIGGERS                 |
| QRTZ_TRIGGERS                         |
| app_audit                             |
| app_audit_log                         |
| app_client_costtime_minute_stat       |
| app_client_costtime_minute_stat_total |
| app_client_datasize_minute_stat       |
| app_client_exception_minute_stat      |
| app_client_instance                   |
| app_client_value_distri_minute_stat   |
| app_client_value_minute_stats         |
| app_client_version_statistic          |
| app_data_migrate_status               |
| app_desc                              |
| app_hour_command_statistics           |
| app_hour_statistics                   |
| app_minute_command_statistics         |
| app_minute_statistics                 |
| app_to_user                           |
| app_user                              |
| instance_config                       |
| instance_fault                        |
| instance_host                         |
| instance_info                         |
| instance_slow_log                     |
| instance_statistics                   |
| machine_info                          |
| machine_statistics                    |
| server                                |
| server_stat                           |
| standard_statistics                   |
| system_config                         |
+---------------------------------------+
41 rows in set (0.00 sec)

修改jdbc配置:
[root@redis cachecloud-web]# vim jdbc.properties 
cachecloud.db.url = jdbc:mysql://127.0.0.1:3306/cache_cloud
cachecloud.db.user = root #加载数据库脚本的用户与登录用户一致
cachecloud.db.password = root
cachecloud.maxPoolSize = 20
jdbc.driver = com.mysql.jdbc.Driver
jdbc.validationQuery = select 1 from dual
启动CacheCloud;
[root@redis cachecloud-web]# sh start.sh 
Starting the cachecloud ....OK!
PID: 3746
STDOUT: /opt/cachecloud-web/logs/cachecloud-web.log

3、登录CacheCloud

登录地址:http://192.168.1.108:8585/manage/login

四十五、 Redis云平台CacheCloud搭建之二进制文件_第2张图片

你可能感兴趣的:(Redis,CacheCloudy,从零开始学Redis)