<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<!-- 可以发不成linux服务包,直接用linux的servic命令启动 -->
					<executable>true</executable>
				</configuration>
			</plugin>
		</plugins>
	</build>

需要做软连接
ln -sb 原文件 /etc/init.d/服务名

 

然后 设置权限

启动:

service 服务名 start|stop|status|restart

 

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2021-11-22
  • 2021-05-03
  • 2022-12-23
  • 2021-12-27
  • 2021-11-06
猜你喜欢
  • 2021-12-14
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-12-25
  • 2021-09-27
相关资源
相似解决方案