Installation of interface management tool Rap

APP interface management and testing
Words 714 Reads 872 Comments 2 Likes 4
I just changed a job recently, engaged in the development of APP interface. I used to work on the PC side and now I am not used to it. The most troublesome thing is the APP interface. I found an APP interface management tool RAP (made by Ali's mother) on the Internet, and it feels good. Now let's talk about the installation process.

Rap has two installation methods, one is for use only without secondary development; the other is for secondary development by yourself. Here I will only talk about the first use-only situation. If you are interested in its functions and code and want to develop it again, you can branch off on github (https://github.com/thx/RAP) and do it yourself .

The installation environment of RAP can only be installed on Linux. First, you need to install several software: JDK 1.7+ If an error is reported, please try to use a newer version         of MySQL 5.6.12+ MySQL 5.6.12+ is too old to run initialize.sql and will report multiple timestamp errors         Tomcat 6. *+ 1. To install JDK , first use the java command to check whether the default openJDK is installed in the system. If it is installed, it is recommended to use yum remove java to uninstall it. Download jdk: wget –c http://download.oracle.com/otn-pub/java/jdk/7u5-b05/jdk-7u5-linux-i586.rpm Install: rpm –ivh jdk-7u5-linux-i586. rpm configure environment variables (to be configured together after tomcat is installed) 2. Install tomcat Tomcat download address:

       






















http://apache.etoak.com/tomcat/tomcat-7/v7.0.28/bin/apache-tomcat-7.0.28.tar.gz

Download and unzip: tar -zxvf apache-tomcat-7.0.28

move to / usr/local/tomcat7: mv apache-tomcat-7.0.28 /usr/local/tomcat7

Set directory executable permissions chmod +x /usr/local/tomcat7

Configure environment variables

Edit the profile file: vim /etc/profile

Add in the file The following code:

export JAVA_HOME = /usr/java/jdk1.7.0_05

export CALSSPATH = $JAVA_HOME/lib/*.*

export PATH = $PATH:$JAVA_HOME/bin

export TOMCAT_HOME=/usr/local/tomcat7

export CATALINA_HOME=/usr /local/tomcat7

Save the file and exit editing.

Make the settings take effect immediately: source /etc/profile


3. Install mysql

, which is simple, and click on Baidu if you can't


4. Install RAP

1. Download the war package

wget https://raw.githubusercontent.com/thx/RAP/release/release/rap_release_v0.11.3_20150727.war

2. Unzip it to /user/local/tomcat/webapps/ROOT I directly overwrite the duplicate file

unzip in ROOT -x rap_release_v0.11.3_20150727.war -d /user/local/tomcat/webapps/ROOT

3. Execute a sql file, initialize the database, enter the password of the user just created

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


4. Configure the database connection in the application

vi ROOT/WEB-INF/classes/mysql.local.properties and

    modify it to the database username and password just created jdbc.username

    =rap

    jdbc.password=password

You're done, you can use the interface management tool, enter ip: tomcat port number /org/index.do in the browser, you can go in, and then register a user on the right to go in and it's ok. There are also some rap related documents here. You can take a look at https://github.com/thx/RAP/wiki/deploy_manual_cn

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326418083&siteId=291194637