BRCC server relies on JDK8, MySQL and Redis.
Install java1.8+.
You can check the jdk version by:
java -version
Output example:
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
- Version 5.6+
- Version 3.2+
- Clone the code
- Compile(maven3.3.9+): cd the project root directory: sh compile.sh。
- Create database and user
Example:
source doc/database/schema.sql
- Create database table:
Example:
source doc/database/tables.sql
- Insert data:
Example:
source doc/database/data.sql
1. cd the project root directory
2. command line: sh compile.sh
In the project root directory, edit the start.sh, specify the environment parameters respectively:
SERVER_PORT=web server port
REDIS_HOST=Redis server host
REDIS_PORT=Redis server port
DB_HOST=database host
DB_PORT=database port
DB_USERNAME=database user name
DB_PASSWORD=database password
Save and excute:
sh start.sh
Console URL: http://ip:port (ip: server ip, port: server port), example: http://localhost:8080/