标签:false ant add pen etc settings style target jdbc
1.创建数据库(192.168.1.14)
create database db_cachecloud;
grant all privileges on db_cachecloud.* to cachecloud@‘%‘ identified by ‘cachecloud‘;
2.进行安装
[root@node-83 opt]# cd /opt
[root@node-83 opt]# unzip cachecloud-master.zip
[root@node-83 opt]# mv cachecloud-master cachecloud
3.安装数据库脚本
mysql -h 192.168.1.14 -ucachecloud -pcachecloud
use db_cachecloud
source /opt/cachecloud/script/cachecloud.sql
4.编辑/usr/local/cachecloud-master/cachecloud-open-web/src/main/swap/online.properties文件
online.properties文件内容如下
[root@node-83 cachecloud]# more /opt/cachecloud/cachecloud-open-web/src/main/swap/online.properties
cachecloud.db.url = jdbc:mysql://192.168.1.14:3306/db_cachecloud
cachecloud.db.user = cachecloud
cachecloud.db.password = cachecloud
cachecloud.maxPoolSize = 20
isClustered = true
isDebug = false
spring-file=classpath:spring/spring-online.xml
log_base=/opt/cachecloud-web/logs
web.port=8585
log.level=WARN
5.在cachecloud根目录下运行
[root@node-83 cachecloud]# pwd
/opt/cachecloud
[root@node-83 cachecloud]#mvn clean compile install -Ponline
6.修改maven配置文件
修改/usr/local/maven/conf/settings.xml配置文件,修改为阿里云为源
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
7.创建/opt/cachecloud-web目录,并拷贝相关文件
[root@node-83 cachecloud]# mkdir -p /opt/cachecloud-web
cp /opt/cachecloud/cachecloud-open-web/target/cachecloud-open-web-1.0-SNAPSHOT.war /opt/cachecloud-web/
cp /opt/cachecloud/cachecloud-open-web/src/main/resources/cachecloud-web.conf /opt/cachecloud-web/
ln -s /opt/cachecloud-web/cachecloud-open-web-1.0-SNAPSHOT.war /etc/init.d/cachecloudweb
8.启动
/etc/init.d/cachecloudweb start
[root@node-83 cachecloud]# /etc/init.d/cachecloudweb start
which: no start-stop-daemon in (/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/java/jdk1.7.0_79/bin:/usr/local/maven/bin:/usr/local/bin:/root/bin)
Started [2925]
解决办法
[root@node-83 soft]# wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
[root@node-83 soft]# tar zxf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz
[root@node-83 soft]# mv apps/sys-utils/start-stop-daemon-IR1_9_18-2/ ./
[root@node-83 soft]# rm -rf apps
[root@node-83 soft]# cd start-stop-daemon-IR1_9_18-2/
[root@node-83 soft]# cc start-stop-daemon.c -o start-stop-daemon
[root@node-83 soft]# cp start-stop-daemon /usr/local/bin/start-stop-daemon
查看是否安装成功
[root@localhost ~]# start-stop-daemon --help
再次启动
/etc/init.d/cachecloudweb start
9.登陆访问
http://192.168.1.83:8585
账号和密码为:admin/admin
将已经存在的redis添加到cachecloud
1.在已经存在的redis机器上添加用户cachecloud,这个用户是在配置文件中定义的/opt/cachecloud/cachecloud-open-web/src/main/swap/online.properties
useradd cachecloud
passwd cachecloud
2.在界面添加机器
机器管理-->添加新机器
3.导入应用
admin-->导入应用
标签:false ant add pen etc settings style target jdbc
原文地址:https://www.cnblogs.com/hxlasky/p/12982738.html