illustrate
There are three versions of onlyoffice
- Community Edition (based on AGPL v.3 agreement)
- Enterprise Edition
beta version
Both the enterprise version and the development version need to purchase a commercial license. This time, we will take the installation of the community version as an example
Install
Onlyoffice supports docker installation and host installation. Docker installation is relatively simple. refer to the official document 161aded4380d65. I will not introduce it here. This time I will install onlyoffice on the host.
Installation Environment
- OS:CentOS 7.8
- CPU : 2 cores
- RAM : 8G
Install nginx
Create file /etc/yum.repos.d/nginx.repo
# cat <<EOF > /etc/yum.repos.d/nginx.repo
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
EOF
Use yum to install nginx
yum install nginx
Install EPEL warehouse
yum install epel-release
Install PostgreSQL
yum install postgresql postgresql-server
service postgresql initdb
chkconfig postgresql on
- Modify the configuration file
/var/lib/pgsql/data/pg_hba.conf
, and modifyall all 127.0.0.1/32 ident
host all all 127.0.0.1/32 trust
- Modify
host all all ::1/128 ident
host all all ::1/128 trust
- Restart PostgreSQL
service postgresql restart
- Create onlyoffice database
sudo -u postgres psql -c "CREATE DATABASE onlyoffice;"
sudo -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
Must be created with sudo -u postgres, pg does not allow root users to create
Install RabbitMQ
yum install rabbitmq-server
service rabbitmq-server start
systemctl enable rabbitmq-server
Install mscorefonts
yum install cabextract xorg-x11-font-utils
yum install fontconfig
rpm -i https://deac-ams.dl.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
If the rpm package cannot be downloaded, you can first download it locally, and then install it with rpm -i msttcore-fonts-installer-2.6-1.noarch.rpm
Install document server
- Install
yum install https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm
yum install onlyoffice-documentserver
- start up
service supervisord start
systemctl enable supervisord
service nginx start
systemctl enable nginx
- closure
service supervisord stop
service nginx stop
- Configuration
Directly execute the command documentserver-configure.sh
, you will be prompted to enter PG information and MQ information
For PG database
Host: localhost
Database: onlyoffice
User: onlyoffice
Password: onlyoffice
For RabbitMQ
Host: localhost
User: guest
Password: guest
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。