![](/img/trans.png)
[英]running node.js server using upstart causes 'terminated with status 127' on 'ubuntu 10.04'
[英]Upstart error terminated with status 1
我有一台ubuntu 10.04服務器,並嘗試創建一個新貴腳本:
description "node-workerListener"
author "me"
start on startup
stop on shutdown
script
# We found $HOME is needed. Without it, we ran into problems
export HOME="/var/www"
exec sudo -u www-data /usr/local/bin/node /var/www/vhost/node/test/workerListener.js 2>&1 >> /var/log/node/helloworld.log
end script
如果我在命令行上手動啟動它,這應該啟動一個節點腳本,該腳本將起作用。 但是,當我嘗試“啟動node-workerListener”時,收到消息“ node-workerListener啟動/運行,進程1323”,但沒有。
在/ var / log / syslog中:“ ... init:node-workerListener主進程(1317)以狀態1終止”
我能做什么?
您還可以永久使用https://github.com/nodejitsu/forever運行節點進程。
這是一篇詳細的文章: http : //blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.