【问题标题】:Getting 'command not found' when running daemon in unix在 unix 中运行守护进程时出现“找不到命令”
【发布时间】:2013-05-29 09:59:19
【问题描述】:

我正在尝试按照tutorial 中给出的说明使用下面的代码从 unix 提示符作为守护程序运行脚本 Daemon.php。

daemon Daemon.php --log=/var/log/Daemon.log

当我运行它时,我会得到输出

daemon: command not found

知道可能出了什么问题吗?

【问题讨论】:

  • 您可能没有安装daemon。试试apt-get install daemon
  • 这会返回 -bash: get: command not found
  • 命令不是get,而是apt-get
  • 我的错误。但是运行 'apt-get' 会输出 'apt-get: command not found'
  • Ops,我看到你刚刚发布了一个关于它的问题。 apt-get 是 Linux 环境下安装包的工具。

标签: unix command daemon


【解决方案1】:

改用daemonize。如果在您的系统上也没有找到,只需在后台启动 Daemon.php,看看您能走多远。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-19
    • 2023-03-02
    • 2021-12-20
    • 1970-01-01
    • 1970-01-01
    • 2022-07-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多