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

不会部署tomcat诶 #2

Open
214058830 opened this issue May 26, 2019 · 7 comments
Open

不会部署tomcat诶 #2

214058830 opened this issue May 26, 2019 · 7 comments

Comments

@214058830
Copy link

半天部署不好这个东西,能不能教教我啊,作者大人。

@miansen
Copy link
Owner

miansen commented May 27, 2019

半天部署不好这个东西,能不能教教我啊,作者大人。

不会部署到 Tomcat 吗?能具体说一下卡在哪里了吗?最好能截图说明一下

@214058830
Copy link
Author

214058830 commented May 27, 2019 via email

@miansen
Copy link
Owner

miansen commented May 27, 2019

要先打成 war 包才能部署,并且还要修改 server.xml 文件。

  1. 克隆项目到本地:https://github.com/miansen/Roothub.git
  2. 使用你熟悉的开发工具打开,如 IDEA 或者 Eclipse
  3. 创建 MySQL 数据库 roothub,字符集 utf8,如果想支持 emoji,就要选择 utf8mb4 字符集。
  4. 将项目下的 src/main/sql/roothub.sql 文件导入到 roothub 数据库。
  5. 修改 JDBC 配置文件 src/main/resources/jdbc.properties,帐号密码换成你自己的
  6. 开启了 Redis,修改 Redis 的配置文件 src/main/resources/redis.properties
  7. 用 Eclipse 或者 IDEA 将项目打成 war 包
  8. 将 war 包部署到 webapps 目录
  9. 修改 conf 目录下的 server.xml 文件,将你的 war 包添加上去
  10. 运行startup.sh

@214058830
Copy link
Author

214058830 commented May 27, 2019 via email

@miansen
Copy link
Owner

miansen commented May 27, 2019

恩,这个东西自己折腾一遍就会了。
网上查一下 Tomcat 怎么部署项目,怎么打 war 包,怎么修改 server.xml 配置文件

@214058830
Copy link
Author

214058830 commented May 27, 2019 via email

@miansen
Copy link
Owner

miansen commented May 27, 2019

加我QQ吧,1158827539

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