Local Deployment
This article introduces how to start the Apache ShenYu gateway in the local environment.
Environmental preparation
- Install JDK1.8+ locally
- Install Git locally
- Install Maven locally
- Choose a development tool, such as IDEA
Download the compiled code
- Download
git clone https://github.com/apache/incubator-shenyu.git
cd incubator-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:adminand123456respectively.- If you use
h2to store, set the variable--spring.profiles.active = h2.
- If you use
-
If you use
MySQLfor storage, copy mysql-connector.jar to /$(your_work_dir)/ext-lib, and modify themysqlconfiguration inapplication.yaml. -
use the development tool to start
org.apache.shenyu.bootstrap.ShenyuBootstrapApplication. -
If using the system of Windows, you may encounter a Git error with
filename too long. You can run the commandgit config --system core.longpaths trueto solve this problem.