This article introduces how to start the Apache ShenYu
gateway in the local environment.
git clone https://github.com/apache/incubator-shenyu.git cd shenyu mvn clean install -Dmaven.javadoc.skip=true -B -Drat.skip=true -Djacoco.skip=true -DskipITs -DskipTests
use the development tool to start org.apache.shenyu.admin.ShenyuAdminBootstrap
,Visit http://localhost:9095, the default username and password are: admin
and 123456
respectively.
If you use h2
to store, set the variable --spring.profiles.active = h2
.
If you use MySQL
for storage, copy mysql-connector.jar to /$(your_work_dir)/ext-lib, and modify the mysql
configuration in application.yaml
.
If you use PostgreSql
for storage, modify the pg
of spring.profiles.active
configuration in application.yaml
.
use the development tool to start org.apache.shenyu.bootstrap.ShenyuBootstrapApplication
.