Install Etherpad in CentOS 7 (online collaborative editing)
Install Etherpad in CentOS 7 (online collaborative editing)
Etherpad is an online co-production platform and a network-based Real-time cooperative document editor. Three or four people can sit in front of their own computers and modify a document at the same time, you can also see other people's changes.
Install Etherpad in CentOS 7
1. install some tools first
# yum install curl vim gcc-c++ make
2. Install MariaDB
# yum install mariadb-server
Start the MariaDB service:
# systemctl start mariadb.service# systemctl enable mariadb.service
Run the MariaDB initialization script:
# mysql_secure_installation
Mariadb initial password is blank;
3. Create a database and user for Etherpad
# mysql -u root -pMariaDB [(none)]> CREATE DATABASE etherpad;MariaDB [(none)]> GRANT ALL PRIVILEGES ON etherpad.* TO 'etherpad'@'localhost' IDENTIFIED BY 'test1234';MariaDB [(none)]> FLUSH PRIVILEGES;MariaDB [(none)]> \q
Create the database etherpad; user etherpad, password test1234.
4. Install Node. js
# Curl-sL https://rpm.nodesource.com/setup | sudo bash-# yum install nodejs view nodejs version: # node -- version
5. Create a Linux User
# adduser --home /opt/etherpad --shell /bin/bash etherpad# install -d -m 755 -o etherpad -g etherpad /opt/etherpad
6. Install Etherpad to switch to a new user:
# su - etherpad
Use git clone source code:
$ cd$ git clone https://github.com/ether/etherpad-lite
Create a configuration file:
$ cp ~/etherpad-lite/settings.json.template ~/etherpad-lite/settings.json
Edit the settings. json file:
$ Sudo vim ~ /Etherpad-lite/settings. json if you want to use Nginx for reverse proxy, change "ip": "0.0.0.0" to "ip": "127.0.0.1", and set trustProxy to true. Comment out "dbType": "dirty ".
Database Configuration:
"dbType" : "mysql","dbSettings" : {"user" : "etherpad","host" : "localhost","password": "test1234","database": "etherpad"},
Add administrator user:
"users": {"admin": {"password": "admin123","is_admin": true}},
Save and exit. Install dependency:
$ ~/etherpad-lite/bin/installDeps.sh
Start Etherpad:
$ ~/etherpad-lite/bin/run.sh
Use a browser to access: your_server_ip: 9001 to create a New document (New Pad). (link: http: // your_ip: 9001/p/r5Lc37e42P): Send the link to the partner, collaborate to write the same document. The text edited by each person uses a different color, which is very easy to distinguish.
7. Register etherpad as a system service and use Nginx for reverse proxy (Domain Name> 127.0.0.1: 9001)
This article permanent update address: http://www.linuxdiyf.com/linux/22391.html software Official Website: http://etherpad.org/