CentOS7 下安装 OnlyOffice

命令一键安装

wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install epel-release -y
setenforce 0
yum install docker -y(yum install docker-ce -y)
systemctl start docker
systemctl enable docker
systemctl enable firewalld
systemctl start firewalld
firewall-cmd --add-port=8082/{tcp,udp}
firewall-cmd --add-port=8082/{tcp,udp} --permanent
docker pull docker.io/onlyoffice/documentserver
docker run -i -t -d -p 8082:80 --restart always --name onlyoffice docker.io/onlyoffice/documentserver

命令解释

yum install epel-release -y // 安装epel组件
setenforce 0 // 关闭SeLinux防火墙
yum install docker -y //安装Docker
systemctl start docker //启动Docker
systemctl enable docker //应用Docker
systemctl enable firewalld //打开防火墙
systemctl start firewalld //启动防火墙
firewall-cmd –add-port=8082/{tcp,udp} //增加防火墙端口
firewall-cmd –add-port=8082/{tcp,udp} –permanent //增加防火墙端口
docker pull docker.io/onlyoffice/documentserver //加载组件
docker run -i -t -d -p 8082:80 –restart always –name onlyoffice docker.io/onlyoffice/documentserver //启动组件

额外命令

systemctl restart docker 重启 Docker

如果您喜欢本站,点击这儿 不花一分钱捐赠老基友

这些信息可能会帮助到你: 下载帮助

发表评论

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