0
我想使用了shell_exec运行节点的应用程序那样:使用节点JS从PHP弹性魔豆环境
shell_exec(node app.js) ;
但我得到了一个错误: SH:节点:命令未找到
我曾尝试使用confing文件一样,安装节点JS:
commands:
01_node_install:
# run this command from /tmp directory
cwd: /tmp
# don't run the command if node is already installed (file /usr/bin/node exists)
test: '[ ! -f /usr/bin/node ] && echo "node not installed"'
# install from epel repository
# flag -y for no-interaction installation
command: 'yum install -y nodejs --enablerepo=epel'
这是我所有的env.config文件,但我没有看到任何相关于和亲弹性魔豆日志瑕疵依然存在。 如何从PHP环境中使用Node JS!