Showing
1 changed file
with
47 additions
and
0 deletions
README.md
0 → 100644
| 1 | +# xkl-web程序说明 | ||
| 2 | + | ||
| 3 | +## 部署 | ||
| 4 | +139.129.166.85 | ||
| 5 | + | ||
| 6 | +### https证书 | ||
| 7 | + | ||
| 8 | +- 生成ssl证书${user.home}/.keystore,其中密码设置为xkl2016: | ||
| 9 | +``` | ||
| 10 | +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" | ||
| 11 | +``` | ||
| 12 | +查看生成的key | ||
| 13 | +``` | ||
| 14 | +keytool -list -v -keystore .keystore -storepass xkl2016 | ||
| 15 | +``` | ||
| 16 | +### 部署 | ||
| 17 | + | ||
| 18 | +``` | ||
| 19 | +cd /home/fyq | ||
| 20 | +git clone http://gitlab.hanhezy.com/fyq/xkl-web.git | ||
| 21 | +cd xkl-web | ||
| 22 | +cp src/main/resources/application.properties.online src/main/resources/application.properties | ||
| 23 | +cp src/main/resources/public/index.html.online src/main/resources/public/index.html | ||
| 24 | +nohup mvn spring-boot:run > xkl.log & | ||
| 25 | +``` | ||
| 26 | +目前demo部署得比较简单,后续会增加jvm参数 | ||
| 27 | + | ||
| 28 | +## 数据库说明 | ||
| 29 | +用户数据库: | ||
| 30 | +``` | ||
| 31 | +服务器:db.hanhezy.com | ||
| 32 | +端口:4096 | ||
| 33 | +DB:hanhe_test | ||
| 34 | +table:_test | ||
| 35 | +``` | ||
| 36 | +登录token库: | ||
| 37 | +``` | ||
| 38 | +redis.host=r-m5e7cedd3124afd4.redis.rds.aliyuncs.com | ||
| 39 | +redis.password=r-m5e7cedd3124afd4:XIkaiLURedis2016 | ||
| 40 | +``` | ||
| 41 | +## 测试swagger界面 | ||
| 42 | +浏览器访问: | ||
| 43 | +https://139.129.166.85:8090/ | ||
| 44 | + | ||
| 45 | +## 测试用例地址 | ||
| 46 | +http://gitlab.hanhezy.com/fyq/xkl-example | ||
| 47 | + |
-
Please register or login to post a comment