systemctl自定义service执行shell脚本时报错:code=exited, status=203/EXEC

原因:systemctl执行脚本时需要知道脚本的解释器

解决方法:在脚本的开头加上#!/bin/sh

参考:https://blog.csdn.net/shangyexin/article/details/80968202

posted @ 2021-04-19 19:09  长久悠悠  阅读(4108)  评论(0编辑  收藏  举报