https://github.com/thx/RAP/wiki/deploy_on_centos_cn
https://github.com/thx/RAP/releases
https://www.showdoc.com.cn/

# 若要去掉验证码请下载源码,然后搜索.最后重新部署相关文件(大概4个)到下面的目录.
# 注意:运行的真是地址可能在:/var/lib/tomcat/webapps/ROOT
yum -y install nginx tomcat unzip redis
unzip -x RAP-... -d ROOT
create database rap_db default charset utf8mb4 collate utf8_general_ci;
grant all on rap_db.* to rap@localhost identified by 'password';
flush privileges;
mysql -u rap -p rap_db < ROOT/WEB-INF/classes/database/initialize.sql
vim ROOT/WEB-INF/classes/config.properties
  jdbc.username=rap
  jdbc.password=..
  redis.host=192.168.0.2  # 注意:一定要写本机的ip不要写成127,否则外面访问不了
cp -rf ROOT /var/lib/tomcat/webapps
chown -R tomcat /var/lib/tomcat/webapps/ROOT
systemctl restart redis
systemctl restart tomcat