rap 部署

Rap 安裝

war包下載地址
https://github.com/thx/RAP/releases

建立數據庫,並建立權限用戶mysql

mysql> create database rap_db character set utf8;
Query OK, 1 row affected (0.06 sec)
mysql> grant all privileges on rap_db.* to 'rap'@'%' identified by '123456';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

把 RAP-0.14.1-SNAPSHOT.war 移動到 tomcat 的 webapp 目錄下,刪除其餘多餘的文件夾
解壓:unzip -x RAP-0.14.1-SNAPSHOT.war -d ROOT
初始化數據庫:git

mysql -u rap -p rap_db < /usr/program/tomcat8/webapps/ROOT/WEB-INF/classes/database/initialize.sql

建立鏈接用戶github

grant all privileges on rap_db.* to rap@'%' identified by '123456';
flush privileges;

修改鏈接數據庫的配置信息web

cat /export/servers/tomcat7/webapps/ROOT/WEB-INF/classes/config.properties
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc\:mysql\://localhost\:3306/rap_db?useUnicode\=true&characterEncoding\=utf8&zeroDateTimeBehavior\=convertToNull&noAccessToProcedureBodies\=true
jdbc.username=rap
jdbc.password=123456
redis.host=localhost
redis.port=6379

訪問redis

http://192.168.1.10:8081/org/index.do

成功了!!!!sql

相關文章
相關標籤/搜索