1.更新RockyLinux8软件包[rootowncloud ~]# cat /etc/redhat-releaseRocky Linux release 8.4 (Green Obsidian)[rootowncloud ~]# dnf -y update[rootowncloud ~]# cat /etc/redhat-releaseRocky Linux release 8.6 (Green Obsidian)2.在RockyLinux8上安装Apache web服务[rootowncloud ~]# dnf -y install httpd httpd-toolsInstalled:apr-1.6.3-12.el8.x86_64 apr-util-1.6.1-6.el8.1.x86_64apr-util-bdb-1.6.1-6.el8.1.x86_64 apr-util-openssl-1.6.1-6.el8.1.x86_64httpd-2.4.37-47.moduleel8.6.0985b8ff6398.2.x86_64 httpd-filesystem-2.4.37-47.moduleel8.6.0985b8ff6398.2.noarchhttpd-tools-2.4.37-47.moduleel8.6.0985b8ff6398.2.x86_64 mailcap-2.1.48-3.el8.noarchmod_http2-1.15.7-5.moduleel8.6.0823f143cee1.x86_64 rocky-logos-httpd-86.2-1.el8.noarchComplete![rootowncloud ~]# systemctl enable httpdCreated symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.[rootowncloud ~]# systemctl start httpd[rootowncloud ~]# systemctl status httpd● httpd.service - The Apache HTTP ServerLoaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)Active: active (running) since Mon 2022-10-17 22:59:34 CST; 8s agoDocs: man:httpd.service(8)Main PID: 60332 (httpd)Status: Started, listening on: port 80Tasks: 213 (limit: 49308)Memory: 37.6MCGroup: /system.slice/httpd.service├─60332 /usr/sbin/httpd -DFOREGROUND├─60333 /usr/sbin/httpd -DFOREGROUND├─60334 /usr/sbin/httpd -DFOREGROUND├─60335 /usr/sbin/httpd -DFOREGROUND└─60336 /usr/sbin/httpd -DFOREGROUNDOct 17 22:59:34 owncloud systemd[1]: Starting The Apache HTTP Server...Oct 17 22:59:34 owncloud httpd[60332]: AH00558: httpd: Could not reliably determine the servers fully qualified domain name, using Oct 17 22:59:34 owncloud systemd[1]: Started The Apache HTTP Server.Oct 17 22:59:34 owncloud httpd[60332]: Server configured, listening on: port 80[rootowncloud ~]# httpd -vServer version: Apache/2.4.37 (rocky)Server built: Jun 22 2022 14:17:54[rootowncloud ~]# rpm -qi httpdName : httpdVersion : 2.4.37Release : 47.moduleel8.6.0985b8ff6398.2Architecture: x86_64Install Date: Mon 17 Oct 2022 10:58:27 PM CSTGroup : System Environment/DaemonsSize : 4499410License : ASL 2.0Signature : RSA/SHA256, Wed 22 Jun 2022 10:25:03 PM CST, Key ID 15af5dac6d745a60Source RPM : httpd-2.4.37-47.moduleel8.6.0985b8ff6398.2.src.rpmBuild Date : Wed 22 Jun 2022 10:18:42 PM CSTBuild Host : ord1-prod-x86build005.svc.aws.rockylinux.orgRelocations : (not relocatable)Packager : infrastructurerockylinux.orgVendor : RockyURL : https://httpd.apache.org/Summary : Apache HTTP ServerDescription :The Apache HTTP Server is a powerful, efficient, and extensibleweb server.3.在RockyLinux上安装MariaDB[rootowncloud ~]# dnf install mariadb-server mariadb -y[rootowncloud ~]# systemctl start mariadb[rootowncloud ~]# systemctl enable mariadbCreated symlink /etc/systemd/system/mysql.service → /usr/lib/systemd/system/mariadb.service.Created symlink /etc/systemd/system/mysqld.service → /usr/lib/systemd/system/mariadb.service.Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /usr/lib/systemd/system/mariadb.service.[rootowncloud ~]# systemctl status mariadb● mariadb.service - MariaDB 10.3 database serverLoaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)Active: active (running) since Mon 2022-10-17 23:04:04 CST; 49s agoDocs: man:mysqld(8)https://mariadb.com/kb/en/library/systemd/Main PID: 63375 (mysqld)Status: Taking your SQL requests now...Tasks: 30 (limit: 49308)Memory: 84.9MCGroup: /system.slice/mariadb.service└─63375 /usr/libexec/mysqld --basedir/usrOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: which will also give you the option of removing the testOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: databases and anonymous user created by default. This isOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: strongly recommended for production servers.Oct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: See the MariaDB Knowledgebase at http://mariadb.com/kbOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: Please report any problems at http://mariadb.org/jiraOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: The latest information about MariaDB is available at http://mariadb.org/.Oct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: Consider joining MariaDBs strong and vibrant community:Oct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: https://mariadb.org/get-involved/Oct 17 23:04:04 owncloud mysqld[63375]: 2022-10-17 23:04:04 0 [Note] /usr/libexec/mysqld (mysqld 10.3.35-MariaDB) starting as procesOct 17 23:04:04 owncloud systemd[1]: Started MariaDB 10.3 database server.[rootowncloud ~]# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, well need the currentpassword for the root user. If youve just installed MariaDB, andyou havent set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none):OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDBroot user without the proper authorisation.Set root password? [Y/n] yNew password:Re-enter new password:Password updated successfully!Reloading privilege tables..... Success!By default, a MariaDB installation has an anonymous user, allowing anyoneto log into MariaDB without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? [Y/n]... Success!Normally, root should only be allowed to connect from localhost. Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n]... Success!By default, MariaDB comes with a database named test that anyone canaccess. This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n]Dropping test database...... Success!Removing privileges on test database...... Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? [Y/n]... Success!Cleaning up...All done! If youve completed all of the above steps, your MariaDBinstallation should now be secure.Thanks for using MariaDB!4.在RockyLinux8上安装PHP7[rootowncloud ~]# dnf -y install https://dl.Fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm[rootowncloud ~]# dnf -y install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpmInstalled:remi-release-8.6-1.el8.remi.noarch yum-utils-4.0.21-11.el8.noarchComplete![rootowncloud ~]# dnf -y module list phpRocky Linux 8 - AppStreamName Stream Profiles Summaryphp 7.2 [d] common [d], devel, minimal PHP scripting languagephp 7.3 common [d], devel, minimal PHP scripting languagephp 7.4 common [d], devel, minimal PHP scripting languagephp 8.0 common [d], devel, minimal PHP scripting languageRemis Modular repository for Enterprise Linux 8 - x86_64Name Stream Profiles Summaryphp remi-7.2 common [d], devel, minimal PHP scripting languagephp remi-7.3 common [d], devel, minimal PHP scripting languagephp remi-7.4 common [d], devel, minimal PHP scripting languagephp remi-8.0 common [d], devel, minimal PHP scripting languagephp remi-8.1 common [d], devel, minimal PHP scripting languagephp remi-8.2 common [d], devel, minimal PHP scripting language重置PHP模块[rootowncloud ~]# dnf module reset phpLast metadata expiration check: 1:06:22 ago on Tue 18 Oct 2022 06:38:37 AM CST.Dependencies resolved.Nothing to do.Complete![rootowncloud ~]# dnf module enable php:remi-7.4Last metadata expiration check: 1:07:51 ago on Tue 18 Oct 2022 06:38:37 AM CST. Dependencies resolved.Package Architecture Version Repository SizeEnabling module streams:php remi-7.4Transaction SummaryIs this ok [y/N]: yComplete![rootowncloud ~]# dnf -y install php php-opcache php-gd php-curl php-mysqlndInstalled:dejavu-fonts-common-2.35-7.el8.noarch dejavu-sans-fonts-2.35-7.el8.noarch fontconfig-2.13.1-4.el8.x86_64fontpackages-filesystem-1.44-22.el8.noarch fribidi-1.0.4-8.el8.x86_64 gd3php-2.3.3-8.el8.remi.x86_64graphite2-1.3.10-10.el8.x86_64 harfbuzz-1.7.5-3.el8.x86_64 jbigkit-libs-2.1-14.el8.x86_64libX11-1.6.8-5.el8.x86_64 libX11-common-1.6.8-5.el8.noarch libXau-1.0.9-3.el8.x86_64libXpm-3.5.12-8.el8.x86_64 libaom-3.1.1-1.el8.x86_64 libavif-0.10.1-3.el8.x86_64libdav1d-0.5.2-1.el8.x86_64 libimagequant-2.12.5-1.el8.x86_64 libjpeg-turbo-1.5.3-12.el8.x86_64libraqm-0.7.0-4.el8.x86_64 libsodium-1.0.18-2.el8.x86_64 libtiff-4.0.9-21.el8.x86_64libwebp-1.0.0-5.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 nginx-filesystem-1:1.14.1-9.moduleel8.4.054281547229.noarchoniguruma5php-6.9.8-1.el8.remi.x86_64 php-7.4.32-1.el8.remi.x86_64 php-cli-7.4.32-1.el8.remi.x86_64php-common-7.4.32-1.el8.remi.x86_64 php-fpm-7.4.32-1.el8.remi.x86_64 php-gd-7.4.32-1.el8.remi.x86_64php-json-7.4.32-1.el8.remi.x86_64 php-mbstring-7.4.32-1.el8.remi.x86_64 php-mysqlnd-7.4.32-1.el8.remi.x86_64php-opcache-7.4.32-1.el8.remi.x86_64 php-pdo-7.4.32-1.el8.remi.x86_64 php-sodium-7.4.32-1.el8.remi.x86_64php-xml-7.4.32-1.el8.remi.x86_64 svt-av1-libs-0.8.7-1.el8.x86_64Complete![rootowncloud ~]# php -vPHP 7.4.32 (cli) (built: Sep 28 2022 09:09:55) ( NTS )Copyright (c) The PHP GroupZend Engine v3.4.0, Copyright (c) Zend Technologieswith Zend OPcache v7.4.32, Copyright (c), by Zend Technologies[rootowncloud ~]# systemctl start php-fpm[rootowncloud ~]# systemctl enable php-fpmCreated symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.[rootowncloud ~]# systemctl status php-fpm● php-fpm.service - The PHP FastCGI Process ManagerLoaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)Active: active (running) since Tue 2022-10-18 08:08:32 CST; 1min 17s agoMain PID: 67033 (php-fpm)Status: Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/secTasks: 6 (limit: 49308)Memory: 15.0MCGroup: /system.slice/php-fpm.service├─67033 php-fpm: master process (/etc/php-fpm.conf)├─67034 php-fpm: pool www├─67035 php-fpm: pool www├─67036 php-fpm: pool www├─67037 php-fpm: pool www└─67038 php-fpm: pool wwwOct 18 08:08:31 owncloud systemd[1]: Starting The PHP FastCGI Process Manager...Oct 18 08:08:32 owncloud systemd[1]: Started The PHP FastCGI Process Manager.指示SELinux允许Apache通过PHP-FPM运行来执行PHP代码。[rootowncloud ~]# setsebool -P httpd_execmem 1[rootowncloud ~]# systemctl restart httpd测试php要在网络服务器上测试PHP您必须在文档根目录中创建一个info.php文件。[rootowncloud ~]# vim /var/www/html/linuxidc.phpphpinfo ();?http://10.9.254.18/linuxidc.php作为一种好习惯请确保删除info.php文件因为这能够识别您正在运行的PHP版本有可能造成安全风险。[rootowncloud ~]# rm -rf /var/www/html/linuxidc.php5.在RockyLinux8上安装owncloud5.1安装其它PHP模块OwnCloud是一个PHP应用程序其官方文档推荐默认安装的PHP 7.3或PHP 7.2。最新版OwnCloud 10.4.0与PHP 7.4不兼容此外OwnCloud还需要一些其他PHP扩展才能使其无缝运行。[rootowncloud ~]# dnf -y install php-curl php-gd php-intl php-json php-ldap php-mbstring php-MySQLnd php-xml php-zip php-opcache5.2为owncloud创建数据库Enter password:Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 8Server version: 10.3.35-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type help; or \h for help. Type \c to clear the current input statement.MariaDB [(none)] create database owncloud;Query OK, 1 row affected (0.000 sec)MariaDB [(none)] grant all on owncloud.* to owncloudlocalhost identified by Cywetc.c0m;Query OK, 0 rows affected (0.001 sec)MariaDB [(none)] flush privileges;Query OK, 0 rows affected (0.001 sec)MariaDB [(none)] exit;Bye5.3下载owncloudhttps://download.owncloud.com/server/stable/[rootowncloud ~]# wget https://download.owncloud.com/server/stable/owncloud-10.11.0.tar.bz2[rootowncloud ~]# ll-rw-r--r-- 1 root root 62653820 Sep 20 17:56 owncloud-10.11.0.tar.bz2[rootowncloud ~]# dnf -y install bzip2[rootowncloud ~]# tar -jxf owncloud-10.11.0.tar.bz2 -C /var/www/[rootowncloud ~]# chown -R apache: /var/www/owncloud/[rootowncloud ~]# ll /var/www/owncloud/total 584drwxrwxrwx 22 apache apache 4096 Sep 20 16:52 apps-rw-r--r-- 1 apache apache 8859 Sep 20 16:51 AUTHORS-rw-r--r-- 1 apache apache 454693 Sep 20 16:51 CHANGELOG.mddrwxrwxrwx 2 apache apache 61 Sep 20 16:51 config-rw-r--r-- 1 apache apache 4618 Sep 20 16:51 console.php-rw-r--r-- 1 apache apache 34520 Sep 20 16:51 COPYINGdrwxr-xr-x 16 apache apache 335 Sep 20 16:52 core-rw-r--r-- 1 apache apache 1717 Sep 20 16:51 cron.php-rw-r--r-- 1 apache apache 31204 Sep 20 16:51 db_structure.xml-rw-r--r-- 1 apache apache 179 Sep 20 16:51 index.html-rw-r--r-- 1 apache apache 3518 Sep 20 16:51 index.phpdrwxr-xr-x 6 apache apache 79 Sep 20 16:51 lib-rwxr-xr-x 1 apache apache 283 Sep 20 16:51 occdrwxr-xr-x 2 apache apache 23 Sep 20 16:51 ocm-providerdrwxr-xr-x 2 apache apache 55 Sep 20 16:51 ocsdrwxr-xr-x 2 apache apache 23 Sep 20 16:51 ocs-provider-rw-r--r-- 1 apache apache 3135 Sep 20 16:51 public.php-rw-r--r-- 1 apache apache 3000 Sep 20 16:51 README.md-rw-r--r-- 1 apache apache 5618 Sep 20 16:51 remote.phpdrwxr-xr-x 4 apache apache 39 Sep 20 16:51 resources-rw-r--r-- 1 apache apache 26 Sep 20 16:51 robots.txtdrwxr-xr-x 12 apache apache 209 Sep 20 16:51 settings-rw-r--r-- 1 apache apache 2231 Sep 20 16:51 status.phpdrwxr-xr-x 6 apache apache 150 Nov 14 2019 updater-rw-r--r-- 1 apache apache 282 Sep 20 16:51 version.php5.4为OwnCloud配置Apache Web服务器[rootowncloud ~]# vim /etc/httpd/conf.d/owncloud.confAlias /owncloud /var/www/owncloud/Options FollowSymlinksAllowOverride AllDav offSetEnv HOME /var/www/owncloudSetEnv HTTP_HOME /var/www/owncloud[rootowncloud ~]# systemctl restart httpd[rootowncloud ~]# systemctl status httpd● httpd.service - The Apache HTTP ServerLoaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)Drop-In: /usr/lib/systemd/system/httpd.service.d└─php-fpm.confActive: active (running) since Tue 2022-10-18 09:28:05 CST; 8s agoDocs: man:httpd.service(8)Main PID: 6482 (httpd)Status: Started, listening on: port 80Tasks: 213 (limit: 49277)Memory: 43.9MCGroup: /system.slice/httpd.service├─6482 /usr/sbin/httpd -DFOREGROUND├─6485 /usr/sbin/httpd -DFOREGROUND├─6486 /usr/sbin/httpd -DFOREGROUND├─6487 /usr/sbin/httpd -DFOREGROUND└─6496 /usr/sbin/httpd -DFOREGROUNDOct 18 09:28:05 owncloud systemd[1]: Starting The Apache HTTP Server...Oct 18 09:28:05 owncloud httpd[6482]: AH00558: httpd: Could not reliably determine the servers fully qualified domain name, using fe80::250:56ff:fe98:fc4d. Set the ServeOct 18 09:28:05 owncloud systemd[1]: Started The Apache HTTP Server.Oct 18 09:28:06 owncloud httpd[6482]: Server configured, listening on: port 805.5在RockyLinux8上安装owncloudhttp://10.9.254.18/owncloud/6.OwnCloud实现文件在线预览和编辑6.1RockyLinux8安装docker[rootowncloud ~]# rpm -qa | grep podman[rootowncloud ~]# rpm -q podmanpackage podman is not installed如果有podman删除dnf remove podman[rootowncloud ~]# dnf install -y yum-utils device-mapper-persistent-data lvm2Last metadata expiration check: 0:24:38 ago on Tue 18 Oct 2022 09:39:50 AM CST.Package yum-utils-4.0.21-11.el8.noarch is already installed.Package device-mapper-persistent-data-0.9.0-6.el8.x86_64 is already installed.Package lvm2-8:2.03.14-3.el8_6.2.x86_64 is already installed.Dependencies resolved.Nothing to do.Complete![rootowncloud ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoAdding repo from: https://download.docker.com/linux/centos/docker-ce.repo[rootowncloud ~]# yum -y install docker-ce docker-ce-cli containerd.ioInstalled:checkpolicy-2.9-1.el8.x86_64 container-selinux-2:2.188.0-1.moduleel8.6.099705c9d812.noarch containerd.io-1.6.8-3.1.el8.x86_64docker-ce-3:20.10.19-3.el8.x86_64 docker-ce-cli-1:20.10.19-3.el8.x86_64 docker-ce-rootless-extras-20.10.19-3.el8.x86_64docker-scan-plugin-0.17.0-3.el8.x86_64 fuse-overlayfs-1.9-1.moduleel8.6.099705c9d812.x86_64 fuse3-3.3.0-15.el8.x86_64fuse3-libs-3.3.0-15.el8.x86_64 libcgroup-0.41-19.el8.x86_64 libslirp-4.4.0-1.moduleel8.6.099705c9d812.x86_64policycoreutils-python-utils-2.9-19.el8.noarch python3-audit-3.0.7-2.el8.2.x86_64 python3-libsemanage-2.9-8.el8.x86_64python3-policycoreutils-2.9-19.el8.noarch python3-setools-4.3.0-3.el8.x86_64 slirp4netns-1.2.0-2.moduleel8.6.099705c9d812.x86_64Complete![rootowncloud ~]# systemctl enable docker[rootowncloud ~]# systemctl start docker[rootowncloud ~]# docker -vDocker version 20.10.19, build d85ef84[rootowncloud ~]# systemctl status docker● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)Active: active (running) since Tue 2022-10-18 10:08:26 CST; 16s agoDocs: https://docs.docker.comMain PID: 8358 (dockerd)Tasks: 9Memory: 26.5MCGroup: /system.slice/docker.service└─8358 /usr/bin/dockerd -H fd:// --containerd/run/containerd/containerd.sockOct 18 10:08:25 owncloud dockerd[8358]: time2022-10-18T10:08:25.99954452608:00 levelerror msgFailed to built-in GetDriver graph btrfs /var/lib/dockerOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.00937584808:00 levelwarning msgYour kernel does not support cgroup blkio weightOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.00939180308:00 levelwarning msgYour kernel does not support cgroup blkio weight_deviceOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.00950545008:00 levelinfo msgLoading containers: start.Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.62203516408:00 levelinfo msgDefault bridge (docker0) is assigned with an IP address 172.17.0.0/16. DOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.70337805408:00 levelinfo msgLoading containers: done.Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.71842439608:00 levelinfo msgDocker daemon commitc964641 graphdriver(s)overlay2 version20.10.19Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.71849934508:00 levelinfo msgDaemon has completed initializationOct 18 10:08:26 owncloud systemd[1]: Started Docker Application Container Engine.Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.73961317808:00 levelinfo msgAPI listen on /var/run/docker.sock6.2RockyLinux8安装onlyofficeOwnCloud 默认是不能在线预览常见的 office 文件的但可通过安装 onlyoffice 插件和部署 onlyoffice 文档服务器来实现该功能。[rootowncloud ~]# vim /etc/docker/daemon.json{registry-mirrors:[https://docker.211678.top,https://docker.1panel.live,https://hub.rat.dev,https://docker.m.daocloud.io,https://do.nark.eu.org,https://dockerpull.com,https://dockerproxy.cn,https://docker.awsl9527.cn/}[rootowncloud ~]# systemctl daemon-reload[rootowncloud ~]# systemctl restart docker[rootowncloud ~]# docker run -i -t -d -p 8080:80 --restartalways onlyoffice/documentserverUnable to find image onlyoffice/documentserver:latest locallylatest: Pulling from onlyoffice/documentserverf3ef4ff62e0d: Pull completed07cf79b5f7d: Pull completee5395a39b9a5: Pull completee6010a09edba: Pull complete30fedd4b1d62: Pull completeDigest: sha256:7e4a36f99966640fa7d0298ec3334309331229f61bdce7280667575ba9c8f7f6Status: Downloaded newer image for onlyoffice/documentserver:latest551ea0e6cd01c8b2f86fa98cf343fc51a3beddb1db4966cb38db9767396e7b0a[rootowncloud ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEonlyoffice/documentserver latest 731f9669f88e 12 months ago 2.72GB[rootowncloud ~]# docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES551ea0e6cd01 onlyoffice/documentserver /app/ds/run-documen… 2 minutes ago Up 2 minutes 443/tcp, 0.0.0.0:8080-80/tcp, :::8080-80/tcp heuristic_hawking6.3owncloud配置onlyoffice登录到 OwnCloud 单击左上角进入 Market 页面找到 ONLYOFFICE 插件点击安装。
owncloud-基于rockylinux8安装部署
1.更新RockyLinux8软件包[rootowncloud ~]# cat /etc/redhat-releaseRocky Linux release 8.4 (Green Obsidian)[rootowncloud ~]# dnf -y update[rootowncloud ~]# cat /etc/redhat-releaseRocky Linux release 8.6 (Green Obsidian)2.在RockyLinux8上安装Apache web服务[rootowncloud ~]# dnf -y install httpd httpd-toolsInstalled:apr-1.6.3-12.el8.x86_64 apr-util-1.6.1-6.el8.1.x86_64apr-util-bdb-1.6.1-6.el8.1.x86_64 apr-util-openssl-1.6.1-6.el8.1.x86_64httpd-2.4.37-47.moduleel8.6.0985b8ff6398.2.x86_64 httpd-filesystem-2.4.37-47.moduleel8.6.0985b8ff6398.2.noarchhttpd-tools-2.4.37-47.moduleel8.6.0985b8ff6398.2.x86_64 mailcap-2.1.48-3.el8.noarchmod_http2-1.15.7-5.moduleel8.6.0823f143cee1.x86_64 rocky-logos-httpd-86.2-1.el8.noarchComplete![rootowncloud ~]# systemctl enable httpdCreated symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.[rootowncloud ~]# systemctl start httpd[rootowncloud ~]# systemctl status httpd● httpd.service - The Apache HTTP ServerLoaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)Active: active (running) since Mon 2022-10-17 22:59:34 CST; 8s agoDocs: man:httpd.service(8)Main PID: 60332 (httpd)Status: Started, listening on: port 80Tasks: 213 (limit: 49308)Memory: 37.6MCGroup: /system.slice/httpd.service├─60332 /usr/sbin/httpd -DFOREGROUND├─60333 /usr/sbin/httpd -DFOREGROUND├─60334 /usr/sbin/httpd -DFOREGROUND├─60335 /usr/sbin/httpd -DFOREGROUND└─60336 /usr/sbin/httpd -DFOREGROUNDOct 17 22:59:34 owncloud systemd[1]: Starting The Apache HTTP Server...Oct 17 22:59:34 owncloud httpd[60332]: AH00558: httpd: Could not reliably determine the servers fully qualified domain name, using Oct 17 22:59:34 owncloud systemd[1]: Started The Apache HTTP Server.Oct 17 22:59:34 owncloud httpd[60332]: Server configured, listening on: port 80[rootowncloud ~]# httpd -vServer version: Apache/2.4.37 (rocky)Server built: Jun 22 2022 14:17:54[rootowncloud ~]# rpm -qi httpdName : httpdVersion : 2.4.37Release : 47.moduleel8.6.0985b8ff6398.2Architecture: x86_64Install Date: Mon 17 Oct 2022 10:58:27 PM CSTGroup : System Environment/DaemonsSize : 4499410License : ASL 2.0Signature : RSA/SHA256, Wed 22 Jun 2022 10:25:03 PM CST, Key ID 15af5dac6d745a60Source RPM : httpd-2.4.37-47.moduleel8.6.0985b8ff6398.2.src.rpmBuild Date : Wed 22 Jun 2022 10:18:42 PM CSTBuild Host : ord1-prod-x86build005.svc.aws.rockylinux.orgRelocations : (not relocatable)Packager : infrastructurerockylinux.orgVendor : RockyURL : https://httpd.apache.org/Summary : Apache HTTP ServerDescription :The Apache HTTP Server is a powerful, efficient, and extensibleweb server.3.在RockyLinux上安装MariaDB[rootowncloud ~]# dnf install mariadb-server mariadb -y[rootowncloud ~]# systemctl start mariadb[rootowncloud ~]# systemctl enable mariadbCreated symlink /etc/systemd/system/mysql.service → /usr/lib/systemd/system/mariadb.service.Created symlink /etc/systemd/system/mysqld.service → /usr/lib/systemd/system/mariadb.service.Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /usr/lib/systemd/system/mariadb.service.[rootowncloud ~]# systemctl status mariadb● mariadb.service - MariaDB 10.3 database serverLoaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)Active: active (running) since Mon 2022-10-17 23:04:04 CST; 49s agoDocs: man:mysqld(8)https://mariadb.com/kb/en/library/systemd/Main PID: 63375 (mysqld)Status: Taking your SQL requests now...Tasks: 30 (limit: 49308)Memory: 84.9MCGroup: /system.slice/mariadb.service└─63375 /usr/libexec/mysqld --basedir/usrOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: which will also give you the option of removing the testOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: databases and anonymous user created by default. This isOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: strongly recommended for production servers.Oct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: See the MariaDB Knowledgebase at http://mariadb.com/kbOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: Please report any problems at http://mariadb.org/jiraOct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: The latest information about MariaDB is available at http://mariadb.org/.Oct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: Consider joining MariaDBs strong and vibrant community:Oct 17 23:04:04 owncloud mysql-prepare-db-dir[63271]: https://mariadb.org/get-involved/Oct 17 23:04:04 owncloud mysqld[63375]: 2022-10-17 23:04:04 0 [Note] /usr/libexec/mysqld (mysqld 10.3.35-MariaDB) starting as procesOct 17 23:04:04 owncloud systemd[1]: Started MariaDB 10.3 database server.[rootowncloud ~]# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, well need the currentpassword for the root user. If youve just installed MariaDB, andyou havent set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none):OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDBroot user without the proper authorisation.Set root password? [Y/n] yNew password:Re-enter new password:Password updated successfully!Reloading privilege tables..... Success!By default, a MariaDB installation has an anonymous user, allowing anyoneto log into MariaDB without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? [Y/n]... Success!Normally, root should only be allowed to connect from localhost. Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n]... Success!By default, MariaDB comes with a database named test that anyone canaccess. This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n]Dropping test database...... Success!Removing privileges on test database...... Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? [Y/n]... Success!Cleaning up...All done! If youve completed all of the above steps, your MariaDBinstallation should now be secure.Thanks for using MariaDB!4.在RockyLinux8上安装PHP7[rootowncloud ~]# dnf -y install https://dl.Fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm[rootowncloud ~]# dnf -y install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpmInstalled:remi-release-8.6-1.el8.remi.noarch yum-utils-4.0.21-11.el8.noarchComplete![rootowncloud ~]# dnf -y module list phpRocky Linux 8 - AppStreamName Stream Profiles Summaryphp 7.2 [d] common [d], devel, minimal PHP scripting languagephp 7.3 common [d], devel, minimal PHP scripting languagephp 7.4 common [d], devel, minimal PHP scripting languagephp 8.0 common [d], devel, minimal PHP scripting languageRemis Modular repository for Enterprise Linux 8 - x86_64Name Stream Profiles Summaryphp remi-7.2 common [d], devel, minimal PHP scripting languagephp remi-7.3 common [d], devel, minimal PHP scripting languagephp remi-7.4 common [d], devel, minimal PHP scripting languagephp remi-8.0 common [d], devel, minimal PHP scripting languagephp remi-8.1 common [d], devel, minimal PHP scripting languagephp remi-8.2 common [d], devel, minimal PHP scripting language重置PHP模块[rootowncloud ~]# dnf module reset phpLast metadata expiration check: 1:06:22 ago on Tue 18 Oct 2022 06:38:37 AM CST.Dependencies resolved.Nothing to do.Complete![rootowncloud ~]# dnf module enable php:remi-7.4Last metadata expiration check: 1:07:51 ago on Tue 18 Oct 2022 06:38:37 AM CST. Dependencies resolved.Package Architecture Version Repository SizeEnabling module streams:php remi-7.4Transaction SummaryIs this ok [y/N]: yComplete![rootowncloud ~]# dnf -y install php php-opcache php-gd php-curl php-mysqlndInstalled:dejavu-fonts-common-2.35-7.el8.noarch dejavu-sans-fonts-2.35-7.el8.noarch fontconfig-2.13.1-4.el8.x86_64fontpackages-filesystem-1.44-22.el8.noarch fribidi-1.0.4-8.el8.x86_64 gd3php-2.3.3-8.el8.remi.x86_64graphite2-1.3.10-10.el8.x86_64 harfbuzz-1.7.5-3.el8.x86_64 jbigkit-libs-2.1-14.el8.x86_64libX11-1.6.8-5.el8.x86_64 libX11-common-1.6.8-5.el8.noarch libXau-1.0.9-3.el8.x86_64libXpm-3.5.12-8.el8.x86_64 libaom-3.1.1-1.el8.x86_64 libavif-0.10.1-3.el8.x86_64libdav1d-0.5.2-1.el8.x86_64 libimagequant-2.12.5-1.el8.x86_64 libjpeg-turbo-1.5.3-12.el8.x86_64libraqm-0.7.0-4.el8.x86_64 libsodium-1.0.18-2.el8.x86_64 libtiff-4.0.9-21.el8.x86_64libwebp-1.0.0-5.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 nginx-filesystem-1:1.14.1-9.moduleel8.4.054281547229.noarchoniguruma5php-6.9.8-1.el8.remi.x86_64 php-7.4.32-1.el8.remi.x86_64 php-cli-7.4.32-1.el8.remi.x86_64php-common-7.4.32-1.el8.remi.x86_64 php-fpm-7.4.32-1.el8.remi.x86_64 php-gd-7.4.32-1.el8.remi.x86_64php-json-7.4.32-1.el8.remi.x86_64 php-mbstring-7.4.32-1.el8.remi.x86_64 php-mysqlnd-7.4.32-1.el8.remi.x86_64php-opcache-7.4.32-1.el8.remi.x86_64 php-pdo-7.4.32-1.el8.remi.x86_64 php-sodium-7.4.32-1.el8.remi.x86_64php-xml-7.4.32-1.el8.remi.x86_64 svt-av1-libs-0.8.7-1.el8.x86_64Complete![rootowncloud ~]# php -vPHP 7.4.32 (cli) (built: Sep 28 2022 09:09:55) ( NTS )Copyright (c) The PHP GroupZend Engine v3.4.0, Copyright (c) Zend Technologieswith Zend OPcache v7.4.32, Copyright (c), by Zend Technologies[rootowncloud ~]# systemctl start php-fpm[rootowncloud ~]# systemctl enable php-fpmCreated symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.[rootowncloud ~]# systemctl status php-fpm● php-fpm.service - The PHP FastCGI Process ManagerLoaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)Active: active (running) since Tue 2022-10-18 08:08:32 CST; 1min 17s agoMain PID: 67033 (php-fpm)Status: Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/secTasks: 6 (limit: 49308)Memory: 15.0MCGroup: /system.slice/php-fpm.service├─67033 php-fpm: master process (/etc/php-fpm.conf)├─67034 php-fpm: pool www├─67035 php-fpm: pool www├─67036 php-fpm: pool www├─67037 php-fpm: pool www└─67038 php-fpm: pool wwwOct 18 08:08:31 owncloud systemd[1]: Starting The PHP FastCGI Process Manager...Oct 18 08:08:32 owncloud systemd[1]: Started The PHP FastCGI Process Manager.指示SELinux允许Apache通过PHP-FPM运行来执行PHP代码。[rootowncloud ~]# setsebool -P httpd_execmem 1[rootowncloud ~]# systemctl restart httpd测试php要在网络服务器上测试PHP您必须在文档根目录中创建一个info.php文件。[rootowncloud ~]# vim /var/www/html/linuxidc.phpphpinfo ();?http://10.9.254.18/linuxidc.php作为一种好习惯请确保删除info.php文件因为这能够识别您正在运行的PHP版本有可能造成安全风险。[rootowncloud ~]# rm -rf /var/www/html/linuxidc.php5.在RockyLinux8上安装owncloud5.1安装其它PHP模块OwnCloud是一个PHP应用程序其官方文档推荐默认安装的PHP 7.3或PHP 7.2。最新版OwnCloud 10.4.0与PHP 7.4不兼容此外OwnCloud还需要一些其他PHP扩展才能使其无缝运行。[rootowncloud ~]# dnf -y install php-curl php-gd php-intl php-json php-ldap php-mbstring php-MySQLnd php-xml php-zip php-opcache5.2为owncloud创建数据库Enter password:Welcome to the MariaDB monitor. Commands end with ; or \g.Your MariaDB connection id is 8Server version: 10.3.35-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type help; or \h for help. Type \c to clear the current input statement.MariaDB [(none)] create database owncloud;Query OK, 1 row affected (0.000 sec)MariaDB [(none)] grant all on owncloud.* to owncloudlocalhost identified by Cywetc.c0m;Query OK, 0 rows affected (0.001 sec)MariaDB [(none)] flush privileges;Query OK, 0 rows affected (0.001 sec)MariaDB [(none)] exit;Bye5.3下载owncloudhttps://download.owncloud.com/server/stable/[rootowncloud ~]# wget https://download.owncloud.com/server/stable/owncloud-10.11.0.tar.bz2[rootowncloud ~]# ll-rw-r--r-- 1 root root 62653820 Sep 20 17:56 owncloud-10.11.0.tar.bz2[rootowncloud ~]# dnf -y install bzip2[rootowncloud ~]# tar -jxf owncloud-10.11.0.tar.bz2 -C /var/www/[rootowncloud ~]# chown -R apache: /var/www/owncloud/[rootowncloud ~]# ll /var/www/owncloud/total 584drwxrwxrwx 22 apache apache 4096 Sep 20 16:52 apps-rw-r--r-- 1 apache apache 8859 Sep 20 16:51 AUTHORS-rw-r--r-- 1 apache apache 454693 Sep 20 16:51 CHANGELOG.mddrwxrwxrwx 2 apache apache 61 Sep 20 16:51 config-rw-r--r-- 1 apache apache 4618 Sep 20 16:51 console.php-rw-r--r-- 1 apache apache 34520 Sep 20 16:51 COPYINGdrwxr-xr-x 16 apache apache 335 Sep 20 16:52 core-rw-r--r-- 1 apache apache 1717 Sep 20 16:51 cron.php-rw-r--r-- 1 apache apache 31204 Sep 20 16:51 db_structure.xml-rw-r--r-- 1 apache apache 179 Sep 20 16:51 index.html-rw-r--r-- 1 apache apache 3518 Sep 20 16:51 index.phpdrwxr-xr-x 6 apache apache 79 Sep 20 16:51 lib-rwxr-xr-x 1 apache apache 283 Sep 20 16:51 occdrwxr-xr-x 2 apache apache 23 Sep 20 16:51 ocm-providerdrwxr-xr-x 2 apache apache 55 Sep 20 16:51 ocsdrwxr-xr-x 2 apache apache 23 Sep 20 16:51 ocs-provider-rw-r--r-- 1 apache apache 3135 Sep 20 16:51 public.php-rw-r--r-- 1 apache apache 3000 Sep 20 16:51 README.md-rw-r--r-- 1 apache apache 5618 Sep 20 16:51 remote.phpdrwxr-xr-x 4 apache apache 39 Sep 20 16:51 resources-rw-r--r-- 1 apache apache 26 Sep 20 16:51 robots.txtdrwxr-xr-x 12 apache apache 209 Sep 20 16:51 settings-rw-r--r-- 1 apache apache 2231 Sep 20 16:51 status.phpdrwxr-xr-x 6 apache apache 150 Nov 14 2019 updater-rw-r--r-- 1 apache apache 282 Sep 20 16:51 version.php5.4为OwnCloud配置Apache Web服务器[rootowncloud ~]# vim /etc/httpd/conf.d/owncloud.confAlias /owncloud /var/www/owncloud/Options FollowSymlinksAllowOverride AllDav offSetEnv HOME /var/www/owncloudSetEnv HTTP_HOME /var/www/owncloud[rootowncloud ~]# systemctl restart httpd[rootowncloud ~]# systemctl status httpd● httpd.service - The Apache HTTP ServerLoaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)Drop-In: /usr/lib/systemd/system/httpd.service.d└─php-fpm.confActive: active (running) since Tue 2022-10-18 09:28:05 CST; 8s agoDocs: man:httpd.service(8)Main PID: 6482 (httpd)Status: Started, listening on: port 80Tasks: 213 (limit: 49277)Memory: 43.9MCGroup: /system.slice/httpd.service├─6482 /usr/sbin/httpd -DFOREGROUND├─6485 /usr/sbin/httpd -DFOREGROUND├─6486 /usr/sbin/httpd -DFOREGROUND├─6487 /usr/sbin/httpd -DFOREGROUND└─6496 /usr/sbin/httpd -DFOREGROUNDOct 18 09:28:05 owncloud systemd[1]: Starting The Apache HTTP Server...Oct 18 09:28:05 owncloud httpd[6482]: AH00558: httpd: Could not reliably determine the servers fully qualified domain name, using fe80::250:56ff:fe98:fc4d. Set the ServeOct 18 09:28:05 owncloud systemd[1]: Started The Apache HTTP Server.Oct 18 09:28:06 owncloud httpd[6482]: Server configured, listening on: port 805.5在RockyLinux8上安装owncloudhttp://10.9.254.18/owncloud/6.OwnCloud实现文件在线预览和编辑6.1RockyLinux8安装docker[rootowncloud ~]# rpm -qa | grep podman[rootowncloud ~]# rpm -q podmanpackage podman is not installed如果有podman删除dnf remove podman[rootowncloud ~]# dnf install -y yum-utils device-mapper-persistent-data lvm2Last metadata expiration check: 0:24:38 ago on Tue 18 Oct 2022 09:39:50 AM CST.Package yum-utils-4.0.21-11.el8.noarch is already installed.Package device-mapper-persistent-data-0.9.0-6.el8.x86_64 is already installed.Package lvm2-8:2.03.14-3.el8_6.2.x86_64 is already installed.Dependencies resolved.Nothing to do.Complete![rootowncloud ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoAdding repo from: https://download.docker.com/linux/centos/docker-ce.repo[rootowncloud ~]# yum -y install docker-ce docker-ce-cli containerd.ioInstalled:checkpolicy-2.9-1.el8.x86_64 container-selinux-2:2.188.0-1.moduleel8.6.099705c9d812.noarch containerd.io-1.6.8-3.1.el8.x86_64docker-ce-3:20.10.19-3.el8.x86_64 docker-ce-cli-1:20.10.19-3.el8.x86_64 docker-ce-rootless-extras-20.10.19-3.el8.x86_64docker-scan-plugin-0.17.0-3.el8.x86_64 fuse-overlayfs-1.9-1.moduleel8.6.099705c9d812.x86_64 fuse3-3.3.0-15.el8.x86_64fuse3-libs-3.3.0-15.el8.x86_64 libcgroup-0.41-19.el8.x86_64 libslirp-4.4.0-1.moduleel8.6.099705c9d812.x86_64policycoreutils-python-utils-2.9-19.el8.noarch python3-audit-3.0.7-2.el8.2.x86_64 python3-libsemanage-2.9-8.el8.x86_64python3-policycoreutils-2.9-19.el8.noarch python3-setools-4.3.0-3.el8.x86_64 slirp4netns-1.2.0-2.moduleel8.6.099705c9d812.x86_64Complete![rootowncloud ~]# systemctl enable docker[rootowncloud ~]# systemctl start docker[rootowncloud ~]# docker -vDocker version 20.10.19, build d85ef84[rootowncloud ~]# systemctl status docker● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)Active: active (running) since Tue 2022-10-18 10:08:26 CST; 16s agoDocs: https://docs.docker.comMain PID: 8358 (dockerd)Tasks: 9Memory: 26.5MCGroup: /system.slice/docker.service└─8358 /usr/bin/dockerd -H fd:// --containerd/run/containerd/containerd.sockOct 18 10:08:25 owncloud dockerd[8358]: time2022-10-18T10:08:25.99954452608:00 levelerror msgFailed to built-in GetDriver graph btrfs /var/lib/dockerOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.00937584808:00 levelwarning msgYour kernel does not support cgroup blkio weightOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.00939180308:00 levelwarning msgYour kernel does not support cgroup blkio weight_deviceOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.00950545008:00 levelinfo msgLoading containers: start.Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.62203516408:00 levelinfo msgDefault bridge (docker0) is assigned with an IP address 172.17.0.0/16. DOct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.70337805408:00 levelinfo msgLoading containers: done.Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.71842439608:00 levelinfo msgDocker daemon commitc964641 graphdriver(s)overlay2 version20.10.19Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.71849934508:00 levelinfo msgDaemon has completed initializationOct 18 10:08:26 owncloud systemd[1]: Started Docker Application Container Engine.Oct 18 10:08:26 owncloud dockerd[8358]: time2022-10-18T10:08:26.73961317808:00 levelinfo msgAPI listen on /var/run/docker.sock6.2RockyLinux8安装onlyofficeOwnCloud 默认是不能在线预览常见的 office 文件的但可通过安装 onlyoffice 插件和部署 onlyoffice 文档服务器来实现该功能。[rootowncloud ~]# vim /etc/docker/daemon.json{registry-mirrors:[https://docker.211678.top,https://docker.1panel.live,https://hub.rat.dev,https://docker.m.daocloud.io,https://do.nark.eu.org,https://dockerpull.com,https://dockerproxy.cn,https://docker.awsl9527.cn/}[rootowncloud ~]# systemctl daemon-reload[rootowncloud ~]# systemctl restart docker[rootowncloud ~]# docker run -i -t -d -p 8080:80 --restartalways onlyoffice/documentserverUnable to find image onlyoffice/documentserver:latest locallylatest: Pulling from onlyoffice/documentserverf3ef4ff62e0d: Pull completed07cf79b5f7d: Pull completee5395a39b9a5: Pull completee6010a09edba: Pull complete30fedd4b1d62: Pull completeDigest: sha256:7e4a36f99966640fa7d0298ec3334309331229f61bdce7280667575ba9c8f7f6Status: Downloaded newer image for onlyoffice/documentserver:latest551ea0e6cd01c8b2f86fa98cf343fc51a3beddb1db4966cb38db9767396e7b0a[rootowncloud ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEonlyoffice/documentserver latest 731f9669f88e 12 months ago 2.72GB[rootowncloud ~]# docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES551ea0e6cd01 onlyoffice/documentserver /app/ds/run-documen… 2 minutes ago Up 2 minutes 443/tcp, 0.0.0.0:8080-80/tcp, :::8080-80/tcp heuristic_hawking6.3owncloud配置onlyoffice登录到 OwnCloud 单击左上角进入 Market 页面找到 ONLYOFFICE 插件点击安装。