在UNIX中运行守护程序时获取'命令未找到' [英] Getting 'command not found' when running daemon in unix

查看:192
本文介绍了在UNIX中运行守护程序时获取'命令未找到'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从unix提示符作为守护进程运行脚本Daemon.php使用下面的代码按照教程

I am attempting to run the script Daemon.php from a unix prompt as a daemon using the code below as per the instructions given in this tutorial.

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



当我运行这个时, p>

When I run this I get the output

daemon: command not found


b $ b

是否知道可能会出错?

Does know what might be going wrong?

推荐答案

尝试 daemonize 。如果在你的系统上找不到,只需在后台启动 Daemon.php ,看看你到底有多远。

Try daemonize instead. If that also isn't found on your system, simply start Daemon.php in the background and see how far you get.

这篇关于在UNIX中运行守护程序时获取'命令未找到'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆