mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
Update README.md
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
|
||||
主站地址: [http://tbed.hellohao.cn/](http://tbed.hellohao.cn/)
|
||||
|
||||
站点Demo:[http://tc.hellohao.cn/](http://tc.hellohao.cn/)
|
||||
|
||||
文档地址: [http://tbed.hellohao.cn/doc](http://tbed.hellohao.cn/doc)
|
||||
|
||||
开源版编译包下载(内部版请前往主站获取): [https://github.com/Hello-hao/Tbed/releases/](https://github.com/Hello-hao/Tbed/releases/)
|
||||
@@ -52,75 +50,13 @@
|
||||
- JDK 1.8
|
||||
- MySQL5.5+
|
||||
|
||||
## 一:项目编译
|
||||
|
||||
(如果你的目的是为了部署自己的图床项目,可以下滑直接用编译包按照部署教程,直接可以部署。)
|
||||
## 部署
|
||||
|
||||
### 下载项目
|
||||
|
||||
```git
|
||||
git clone https://github.com/Hello-hao/Tbed.git
|
||||
```
|
||||
|
||||
### 导入项目
|
||||
|
||||
使用自己的 Intellij IDEA 或者 Eclipse 均可.
|
||||
|
||||
### 导入数据库
|
||||
|
||||
创建数据库`picturebed`, 字符集选择 `utf8`, 排序规则选择 `utf8_general_ci`.
|
||||
导入picturebed.sql
|
||||
|
||||
### 配置文件
|
||||
### 修改配置文件
|
||||
|
||||
打开 `application.properties` 修改 `MySQL` 和 `服务器端口` 等连接信息.
|
||||
|
||||
```properties
|
||||
#数据库账号
|
||||
spring.datasource.username=root
|
||||
#数据库密码
|
||||
spring.datasource.password=root
|
||||
#数据库链接地址
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/picturebed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
#端口
|
||||
server.port=8088
|
||||
#鉴黄周期表达式 下方表达式为每天七点半执行
|
||||
#不懂请勿乱修改。具体可以参考官方文档http://doc.wwery.com
|
||||
Expression=0 30 04 * * ?
|
||||
|
||||
|
||||
#下边的配置项不需要修改。
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
mybatis.mapper-locations=classpath:mapper/*.xml
|
||||
logging.level.cn.hellohao.dao=debug
|
||||
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
|
||||
spring.jackson.time-zone=GMT+8
|
||||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
||||
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
||||
spring.thymeleaf.cache=false
|
||||
multipart.maxFileSize=10240KB
|
||||
multipart.maxRequestSize=10240KB
|
||||
spring.thymeleaf.mode = LEGACYHTML5
|
||||
spring.http.multipart.location=/data/upload_tmp
|
||||
|
||||
```
|
||||
|
||||
### 启动项目
|
||||
|
||||
在完成了上述步骤后,找到 TbedApplication 启动类, 启动即可.
|
||||
|
||||
初始用户名:admin
|
||||
初始邮箱:admin
|
||||
初始密码`admin`
|
||||
|
||||
启动后访问地址为:http://localhost:8088 , `8088`就是你配置`server.port=8088`的端口.
|
||||
|
||||
|
||||
|
||||
## 二:编译包直接部署
|
||||
|
||||
> **项目搭建部署教程:** [**http://www.hellohao.cn/?p=201**](http://www.hellohao.cn/?p=201 "点击查看搭建文档")
|
||||
|
||||
### 部署
|
||||
|
||||
前提是你的服务器必须要有`JDK1.8`环境,和`mysql`数据库。
|
||||
@@ -130,8 +66,6 @@ spring.http.multipart.location=/data/upload_tmp
|
||||
yum install java-1.8*
|
||||
```
|
||||
|
||||
如果你是宝塔环境,也可以在应用商店安装一个`Tomcat8`因该是自带JDK1.8环境。
|
||||
|
||||
把`Tbed.jar`和`application.properties`放到服务器你想存放的目录比如`/home`,注意这两个文件必须要在同一目录下不能分开。
|
||||
依次运行如下命令:
|
||||
|
||||
@@ -141,15 +75,22 @@ cd /home
|
||||
java -jar Tbed.jar
|
||||
```
|
||||
|
||||
然后访问`http://服务器IP:8088/`即可。
|
||||
|
||||
### 启动项目
|
||||
|
||||
启动后访问地址为:http://localhost:8088 , `8088`就是你配置`server.port=8088`的端口.
|
||||
|
||||
初始用户名:admin
|
||||
初始邮箱:admin
|
||||
初始密码`admin`
|
||||
|
||||
|
||||
注意:上边的`/home`是你的jar包和application.properties文件放的目录。
|
||||
项目运行起来不要关闭xshell窗口,否则项目将不能访问。可以使用一些后台命令把项目锁定后台。如`nohup`或`screen`,推荐使用`screen`
|
||||
|
||||
### PC客户端
|
||||
|
||||

|
||||
|
||||
如果你想让自己的图床拥有自己的客户端,可以加下方群,联系群主帮你对接(前提是你使用的是Hellohao图床程序搭建的网站。)
|
||||
作者精力不够,工作繁忙,暂停更新
|
||||
|
||||
### 声明
|
||||
|
||||
@@ -159,7 +100,7 @@ java -jar Tbed.jar
|
||||
|
||||
### 反馈交流
|
||||
|
||||
**如果你遇到BUG可以去我的博客反馈**
|
||||
**如果你遇到BUG可以去我的博客反馈**
|
||||
Hellohao博客: [http://www.hellohao.cn/](http://www.hellohao.cn/)
|
||||
|
||||
欢迎加入Hellohao开发者交流群,群聊号码:**864800972**
|
||||
|
||||
Reference in New Issue
Block a user