若依docker
docker run --name ruoyi-app \
-p 8080:8080 \
-v /home/app/ruoyi-admin.jar:/usr/local/src/ruoyi-admin.jar \
-d openjdk:8u342-jre \
java -jar /usr/local/src/ruoyi-admin.jar
docker run --name ruoyi-db \
-v ruoyi-data:/var/lib/mysql \
-v /home/app/sql:/docker-entrypoint-initdb.d \
-e MYSQL_DATABASE = ry \
-e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 \
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci