运行 systemctl start 时出现 systemctl 错误

问题描述 投票:0回答:1

这是/etc/systemd/system/opengauss.service。但是“systemctl start opengauss”出错了。

/etc/systemd/system

我以 User odd 手动执行了这个命令 ExecStart && ExecStop,opengauss 服务成功启动和停止。但是“systemctl start opengauss”出错。它显示 code=exited status=127,也许它可以帮助您。我能做什么做什么?wrong description

systemctl open-gauss
1个回答
0
投票

我也有同样的问题。我试图使用

systemctl
服务启动 QT 程序。对我来说,解决方案是让服务启动
.sh
文件,从 QT 项目构建环境中导出必要的变量,然后启动我的程序。 因此,它也可能对您的情况有所帮助:如果程序从命令提示符正常启动但服务无法启动它,您可能会丢失一些环境变量。

© www.soinside.com 2019 - 2024. All rights reserved.