Skip to content

Commit

Permalink
2016-05-03补充RAP
Browse files Browse the repository at this point in the history
  • Loading branch information
judasn committed May 3, 2016
1 parent dd864cf commit cf0dee5
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions Rap-Install-And-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
## 本机环境

- 系统:CentOS 6.7 64 位
- JDK 1.8 64 位
- MySQL 5.6

- JDK 1.8
- Tomcat 8
- Redis 3.0.7
- Rap 0.14.1


## Rap 说明
Expand All @@ -23,20 +25,32 @@

- 官网下载:<https://github.com/thx/RAP/releases>
- 当前最新版本:**0.14.1**
- 下载 war 部署包:`wget http://rap.taobao.org/release/RAP-0.14.1-SNAPSHOT.war`
- 下载 war 部署包:<https://github.com/thx/RAP/releases>


## 安装 MySQL、JDK、Tomcat
## 安装 MySQL、JDK、Tomcat、Redis

- [MySQL 安装和配置](Mysql-Install-And-Settings.md)
- [JDK 安装](JDK-Install.md)
- [Tomcat 安装和配置、优化](Tomcat-Install-And-Settings.md)
- [Redis 安装和配置](Redis-Install-And-Settings.md)


## 安装 Rap



## 配置


- 创建数据库,并创建权限用户

``` sql
CREATE DATABASE `rap_db` CHARACTER SET utf8;
CREATE USER 'rap'@'%' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON rap_db.* TO 'rap'@'%';
FLUSH PRIVILEGES;
```

- 把 RAP-0.14.1-SNAPSHOT.war 移动到 tomcat 的 webapp 目录下,删除其他多余的文件夹
- 解压:`unzip -x RAP-0.14.1-SNAPSHOT.war -d ROOT`
- 初始化数据库:`mysql -u rap -p rap_db < /usr/program/tomcat8/webapps/ROOT/WEB-INF/classes/database/initialize.sql`
- 修改连接数据库的配置信息:`vim /usr/program/tomcat8/webapps/ROOT/WEB-INF/classes/config.properties `
- 停掉防火墙:`service iptables stop`
- 启动 Redis:`/usr/local/bin/redis-server /etc/redis.conf`
- 启动 Tomcat:`sh /usr/program/tomcat8/bin/startup.sh ; tail -200f /usr/program/tomcat8/logs/catalina.out`

0 comments on commit cf0dee5

Please sign in to comment.