spring-boot-plus运维部署在线部署打包环境为prodmvncleanpackage-pprod打包目录cdtarget/spring-boot-plus-1.2.0.RELEASE-prod设置在线数据库、Redis等敏感信息vimspring-boot-plus/config/application-prod.yml启动服务shspring-boot-plus/bin/startup.sh启动日志[root@springbootplusspring-boot-plus-1.2.0.RELEASE-prod]#shspring-boot-plus/bin/startup.sh=====================================================2019-08-0600:14:02=====================================================应用名称:spring-boot-plus应用jar名称:spring-boot-plus.jar应用bin路径:/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus/bin应用根路径:/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus应用日志路径:/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus/logs/spring-boot-plus.logapplicationJAVA_OPT:-server-Xms1g-Xmx1g-Xmn512m-XX:MetaspaceSize=64m-XX:MaxMetaspaceSize=256m-XX:-OmitStackTraceInFastThrow应用后台启动命令:nohupjava-server-Xms1g-Xmx1g-Xmn512m-XX:MetaspaceSize=64m-XX:MaxMetaspaceSize=256m-XX:-OmitStackTraceInFastThrow-jar/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus/lib/spring-boot-plus.jar--spring.config.location=/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus/config/>/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus/logs/spring-boot-plus.log2>&1&applicationpid:25435____(_)||||||_____________________||________||__________||_____/__|'_\|'__||'_\/_`|______|'_\/_\/_\|__|______|'_\||||/__|\__\|_)|||||||(_||||_)|(_)|(_)||_||_)|||_|\__\|___/.__/|_||_|_||_|\__,||_.__/\___/\___/\__||.__/|_|\__,_|___/||__/||||_||___/|_|::SpringBoot::(v2.1.6.RELEASE)::SpringBootPlus::(v1.2.0.RELEASE)::spring-boot-plus::https://springboot.plus2019-08-0600:14:03.953INFO25435---[main]i.g.s.SpringBootPlusApplication:在izm5e9gwtfsmjdxcsrpxbgz上启动SpringBootPlusApplication,PID为25435(/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus/lib/spring-boot-plus.jar在/root/spring-boot-plus/target/spring-boot-plus-1.2.0.RELEASE-prod/spring-boot-plus)2019-08-root启动0600:14:03.962INFO25435---[main]i.g.s.SpringBootPlusApplication:以下配置文件处于活动状态:prodapplicationname:应用程序名称applicationjarname:applicationjar包名applicationbinpath:projectbin命令路径applicationrootpath:项目根路径applicationlogpath:项目运行日志路径applicationJAVA_OPT:JAVAOPT参数设置application后台启动命令:执行命令后,实际启动命令applicationpid:ProcessID以下配置文件处于活动状态:prod:prod当前项目运行的环境已成功启动2019-08-0600:29:03.730INFO26795---[main]i.g.s.SpringBootPlusApplication:StartedSpringBootPlusApplicationin10.746秒(JVM运行11.28)2019-08-0600:29:03.758INFO26795---[main]i.g.s.util.PrintApplicationInfo:projectFinalName:spring-boot-plus2019-08-0600:29:03.759INFO26795---[main]i.g.s.util.PrintApplicationInfo:projectVersion:1.2.0.RELEASE2019-08-0600:29:03.759INFO26795---[main]i.g.s.util.PrintApplicationInfo:profileActive:prod2019-08-0600:29:03.759信息267---主要]i.g.s.util.PrintApplicationInfo:contextPath:/2019-08-0600:29:03.759信息26795---[主要]i.g.s.util.PrintApplicationInfo:端口:88882019-08-0600:29:03.789信息26795---[主要]i.g.s.util.PrintApplicationInfo:主页:http://172.31.105.37:8888/2019-08-0600:29:03.789INFO26795---[主要]i.g.s.util.PrintApplicationInfo:文档:http://172.31.105.37:8888/docs2019-08-0600:29:03.789INFO26795---[main]i.g.s.util.PrintApplicationInfo:spring-boot-plusprojectstartsuccess...............2019-08-0600:29:03.794INFO26795---[main]i.g.s.util.PrintApplicationInfo:____________/\_`\/\\__/\\__/\_`\\\,\L\_\,_\_____\\,_\\\,\L\_\____________________\/_\__\\\\//'__`\/\`'__\\\/\/_\__\/\\/\\/'___\/'___\/'__`\/',__\/',__\/\\L\\\\_/\\L\.\_\\\/\\\_/\\L\\\_\\/\\__//\\__//\__//\__,`\/\__,`\`\____\\__\\__/.\_\\\_\\\__\`\____\\____/\\____\\____\\____\/\____/\/\____/\/_____/\/__/\/__/\/_/\/_/\/__/\/_____/\/___/\/____/\/____/\/____/\/___/\/___/2019-08-0600:29:03.909INFO26795---[nio-8888-exec-1]o.a.c.c.C.[Tomcat].[localhost].[/]:初始化SpringDispatcherServlet'dispatcherServlet'2019-08-0600:29:03.909INFO26795---[nio-8888-exec-1]o.s.web.servlet.DispatcherServlet:初始化Servlet'dispatcherServlet'2019-08-0600:29:03.924INFO26795---[nio-8888-exec-1]o.s.web.servlet.DispatcherServlet:15ms2019完成初始化-08-0600:29:04.317INFO26795---[gistrationTask1]d.c.b.a.c.r.ApplicationRegistrator:应用程序将自身注册为e211ba082db82019-08-0600:29:04.678INFO26795let---[parallel-tu.2.core.io。EpollProvider:Startingwithepolllibrary2019-08-0600:29:04.681INFO26795---[parallel-2]io.lettuce.core.KqueueProvider:StartingwithoutoptionalkqueuelibraryprojectFinalName:spring-boot-plusprojectVersion:ProjectreleaseversionprofileActive:项目使用的环境contextPath:项目访问路径port:项目端口号home:项目首页SpringBootAdmin监控页面docs:Swagger界面页面!!注意这里的路径是内网地址,如果部署到服务器,请使用公网IP访问!!项目启动成功spring-boot-plusprojectstartsuccess........只是访问IP地址
