java - Ubuntu告诉我找不到spring boot应用程序的init.d服务并且无法运行它
问题描述
我已按照作为 init.d 服务(系统 V)安装的 Spring Boot 部署 https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment-install
我的行动如下:
sudo ln -s /home/centre-0.0.1-SNAPSHOT.jar /etc/init.d/centre-0.0.1-SNAPSHOT
并开始:
service centre-0.0.1-SNAPSHOT start
我收到一个错误:
Failed to start centre-0.0.1-SNAPSHOT.service: Unit centre-0.0.1-SNAPSHOT.service not found.
有什么我忘记的操作吗?
解决方案
我使用了 sudo chmod +x /etc/inti.d/appname 命令并使用了 sudo /etc/init.d/appname start 命令。有用。
推荐阅读
- c - 程序跳过输入
- javascript - 为什么 $(".tab-list").each() 不运行?
- assembly - 大会 x86:用户登录
- python - 有没有办法解决这个pygame平台问题?
- javascript - Regex.test(value) 在记录时返回 true,但在 if 语句中返回 false
- flutter - 多点触控手势 - Flutter
- python - Pandas 在给定日期范围内过滤和标记数据
- django - 一种更有效的方法来检查没有具有特定价值的相关项目
- php - 如何使用 epass 2003 pendrive 中的 php 在线向 PDF 添加数字签名
- javafx - JavaFX 与宁静