部署信息及JAR部署说明

This commit is contained in:
wkeyuan 2021-11-25 13:43:20 +08:00
parent 725c8b53b5
commit 896d095376
4 changed files with 37 additions and 11 deletions

View File

@ -85,12 +85,38 @@ mvn package
初始账号:```service@diaowen.net``` 密码:```123456```
### war包下载
### 快速部署安装
### 1、下载jar或war包
如果不想自己编译可以直接使用我们已经编译好的war包安装
如果不想自己编译可以直接使用我们已经编译好的jar,war包安装
最新的war包下载可以前往交流QQ ```群1635994795(满)``````群2301105635(满)```, 群3811287103(可加) (加群时请说明来由)
最新的jar、war包下载可以前往交流QQ ```群1635994795(满)``````群2301105635(满)```, 群3811287103(可加) (加群时请说明来由)
### 2、创建数据库
创建数据库,并初始化数据库。
数据库名dwsurvey
初始化脚本下载地址:
https://gitee.com/wkeyuan/DWSurvey/blob/master/src/main/resources/conf/sql/
#### 3.1、启动 spring boot jar
`java -jar dwsurvey-oss-v.4.0.jar --dwsurvey.web.file-path=/home/dwsurvey-file/ --spring.datasource.username=root --spring.datasource.password=123456`
命令参数说命:
--dwsurvey.web.file-path 生成的文件公共存储目录,必须是存在的目录。
--spring.datasource.username 数据库账号
--spring.datasource.password 数据库密码
正常启动后在浏览器输入
localhost:8080
#### 3.2 war 包安装
下载最新的dwsurvey-oss-v***.zip注意看后面的版本号解压后得到diaowen.war再考到tomcat wabapps下
打包环境版本jdk1.8, tomcat8.5.59

View File

@ -1,7 +1,7 @@
dwsurvey:
site: 'local'
web:
file-path: /Documents/target/
file-path: ~/Documents/target/
back-site:
mode: auto
url: http://localhost:8282/dwsurvey
@ -16,8 +16,8 @@ dwsurvey:
site-mail: service@diaowen.net
site-phone: 18888888888
version:
info: DWSurvey OSS V5.0 Spring Boot
number: OSS V5.0
info: DWSurvey OSS V4.0 Spring Boot
number: OSS V4.0
built: 2021/11/21
# mysql
server:
@ -34,7 +34,7 @@ spring:
suffix: .jsp
datasource:
#type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://localhost:3306/dwsurvey_21test?useUnicode=true&characterEncoding=utf8
url: jdbc:mysql://localhost:3306/dwsurvey?useUnicode=true&characterEncoding=utf8
username: root
password: 123456,.
jpa:

View File

@ -16,8 +16,8 @@ dwsurvey:
site-mail: service@diaowen.net
site-phone: 18888888888
version:
info: DWSurvey OSS V5.0 Spring Boot
number: OSS V5.0
info: DWSurvey OSS V4.0 Spring Boot
number: OSS V4.0
built: 2021/11/21
# mysql
server:

View File

@ -16,8 +16,8 @@ dwsurvey:
site-mail: service@diaowen.net
site-phone: 18888888888
version:
info: DWSurvey OSS V5.0 Spring Boot
number: OSS V5.0
info: DWSurvey OSS V4.0 Spring Boot
number: OSS V4.0
built: 2021/11/21
# mysql
server: