在RHEL8.2 上面快速搭建 etherpad

1 Etherpad 是什么呢?

  • 官网的介绍
    Etherpad is a highly customizable open source online editor providing collaborative editing in really real-time.
    Etherpad
  • 维基百科
    Etherpad(曾用名EtherPad)是一个基于Web的在线文档协作工具。多个用户可以通过Etherpad同时编写一个文本文档,并看到所有的参与者的实时编辑。每个参与者的文本使用不同的颜色标记。在软件的侧边栏还有一个聊天框。

2 在RHEL上面快速搭建 Etherpad

2.1 先在RHEL上面安装 nodejs

1
# yum install nodejs -y

2.2 把etherpad 下载回来(用git最方便了)

1
# git clone git://github.com/ether/etherpad-lite.git etherpad-lite

2.3 进入etherpad-lite的目录

1
# cd etherpad-lite/bin/

2.4 直接执行 run.sh (我直接使用root执行,所以要额外输入Etherpad rocks my socks )

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ./run.sh
You shouldn't start Etherpad as root!
Please type 'Etherpad rocks my socks' (or restart with the '--root'
argument) if you still want to start it as root:
> Etherpad rocks my socks
Copy the settings template to settings.json...
Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.

> wd@1.12.1 install /mnt/etherpad-lite/src/node_modules/wd
> node scripts/build-browser-scripts

added 680 packages in 25.323s
Clearing minified cache...
Starting Etherpad...
[2021-02-17 20:36:20.263] [DEBUG] console - Running on Node v10.23.1 (minimum required Node version: 10.17.0)
[2021-02-17 20:36:20.291] [INFO] console - All relative paths will be interpreted relative to the identified Etherpad base dir: /mnt/etherpad-lite
[2021-02-17 20:36:20.293] [INFO] console - Random string used for versioning assets: 6726ee68
[2021-02-17 20:36:20.295] [DEBUG] AbsolutePaths - Relative path "settings.json" can be rewritten to "/mnt/etherpad-lite/settings.json"
[2021-02-17 20:36:20.296] [DEBUG] AbsolutePaths - Relative path "credentials.json" can be rewritten to "/mnt/etherpad-lite/credentials.json"
[2021-02-17 20:36:20.320] [INFO] console - settings loaded from: /mnt/etherpad-lite/settings.json
[2021-02-17 20:36:20.321] [INFO] console - No credentials file found in /mnt/etherpad-lite/credentials.json. Ignoring.
[2021-02-17 20:36:20.323] [INFO] console - Using skin "colibris" in dir: /mnt/etherpad-lite/src/static/skins/colibris
[2021-02-17 20:36:20.324] [INFO] console - Session key file "/mnt/etherpad-lite/SESSIONKEY.txt" not found. Creating with random contents.
[2021-02-17 20:36:20.325] [WARN] console - DirtyDB is used. This is not recommended for production. File location: /mnt/etherpad-lite/var/dirty.db
[2021-02-17 20:36:20.949] [INFO] server - Starting Etherpad...
[2021-02-17 20:36:21.155] [INFO] runNpm - Executing command: npm ls --long --json --depth=0
[2021-02-17 20:36:21.587] [INFO] runNpm - npm --version: 6.14.11
[2021-02-17 20:36:25.547] [INFO] runNpm - Successfully ran command: npm ls --long --json --depth=0
[2021-02-17 20:36:26.208] [INFO] APIHandler - Api key file "/mnt/etherpad-lite/APIKEY.txt" not found. Creating with random contents.
[2021-02-17 20:36:26.403] [INFO] server - Installed plugins:
[2021-02-17 20:36:26.406] [INFO] console - Report bugs at https://github.com/ether/etherpad-lite/issues
[2021-02-17 20:36:26.407] [INFO] console - Your Etherpad version is 1.8.8 (8ef0860)
[2021-02-17 20:36:29.553] [INFO] http - HTTP server listening for connections
[2021-02-17 20:36:29.554] [INFO] console - You can access your Etherpad instance at http://0.0.0.0:9001/
[2021-02-17 20:36:29.554] [WARN] console - Admin username and password not set in settings.json. To access admin please uncomment and edit "users" in settings.json
[2021-02-17 20:36:29.554] [WARN] console - Etherpad is running in Development mode. This mode is slower for users and less secure than production mode. You should set the NODE_ENV environment variable to production by using: export NODE_ENV=production
[2021-02-17 20:36:29.555] [INFO] server - Etherpad is running
......
[2021-02-17 20:37:52.738] [INFO] Minify - Compress JS file js/ace.js.
[2021-02-17 20:37:53.298] [INFO] access - [CREATE] pad:ossTechPad socket:-uGaEi5dyAJi7iptAAAA IP:150.150.150.1 authorID:a.R9kht2nlTzuKSrsf
......
[2021-02-17 20:38:04.554] [INFO] Minify - Compress JS file js/ace.js.

2.5 在可以连接到这个主机的机器上