Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新版本如何安装运行? #10

Closed
Water0 opened this issue Sep 27, 2020 · 2 comments
Closed

最新版本如何安装运行? #10

Water0 opened this issue Sep 27, 2020 · 2 comments

Comments

@Water0
Copy link

Water0 commented Sep 27, 2020

可能我问的这个问题比较弱智,认识JdonFramework是三年前,但真正接触的是从《复杂软件设计之道:领域驱动设计全面解析与实战》这本书开始。读完两遍后,一直想调用运行jivejdon的源码,在关于领域设计和微服务的基础知识准备差不多了,就开始下载源码跑了。

发现doc目录下的Install文档并不适合当前源码,比较doc/tomcat目录不存在。在Idea中打开源码,解析依赖后,发现缺少组件,类似:
image

image

请求作者给予指导,万分感谢。

@banq
Copy link
Owner

banq commented Sep 27, 2020

需要配置Idea根据Maven编译项目,不能直接用Idea自己的编译器
或者直接从git新建项目:
image
导出后:
image

编译使用Maven编译:
image

如果要运行JiveJdon,使用Docker,需要预先安装Docker,需要能翻墙:
https://www.jdon.com/54526
然后在根目录下运行:
mvn package
docker build -t jivejdondb -f Dockerfile.db .
docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 jivejdondb
docker build -t jivejdonweb -f Dockerfile.web .
docker run -p 8080:8080 jivejdonweb
浏览器访问 : http://$DOCKER_HOST_IP:8080
即可,一般时127.0.0.1:8080,根据你的Docker IP配置。

如果觉得上面麻烦,可按照doc/install.txt中手工一步一步安装。已经把丢失的doc/tomcat目录上传了

至于如何搞定idea和maven、Docker的配置,见这个帖子里面的百度网盘中视频教学和maven.ppt,跟着后面一步一步操作即可学会
https://www.jdon.com/54881

@banq
Copy link
Owner

banq commented Sep 28, 2020

增加了包含tomcat和mysql的运行环境服务器打包下载:
链接:https://pan.baidu.com/s/15yqyo6GBx8OHmpoTpweQ3A
提取码:97j9

启动mySQL: mysql-5.6.15-winx64\bin\mysqld.exe
启动Tomcat: apache-tomcat-7.0.37\bin\debug.bat
浏览器: http://127.0.0.1:8080/
调试端口:8000
在Idea运行调试配置中增加一个tomcat服务器,调试端口配置为8000,就可以在 Idea中设置断点调试Jivejdon

@banq banq closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants