centos7通过docker安装onlyoffice
- 版本:CentOS Linux release 7.7.1908 (Core)
通过yum安装docker
yum install -y docker
docker -v
Docker version 1.13.1, build 7f2769b/1.13.1
启动docker拉取onlyoffice
systemctl start docker
docker pull onlyoffice/documentserver
Using default tag: latest
Trying to pull repository docker.io/onlyoffice/documentserver ...
latest: Pulling from docker.io/onlyoffice/documentserver
f7277927d38a: Pull complete
8d3eac894db4: Pull complete
edf72af6d627: Pull complete
3e4f86211d23: Pull complete
6ce29fec018b: Pull complete
88e1e0a2a5a3: Pull complete
1e6734c06f11: Pull complete
8c72ce4617ba: Pull complete
Digest: sha256:94294e0e54efe7204adcb98cd63dccfeebc3c7c7455039f84dd006cc43ae79a1
Status: Downloaded newer image for docker.io/onlyoffice/documentserver:latest
启动onlyoffice
docker run -i -t -d -p 80:80 onlyoffice/documentserver
也可将onlyoffice映射到其他端口例8080
docker run -i -t -d -p 8080:80 onlyoffice/documentserver
打开http://ip出现下图则安装成功,若无法打开请关闭防火墙和Selinux
systemctl stop firewalld
sentenforce 0
PS.刚打开可能出现502 Bad Gateway过一会再刷新下即可
centos7安装MySQL
- 版本:CentOS Linux release 7.7.1908 (Core)
设置MySQL安装源
rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
安装MySQL
yum -y install mysql-community-server
设为启动项并启动mysql
systemctl enable mysqld
systemctl start mysqld
centos7通过yum安装Nginx
- 版本:CentOS Linux release 7.7.1908 (Core)
- 内核4.10.4-1.el7.elrepo.x86_64
设置nginx安装源
编辑文件
vi /etc/yum.repos.d/nginx.repo
根据安装stable或manline版本添加如下内容:
[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
module_hotfixes=true
[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
module_hotfixes=true
centos7安装shadowsocks
- 版本:CentOS Linux release 7.7.1908 (Core)
- 内核4.10.4-1.el7.elrepo.x86_64
安装依赖
yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto udns-devel libev-devel libsodium-devel mbedtls-devel git m2crypto c-ares-devel -y
编译安装
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule init && git submodule update
./autogen.sh
./configure
make
make install
mkdir -p /etc/shadowsocks-libev