RAP Installation and Configuration

Source: Internet
Author: User

Native environment
    • System: CentOS 6.7 64-bit
    • MySQL 5.6
    • JDK 1.8
    • Tomcat 8
    • Redis 3.0.7
    • Rap 0.14.1
Rap description
    • Official website: Https://github.com/thx/RAP
    • Online version: http://rap.taobao.org/
    • Official website WIKI:HTTPS://GITHUB.COM/THX/RAP/WIKI/HOME_CN
    • Website Deployment Manual: HTTPS://GITHUB.COM/THX/RAP/WIKI/DEPLOY_MANUAL_CN
    • User manual: Https://github.com/thx/RAP/wiki/user_manual_cn
Download
    • Official website Download: https://github.com/thx/RAP/releases
    • Current Latest version:0.14.1
    • Download the war deployment package: Https://github.com/thx/RAP/releases
Install MySQL, JDK, Tomcat, Redis
    • MySQL Installation and Configuration
    • JDK Installation
    • Tomcat installation and configuration, optimization
    • Redis Installation and Configuration
Install Rap

RAP War pack Download: https://github.com/thx/RAP/releases

Create a database and create a rights user:

 mysql> CREATE database rap_db character set   UTF8; Query OK,  1  row affected (0.06  Span style= "color: #000000;" > sec) MySQL  > Grant all privileges the rap_db.* to  " rap   " @"    " ; Query OK,  0  rows affected (0.00  Span style= "color: #000000;" > sec) MySQL  > flush privileges; Query OK,  0  rows affected (0.00  sec )
Put rap-0.14. 1-x rap-0.14. 1-snapshot.war-u rap-p rap_db </usr/program/tomcat8/webapps/root/web-inf/classes/database/ Initialize.sql
? Database pwd/app/servers/tomcat7/webapps/root/web-inf/classes/database? Database MySQL-urap-p rap_db <Initialize.sqlmysql>SelectUser,host,password fromuser;+------+-----------+-------------------------------------------+| user | Host | Password |+------+-----------+-------------------------------------------+| Root |                                           localhost | || Root |                                           Ok | || Root |127.0.0.1| || Root | ::1|      || |                                           localhost |      || |                                           Ok | || Rap | %         | *6bb4837eb74329105ee4568dda7dc67ed2ca2ad9 | | Rap | localhost | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |+------+-----------+-------------------------------------------+

To modify the configuration information for a connected database:

?  Database cat/app/servers/tomcat7/webapps/root/web-inf/classes/Config.propertiesjdbc.driverClassName= com.mysql.jdbc.Driverjdbc.url=jdbc\:mysql\://Localhost\:3306/rap_db?useunicode\=true &characterencoding\=utf8&zerodatetimebehavior\=converttonull&noaccesstoprocedurebodies\=true Jdbc.username=Rapjdbc.password=123456redis.host=Localhostredis.port=  6379
http://192.168.1.10:8081/org/index.do

It worked!!!!

Reference article: HTTPS://GITHUB.COM/JUDASN/LINUX-TUTORIAL/BLOB/MASTER/RAP-INSTALL-AND-SETTINGS.MD

Note When registering an account, the account must be a digital letter underline (not the password, which should be noted)

RAP Installation and Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.