开发者社区> 问答> 正文

xshell脚本启动api失败

运行命令如下 1.systemctl stop travel.service 2.systemctl start travel.service 3.systemctl status travel.service 启动失败信息: ?.travel.service - travel Loaded: loaded (/etc/systemd/system/travel.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2019-10-16 19:19:58 CST; 5s ago Process: 15269 ExecStart=/data/travel/run.sh (code=exited, status=203/EXEC) Main PID: 15269 (code=exited, status=203/EXEC)

Oct 16 19:19:58 iz2zeeopz0eivjpvx28fhwz systemd[1]: Started travel. Oct 16 19:19:58 iz2zeeopz0eivjpvx28fhwz systemd[1]: travel.service: main process exited, code=exited, status=203/EXEC Oct 16 19:19:58 iz2zeeopz0eivjpvx28fhwz systemd[1]: Unit travel.service entered failed state. Oct 16 19:19:58 iz2zeeopz0eivjpvx28fhwz systemd[1]: travel.service failed.

travel.service: [Unit] Description=travel After=travel.service

[Service] ExecStart=/data/travel/run.sh ExecReload=/data/travel/run.sh

[Install] WantedBy=multi-user.target

run.sh: #!/bin/sh cd /data/travel java -jar travelApi-0.0.1-SNAPSHOT.jar

展开
收起
游客bdw5u5tkqmile 2019-10-16 19:26:30 858 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载