新贵不起作用

Fla*_*Fan 3 upstart node.js

我按照本教程为我的 node.js 服务器设置新贵:http : //howtonode.org/deploying-node-upstart-monit

问题是,当我尝试运行“start mynodeprogram”时,出现了错误:

root@v:/# start mynodeprogram
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
Run Code Online (Sandbox Code Playgroud)

我使用以下命令安装了暴发户:

root@v:~# apt-get install upstart
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  upstart
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/272 kB of archives.
After this operation, 717 kB of additional disk space will be used.
Selecting previously deselected package upstart.
(Reading database ... 43793 files and directories currently installed.)
Unpacking upstart (from .../upstart_0.6.6-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up upstart (0.6.6-1) ...
Run Code Online (Sandbox Code Playgroud)

希望你能帮我...

Aar*_*ron 5

您是否尝试重新启动?很多时候可以立即修复它。