首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Etherpad Lite,在Linux上运行

Etherpad Lite,在Linux上运行
EN

Stack Overflow用户
提问于 2014-05-04 18:15:26
回答 2查看 1.5K关注 0票数 1

几天前我安装了Xubuntu。现在,我尝试在本地服务器上运行etherpad-lite (127.0.0.1:9001)。在遵循github:(https://github.com/ether/etherpad-lite)中描述的步骤之后。

在shell中运行它之后,我得到了以下消息:

代码语言:javascript
复制
    xyz@local: ~etherpad-lite$ bin/run.sh:
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
npm WARN package.json async-stacktrace@0.0.2 No repository field.
npm WARN package.json channels@0.0.4 No repository field.
npm WARN package.json ejs@0.6.1 No repository field.
npm WARN package.json formidable@1.0.9 No repository field.
npm WARN package.json jsdom-nocontextifiy@0.2.10 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json tinycon@0.0.1 No repository field.
Ensure jQuery is downloaded and up to date...
Clear minfified cache...
ensure custom css/js files are created...
start...
xyz@local: ~etherpad-lite$ .... 

浏览器说:Unable to connect Firefox can't establish a connection to the server at 127.0.0.1:9001.通过google后,我找到了解决这个问题的不同方法。我不确定我的jQuery是否有效?下载失败了,shell告诉我,库已经安装好了。嗯,我没有设法删除etherpad (Linux的新版本),而是尝试了以下操作:

代码语言:javascript
复制
Copy the file: /src/static/css/pad.css to /node_modules/ep_oae/static/css/pad.css
configure the file settings.json.template:
Change: "socketTransportProtocols" : …  to "socketTransportProtocols" : ["websocket", "xhr-polling", "jsonp-polling", "htmlfile"], 
and "defaultPadText": …. to "defaultPadText": " "

Finally delete the following part of code in the bin/run.sh file: 
#Stop the script if its started as root
if [ "$(id -u)" -eq 0 ] && [ $ignoreRoot -eq 0 ]; then
   echo "You shouldn't start Etherpad-Lite as root!"
   echo "Please type 'Etherpad Lite rocks my socks' or supply the
'--root' argument if you still want to start it as root"
   read rocks
   if [ ! $rocks = "Etherpad Lite rocks my socks" ]
   then
     echo "Your input was incorrect"
exit 1 fi

fi 

Start etherpad-lite with the command: bin/run.sh

这件事没那么顺利!-

现在我不知道如何处理它,我真的需要紧急使用以太垫作为一个项目,所以我会非常感谢任何解决方案。

提前谢谢你!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-05-25 12:19:29

与节点包(业余分组无线节点程序)存在命名冲突,nodejs二进制文件已从节点重命名为nodejs。您需要将/usr/bin/node链接到/usr/bin/nodejs,或者卸载业余分组无线节点程序以避免这种冲突。

解决方案:删除节点包:

代码语言:javascript
复制
apt-get remove node

然后:

代码语言:javascript
复制
cd /usr/bin

ln -s nodejs node

然后运行:在etherpad-lite目录中。

代码语言:javascript
复制
bin/run.sh

它起作用. =)

票数 1
EN

Stack Overflow用户

发布于 2014-05-04 21:11:34

cd到您的etherpad文件夹,键入

代码语言:javascript
复制
cd src && npm install

然后键入

代码语言:javascript
复制
cd .. && bin/run.sh

如果失败,键入

代码语言:javascript
复制
rm -Rf src/node_modules

然后

代码语言:javascript
复制
bin/run.sh
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23459842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档