我正在尝试集成Spine和Juggernaut。首先,我尝试克隆fowa分支(https://github.com/maccman/spine.rails3/tree/fowa),但我无法克隆那个分支,所以我自己做应用程序,使用maccman/spine.rails3代替Pusher,我使用Juggernaut。对于Juggernaut,我关注了maccman/Juggernaut (https://github.com/maccman/juggernaut/tree/)
我通过以下方式安装redis服务器
sudo apt-get install redis-server我已经安装了npm
spritle@ubuntu:~$ npm -v
1.0.106为
npm install -g juggernaut
npm ERR! Could not create /usr/local/lib/node_modules/___juggernaut.npm
npm ERR! error installing juggernaut@2.1.0 Error: EACCES, Permission denied '/usr/local/lib/node_modules/___juggernaut.npm'
npm ERR! Error: EACCES, Permission denied '/usr/local/lib/node_modules/___juggernaut.npm'
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR!
npm ERR! System Linux 2.6.32-21-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "juggernaut"
npm ERR! cwd /home/spritle
npm ERR! node -v v0.5.5-pre
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/lib/node_modules/___juggernaut.npm
npm ERR! code EACCES
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/spritle/npm-debug.log
npm not ok我得到了这个错误
所以我照做了
npm install juggernaut
For this I am getting
juggernaut@2.1.0 ./node_modules/juggernaut
├── redis@0.6.6
├── node-static-maccman@0.5.3
├── optimist@0.2.8 (wordwrap@0.0.2)
└── socket.io@0.8.6在那之后我做了
gem install juggernaut为
spritle@ubuntu:~$ sudo /etc/init.d/redis-server start我得到了
Starting redis-server: redis-server.为
spritle@ubuntu:~$ juggernaut我得到了
juggernaut: command not found所以对于http://localhost:8080,我得到了
Unable to connect error我安装了redis和juggernaut。当我运行localhost:8080时,我得到了错误。我不知道我做错了什么。任何人都可以帮助我。
发布于 2011-12-16 14:38:39
我是个笨蛋,我想在我安装的地方启动juggernaut服务器。相反,我在其他地方启动了setver。现在我可以连接到juggernaut了。我可以访问http://localhost:8080。现在我开始主宰
spritle@ubuntu:/usr/local/lib/node_modules/juggernaut$巨无霸server.js
https://stackoverflow.com/questions/8503031
复制相似问题