ONLYOFFICE, in a nutshell, is Word, Excel, and PPT Office suite moved to the cloud, only need a browser to use the various functions of Office online.
System detailed reference
CentOS Linux Release 7.9.2009
Kernel: 3.10.0-1160. El7. X86_64
Prerequisites: Connect to the Internet
Install the Docker
Installation-dependent dependencies
$sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2
Copy the code
Add domestic sources to improve network transmission efficiency
$sudo yum-config-manager \ --add-repo \ https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
Copy the code
Update the yum software source cache and install docker-CE
$ sudo yum makecache fast
$ sudo yum install docker-ce
Copy the code
Start Docker and set it to boot
$ sudo systemctl enable docker
$ sudo systemctl start docker
Copy the code
Check whether docker is installed successfully
$ docker run hello-world
Copy the code
View the Docker version information
$ docker -v
Copy the code
Install OnlyOffice
Pull the onlyOffice image
docker pull onlyoffice/documentserver
Copy the code
Pull complete, view mirror
[root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE onlyoffice/documentserver latest 5bebc75c54be 2 Weekes line 2.57 GBCopy the code
Create and start the onlyOffice container
docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
Copy the code
Interpretation of key parameters
-p 80:80 indicates port mapping. The former is a host port, and the latter is a mapped port in the container.
–restart=always The container automatically restarts
Onlyoffice/documentserver image name
Check to see if the container is running
docker ps
Copy the code
Check whether the installation is successful
Address: IP:PORTS/welcomeCopy the code
The first method: on the cli
The curl 127.0.0.1:80 / welcomeCopy the code
<! DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Redirecting</title> </head> <body> <pre>Redirecting to <a href="/welcome/">/welcome/</a></pre> </body> </html>Copy the code
Second way: in the browser
Access API. Js
Access the address: https://documentserver/web-apps/apps/api/documents/api.jsCopy the code
Article continues to update, more can be wechat search “a demand”, this is actually very simple, how to achieve I don’t care!