我如何设置PATH,以便找到可执行文件 [英] How can I set the PATH for supervisord so it finds the executables
本文介绍了我如何设置PATH,以便找到可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试设置 supervisor.conf
。我的一个应用程序需要node.js,但节点没有系统地安装。另外,因为它需要绑定到端口80,它需要以root身份运行。如何修改 PATH
变量,以便supervisord可以找到节点
可执行文件(位于目录中),运行node.js应用程序
I'm trying to setup supervisor.conf
. One of my apps requires node.js, but node is not installed system wise. Also, because it needs to bind to port 80 it need to run as root. How can I modify the PATH
variable so that supervisord can find the node
executable (which is located in a directory) and run the node.js app.
我试图这样做
[supervisord]
environment=PATH=/path/to/where/node/executable/is
[program:web]
command=node web.js -c config.json
/ p>
This fails with
2011-08-25 16:49:29,494 INFO spawnerr: can't find command 'node'
推荐答案
您可以设置命令的绝对路径:
You can just set the absolute path to the command:
[program:web]
command=/path/to/where/node/executable/is/node web.js -c config.json
这篇关于我如何设置PATH,以便找到可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文