【对PHP服务器使用start-stop-daemon】教程文章相关的互联网学习教程文章

没有$DISPLAY的X11,Dbus PHP无法启动dbus-daemon【代码】

我正在使用GREE Labs’ Dbus PHP Extension尝试创建一个能够创建桌面通知的PHP类.$dbus = $dbus = dbus_bus_get(DBUS_BUS_SESSION);$message = new \DBusMessage(DBUS_MESSAGE_TYPE_SIGNAL); $message->setDestination("org.freedesktop.DBus"); $message->setAutoStart(true);$dbus->sendWithReplyAndBlock($message, 1);运行我的代码时,出现以下错误:Warning: dbus_bus_get() [function.dbus-bus-get]: failed to create dbusco...

对PHP服务器使用start-stop-daemon【代码】

我正在使用PHP编写的套接字服务器.这部分工作已经完成,但现在我需要将它作为守护进程运行. 为此,我尝试使用start-stop-daemon,但它不起作用.我的服务器正在运行Debian. 为了简化,我的问题是为什么以下命令不运行我的守护进程或如何调试它?start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/server-ticket.pid --exec /usr/local/zend/bin/php /var/www/server/consultpilot/ServerTicket.php >>...