1.下载cobar
地址:https://github.com/alibaba/cobar
2.配置maven环境
3.cmd分别切换到cobar-master目录下manager和server目录执行
mvn -Dmaven.test.skip=true install
mvn eclipse:eclipse
4.导入myeclipse
configure-转化为maven项目
5.参照cobar-master\doc\Cobar_startup - Alibaba Open Sesame.pdf
新建数据库用户@172.18.70.48为所在服务器IP和表
6.修改cobar-server项目\assembly\conf下schema.xml
172.18.70.48为所在服务器IP
7.cmd切换到C:\Users\steve\Workspaces\MyEclipse Professional 2014\cobar-server>
执行mvn assembly:assembly打包在C:\Users\steve\Workspaces\MyEclipse Professional 2014\cobar-server\target下生成cobar-server-1.2.7.zip
解压cobar-server-1.2.7.zip到当前文件夹
8.切换到C:\Users\steve\Workspaces\MyEclipse Professional 2014\cobar-server\target\cobar-server-1.2.7\bin
执行startup.bat
9.cmd执行mysql -h172.18.70.48 -utest -ptest -P8066 -Ddbtest
登录完成安装文档执行其它命令即可
11.部署cobar-manager
修改C:\Users\steve\Workspaces\MyEclipse Professional 2014\cobar-manager\src\main\webapp\WEB-INF下
xmlpath.properties
#xmlpath=/home/admin/xml/
xmlpath=D\:/apache-tomcat-7.0.54/webapps/cobar-manager/WEB-INF/classes
12.部署到tomcat,启动
http://localhost:8080/cobar-manager/login.htm
用户名:root
密码:123456