Youtrack 安装和启动失败

Youtrack installation and starting failes

我想在我的 Debian 9.3 系统上安装 Youtrack。安装前系统已更新。

我使用了 Jetbrains 网页上的说明:Jetbrains Tutorial
我按照描述启动脚本并在 运行 /etc/init.d/youtrack status:

时出现以下错误
Jan 30 15:13:18 eggplant-development systemd[1]: Starting SYSV: Test Wrapper Sample Application...
Jan 30 15:13:18 eggplant-development youtrack[14205]: /etc/init.d/youtrack: 21: /etc/init.d/youtrack: pushd: not found
Jan 30 15:13:18 eggplant-development su[14261]: Successful su for youtrack by root
Jan 30 15:13:18 eggplant-development su[14261]: + ??? root:youtrack
Jan 30 15:13:18 eggplant-development su[14261]: pam_unix(su:session): session opened for user youtrack by (uid=0)
Jan 30 15:13:18 eggplant-development youtrack[14205]: /etc/init.d/youtrack: 21: /etc/init.d/youtrack: pushd: not found
Jan 30 15:13:18 eggplant-development youtrack[14205]: Starting youtrack...
Jan 30 15:13:18 eggplant-development youtrack[14205]: "/home/youtrack/standalone/bin/wrapper" "/home/youtrack/standalone/conf/wrapper.conf" wrapper.syslog.ident=youtrack wrapper.pidfile="/home/youtrack/standalone/youtrack.pid" wrapper.da
Jan 30 15:13:19 eggplant-development youtrack[14205]: /etc/init.d/youtrack: 557: /etc/init.d/youtrack: popd: not found
Jan 30 15:13:19 eggplant-development systemd[1]: Started SYSV: Test Wrapper Sample Application.

所有文件和版本都与安装说明中指定的一样。

有没有人知道这个问题或知道如何解决它?

无法找到 bash 内置的 "pushd" 命令。我的猜测是您的 /bin/sh 指向一个 shell ,它没有随 pushd 一起提供。您可以通过添加

将其强制为 运行 in bash
#! /usr/bin/env bash

/etc/init.d/youtrack的开头。

查看更详细地讨论此错误的 /bin/sh: pushd: not found 可能也有帮助。