Authored by fangyeqing

ADD:add readme

Showing 1 changed file with 47 additions and 0 deletions
# xkl-web程序说明
## 部署
139.129.166.85
### https证书
- 生成ssl证书${user.home}/.keystore,其中密码设置为xkl2016:
```
keytool -genkey -alias xkl-demo -keypass xkl2016 -keyalg RSA -keysize 1024 -validity 1024 -keystore ~/.keystore -storepass xkl2016 -dname "CN=139.129.166.85, OU=hanhezy, O=hanhezy, L=bj, ST=bj, C=cn"
```
查看生成的key
```
keytool -list -v -keystore .keystore -storepass xkl2016
```
### 部署
```
cd /home/fyq
git clone http://gitlab.hanhezy.com/fyq/xkl-web.git
cd xkl-web
cp src/main/resources/application.properties.online src/main/resources/application.properties
cp src/main/resources/public/index.html.online src/main/resources/public/index.html
nohup mvn spring-boot:run > xkl.log &
```
目前demo部署得比较简单,后续会增加jvm参数
## 数据库说明
用户数据库:
```
服务器:db.hanhezy.com
端口:4096
DB:hanhe_test
table:_test
```
登录token库:
```
redis.host=r-m5e7cedd3124afd4.redis.rds.aliyuncs.com
redis.password=r-m5e7cedd3124afd4:XIkaiLURedis2016
```
## 测试swagger界面
浏览器访问:
https://139.129.166.85:8090/
## 测试用例地址
http://gitlab.hanhezy.com/fyq/xkl-example
... ...