Etherpad install on Centos 7 x64

Etherpad是谷歌收购的在线协作工具,谷歌在收购后做了开源,但更新较慢,而且周边的插件也几乎停止更新。当然原先的插件基本都还能用,而且功能强大。
如果你只是为了方便,那就用腾讯文档或者石墨文档,毕竟是比较成熟的产品,如果你想自己控制并掌握一切,那么跟着ITGeeker技术奇客一起来安装服务器端吧。

开源地址:https://github.com/ether/etherpad-lite

安装依赖包,包括node.js

yum install gzip git curl python openssl-devel && yum groupinstall "Development Tools"
yum install -y nodejs

获取etherpad代码

cd /opt && git clone git://github.com/ether/etherpad-lite.git

创建etherpad用户

useradd etherpad && groupadd etherpad
usermod -a -G etherpad etherpad

创建systemd启动命令,并设置开机自动启动

sudo vi /etc/systemd/system/etherpad.service:
[Unit]
Description=Etherpad-lite, the collaborative editor.
After=syslog.target network.target

[Service]
Type=simple
User=etherpad
Group=etherpad
WorkingDirectory=/opt/etherpad-lite
# ExecStart=/usr/bin/nodejs /opt/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js
ExecStart=/opt/etherpad-lite/bin/run.sh
Restart=always # use mysql plus a complete settings.json to avoid Service hold-off time over, scheduling restart.

[Install]
WantedBy=multi-user.target

systemctl start etherpad.service
systemctl enable etherpad.service

如果碰到错误信息,可以尝试在etherpad目录运行

npm cache clean --force

手动命令行安装插件参考

cd etherpad-lite
npm install ep_

然后重启Etherpad,插件就会被发现
手动卸载插件

npm uninstall ep_

然后记得重启Etherpad

Etherpad可以方便的插入到其它系统当中,这里有个sample供你参考(开头需加入<):

iframe src="http://pad.test.de/p/123" width="600" height="400">If you cut and paste this into any webpage (between the body tags) then etherpad-lite will 'magically' appear.Example
iframe src="http://pad.test.de/p/123?showChat=false&showLineNumbers=false" width="600" height="400">

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

奇客罗方公众号 奇客罗方小程序 奇客罗方客服 ITGeeker Telegram

网站由ITGeeker技术奇客开发并管理;隶属于GeekerCloud奇客罗方智能科技
Site designed and developed by ITGeekerwhich is a sub-website of GeekerCloud
网站地图 | 沪ICP备2021031434号-4