root用户登录,先解决“Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal ” 报错问题
login as: root
root@192.168.182.129's password:
Activate the web console with: systemctl enable --now cockpit.socket
Last login: Wed Jul 20 12:36:12 2022
[root@nextcloud ~]# dnf install -y epel-release yum-utils unzip curl wget \
> bash-completion policycoreutils-python-utils mlocate bzip2
CentOS Linux 8 - AppStream 86 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
[root@nextcloud ~]# Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist^C
[root@nextcloud ~]# cd /etc/yum.repos.d/
[root@nextcloud yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
[root@nextcloud yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
[root@nextcloud yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
--2022-07-20 15:34:52-- https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 119.96.204.216, 119.96.204.213, 119.96.204.210, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|119.96.204.216|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2495 (2.4K) [application/octet-stream]
Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’
/etc/yum.repos.d/CentOS-Base.re 100%[======================================================>] 2.44K --.-KB/s in 0.004s
2022-07-20 15:34:53 (609 KB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [2495/2495]
[root@nextcloud yum.repos.d]# yum clean all
Repository extras is listed more than once in the configuration
0 files removed
[root@nextcloud yum.repos.d]# yum makecache
Repository extras is listed more than once in the configuration
CentOS-8.5.2111 - Base - mirrors.aliyun.com 476 kB/s | 4.6 MB 00:09
CentOS-8.5.2111 - Extras - mirrors.aliyun.com 64 kB/s | 10 kB 00:00
CentOS-8.5.2111 - AppStream - mirrors.aliyun.com 320 kB/s | 8.4 MB 00:26
CentOS Linux 8 - AppStream 37 kB/s | 8.4 MB 03:51
CentOS Linux 8 - BaseOS 53 kB/s | 4.6 MB 01:27
Metadata cache created.
[root@nextcloud yum.repos.d]#
在这里插入代码片
登录https://docs.nextcloud.com/server/latest/admin_manual/installation/example_centos.html,参照安装步骤进行
[root@nextcloud ~]#
[root@nextcloud ~]# dnf install -y epel-release yum-utils unzip curl wget \
> bash-completion policycoreutils-python-utils mlocate bzip2
Repository extras is listed more than once in the configuration
Last metadata expiration check: 2:02:03 ago on Thu 21 Jul 2022 08:02:17 AM CST.
Package unzip-6.0-45.el8_4.x86_64 is already installed.
Package curl-7.61.1-22.el8.x86_64 is already installed.
Package wget-1.19.5-10.el8.x86_64 is already installed.
Package bash-completion-1:2.7-5.el8.noarch is already installed.
Package policycoreutils-python-utils-2.9-16.el8.noarch is already installed.
Package mlocate-0.26-20.el8.x86_64 is already installed.
Package bzip2-1.0.6-26.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
epel-release noarch 8-11.el8 extras 24 k
yum-utils noarch 4.0.21-3.el8 base 73 k
Transaction Summary
================================================================================
Install 2 Packages
Total download size: 96 k
Installed size: 57 k
Downloading Packages:
(1/2): epel-release-8-11.el8.noarch.rpm 130 kB/s | 24 kB 00:00
(2/2): yum-utils-4.0.21-3.el8.noarch.rpm 187 kB/s | 73 kB 00:00
--------------------------------------------------------------------------------
Total 248 kB/s | 96 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : epel-release-8-11.el8.noarch 1/2
Installing : yum-utils-4.0.21-3.el8.noarch 2/2
Running scriptlet: yum-utils-4.0.21-3.el8.noarch 2/2
Verifying : yum-utils-4.0.21-3.el8.noarch 1/2
Verifying : epel-release-8-11.el8.noarch 2/2
Installed:
epel-release-8-11.el8.noarch yum-utils-4.0.21-3.el8.noarch
Complete!
对系统进行更新
[root@nextcloud ~]# dnf update -y
Repository extras is listed more than once in the configuration
Extra Packages for Enterprise Linux 8 - x86_64 5.1 MB/s | 12 MB 00:02
Extra Packages for Enterprise Linux Modular 8 - 462 kB/s | 1.0 MB 00:02
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
kernel x86_64 4.18.0-348.7.1.el8_5 base 7.0 M
Upgrading:
binutils x86_64 2.30-108.el8_5.1 base 5.8 M
bpftool x86_64 4.18.0-348.7.1.el8_5 base 7.7 M
epel-release noarch 8-16.el8 epel 24 k
kernel-tools x86_64 4.18.0-348.7.1.el8_5 base 7.2 M
kernel-tools-libs x86_64 4.18.0-348.7.1.el8_5 base 7.0 M
kexec-tools
systemd-udev x86_64 239-51.el8_5.2 base 1.6 M
Installing dependencies:
kernel-core x86_64 4.18.0-348.7.1.el8_5 base 38 M
kernel-modules x86_64 4.18.0-348.7.1.el8_5 base 30 M
Transaction Summary
================================================================================
Install 3 Packages
Upgrade 57 Packages
Total download size: 155 M
Downloading Packages:
(1/60): kernel-4.18.0-348.7.1.el8_5.x86_64.rpm 223 kB/s | 7.0 MB 00:32
(2/60): binutils-2.30-108.el8_5.1.x86_64.rpm 224 kB/s | 5.8 MB 00:26
(3/60): bpftool-4.18.0-348.7.1.el8_5.x86_64.rpm 232 kB/s | 7.7 MB 00:33
(55/60): qemu-kvm-block-ssh-4.2.0-59.module_el8 175 kB/s | 140 kB 00:00
(56/60): qemu-img-4.2.0-59.module_el8.5.0+1063+ 213 kB/s | 1.1 MB 00:05
(57/60): qemu-kvm-common-4.2.0-59.module_el8.5. 228 kB/s | 1.2 MB 00:05
(58/60): epel-release-8-16.el8.noarch.rpm 124 kB/s | 24 kB 00:00
(59/60): qemu-kvm-core-4.2.0-59.module_el8.5.0+ 221 kB/s | 3.5 MB 00:16
(60/60): selinux-policy-targeted-3.14.3-80.el8_ 230 kB/s | 15 MB 01:07
--------------------------------------------------------------------------------
Total 637 kB/s | 155 MB 04:08
Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x2F86D6A1:
Userid : "Fedora EPEL (8) <epel@fedoraproject.org>"
Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: libgcc-8.5.0-4.el8_5.x86_64 1/1
Upgrading : libgcc-8.5.0-4.el8_5.x86_64 1/117
Running scriptlet: libgcc-8.5.0-4.el8_5.x86_64 1/117
Upgrading : systemd-libs-239-51.el8_5.2.x86_64 2/117
Running scriptlet: systemd-libs-239-51.el8_5.2.x86_64 2/117
Upgrading : openssl-libs-1:1.1.1k-5.el8_5.x86_64 3/117
Running scriptlet: openssl-libs-1:1.1.1k-5.el8_5.x86_64 3/117
Running scriptlet: systemd-239-51.el8_5.2.x86_64 4/117
Upgrading : systemd-239-51.el8_5.2.x86_64 4/117
Running scriptlet: systemd-239-51.el8_5.2.x86_64 4/117
Upgrading : systemd-pam-239-51.el8_5.2.x86_64 5/117
Upgrading : libstdc++-8.5.0-4.el8_5.x86_64 6/117
Complete!
[root@nextcloud ~]#
安装 Apache
[root@nextcloud ~]# dnf install -y httpd
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:13:14 ago on Thu 21 Jul 2022 10:07:27 AM CST.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
httpd x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 1.4 M
Installing dependencies:
apr x86_64 1.6.3-12.el8 AppStream 129 k
apr-util x86_64 1.6.1-6.el8 AppStream 105 k
centos-logos-httpd
noarch 85.8-2.el8 base 75 k
httpd-filesystem noarch 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 39 k
httpd-tools x86_64 2.4.37-43.module_el8.5.0+1022+b541f3b1 AppStream 107 k
mod_http2 x86_64 1.15.7-3.module_el8.4.0+778+c970deab AppStream 154 k
Installing weak dependencies:
apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k
apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k
Enabling module streams:
httpd 2.4
Transaction Summary
================================================================================
Install 9 Packages
Total download size: 2.1 M
Installed size: 5.6 M
Downloading Packages:
(1/9): centos-logos-httpd-85.8-2.el8.noarch.rpm 180 kB/s | 75 kB 00:00
(2/9): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 191 kB/s | 25 kB 00:00
(3/9): apr-1.6.3-12.el8.x86_64.rpm 211 kB/s | 129 kB 00:00
(4/9): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 179 kB/s | 27 kB 00:00
(5/9): apr-util-1.6.1-6.el8.x86_64.rpm 120 kB/s | 105 kB 00:00
(6/9): httpd-filesystem-2.4.37-43.module_el8.5. 196 kB/s | 39 kB 00:00
(7
httpd-filesystem-2.4.37-43.module_el8.5.0+1022+b541f3b1.noarch
httpd-tools-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64
mod_http2-1.15.7-3.module_el8.4.0+778+c970deab.x86_64
Complete!
[root@nextcloud ~]#
Create a virtualhost in /etc/httpd/conf.d/nextcloud.conf
[root@nextcloud ~]# cd /etc/httpd/conf.d/
[root@nextcloud conf.d]# vi nextcloud.conf
[root@nextcloud conf.d]# cat nextcloud.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/nextcloud/
ServerName your.server.com
<Directory /var/www/html/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
</VirtualHost>
[root@nextcloud conf.d]# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@nextcloud conf.d]# systemctl start httpd
PHP安装
[root@nextcloud conf.d]# dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:25:38 ago on Thu 21 Jul 2022 10:07:27 AM CST.
remi-release-8.rpm 21 kB/s | 29 kB 00:01
Error:
Problem: conflicting requests
- nothing provides redhat-release >= 8.6 needed by remi-release-8.6-1.el8.remi.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
安装remi报错
[root@nextcloud yum.repos.d]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-8.rpm
获取http://rpms.famillecollet.com/enterprise/remi-release-8.rpm
警告:/var/tmp/rpm-tmp.PuFlac: 头V4 RSA/SHA256 Signature, 密钥 ID 5f11735a: NOKEY
错误:依赖检测失败:
redhat-release >= 8.6 被 remi-release-8.6-1.el8.remi.noarch 需要
[root@nextcloud yum.repos.d]# wget http://rpms.famillecollet.com/enterprise/remi-release-8.rpm
--2022-07-22 09:21:03-- http://rpms.famillecollet.com/enterprise/remi-release-8.rpm
正在解析主机 rpms.famillecollet.com (rpms.famillecollet.com)... 109.238.14.107, 2a00:c70:1:109:238:14:107:1
正在连接 rpms.famillecollet.com (rpms.famillecollet.com)|109.238.14.107|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
位置:http://rpms.remirepo.net/enterprise/remi-release-8.rpm [跟随至新的 URL]
--2022-07-22 09:21:04-- http://rpms.remirepo.net/enterprise/remi-release-8.rpm
正在解析主机 rpms.remirepo.net (rpms.remirepo.net)... 109.238.14.107, 2a00:c70:1:109:238:14:107:1
再次使用存在的到 rpms.famillecollet.com:80 的连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:29560 (29K) [application/x-rpm]
正在保存至: “remi-release-8.rpm”
remi-release-8.rpm 100%[===================>] 28.87K 56.6KB/s 用时 0.5s
2022-07-22 09:21:05 (56.6 KB/s) - 已保存 “remi-release-8.rpm” [29560/29560])
[root@nextcloud yum.repos.d]# rpm -ivh remi-release-8.rpm
警告:remi-release-8.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 5f11735a: NOKEY
错误:依赖检测失败:
redhat-release >= 8.6 被 remi-release-8.6-1.el8.remi.noarch 需要
[root@nextcloud yum.repos.d]# rpm -ivh remi-release-8.rpm --nodeps --force
警告:remi-release-8.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 5f11735a: NOKEY
Verifying... ################################# [100%]
准备中... ################################# [100%]
正在升级/安装...
1:remi-release-8.6-1.el8.remi ################################# [100%]
[root@nextcloud yum.repos.d]# ^C
[root@localhost www.linuxidc.com]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
要确认EPEL存储库的存在,请运行以下rpm命令。
[root@localhost www.linuxidc.com]# rpm -qa | grep epel
epel-release-8-7.el8.noarch
下来,运行以下命令以添加Remi存储库。
[root@localhost www.linuxidc.com]# dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
再次,以验证Remi存储库的存在,运行命令。
[root@localhost www.linuxidc.com]# rpm -qa | grep remi
remi-release-8.0-4.el8.remi.noarch
步骤2:在CentOS 8上安装PHP 7.4成功添加EPEL和Remi存储库后,执行以下命令以获取可用PHP模块流的列表
[root@localhost www.linuxidc.com]# dnf module list php
Remi’s Modular repository for Enterprise Linux 7.6 kB/s | 508 kB 01:06
Safe Remi’s RPM repository for Enterprise Linux 12 kB/s | 1.4 MB 01:54
上次元数据过期检查:0:00:34 前,执行于 2019年11月07日 星期四 00时20分37秒。
CentOS-8 - AppStream
Name Stream Profiles Summary
php 7.2 [d] common [d], devel, minimal PHP scripting language Remi’s Modular repository for Enterprise Linux 8 - x86_64
Name Stream Profiles Summary
php remi-7.2 common [d], devel, minimal PHP scripting language
php remi-7.3 common [d], devel, minimal PHP scripting language
php remi-7.4 common [d], devel, minimal PHP scripting language Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled 4d5cb994bfc851513f3336e9998d3496.png从上面的输出中,remi-7.4 是最新的PHP流,因此我们将启用模块流,如下所示。
[root@localhost www.linuxidc.com]# dnf module enable php:remi-7.4
上次元数据过期检查:0:00:38 前,执行于 2019年11月07日 星期四 00时21分47秒。
依赖关系解决。
软件包 架构 版本 仓库 大小
Enabling module streams:
httpd 2.4
php remi-7.4 事务概要
================================================================================确定吗?[y/N]:y
完毕!Switching module streams does not alter installed packages (see ‘module enable’ in dnf(8) for details) 2536149705268b32a69153cf8fd27ebe.png启用PHP remi-7.4模块后,即可使用以下命令继续并安装PHP。这还将安装许多其他软件包,例如Apache和Nginx模块。
[root@localhost www.linuxidc.com]# dnf install php php-cli php-common
要检查已安装的PHP版本,请运行命令
[root@localhost www.linuxidc.com]# php -v
PHP 7.4.0RC5 (cli) (built: Oct 29 2019 08:49:19) ( NTS )
Copyright © The PHP Group
Zend Engine v3.4.0-dev, Copyright © Zend Technologies
with Zend OPcache v7.4.0RC5, Copyright ©, by Zend Technologies
使用 PHP 7.4 设置 remirepo
更多细节可以在https://blog.remirepo.net/pages/Config-en
安装 Remi 存储库配置包的命令:
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
安装 yum-utils 软件包的命令(用于 yum-config-manager 命令):
dnf install yum-utils
您需要一个版本,这意味着从发行版中替换基本包。包与基本存储库具有相同的名称,即 php-*。在默认情况下启用的 remi-safe 存储库中提供了一些常见的依赖项。
您必须为 7.4 启用模块流:
dnf module reset php
dnf module install php:remi-7.4
dnf update
安装 PHP 和所需的模块
[root@nextcloud conf.d]# sudo dnf -y install dnf-utils
Last metadata expiration check: 1:17:48 ago on Thu 21 Jul 2022 10:07:27 AM CST.
Dependencies resolved.
==================================================================================
Package Arch Version Repo Size
==================================================================================
Installing:
php x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 1.5 M
php-gd x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 84 k
php-pdo x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 122 k
Installing weak dependencies:
php-fpm x86_64 7.2.24-1.module_el8.2.0+313+b04d0a66 AppStream 1.6 M
Enabling module streams:
nginx 1.14
php 7.2
Transaction Summary
==================================================================================
Install 20 Packages
Total download size: 9.2 M
Installed size: 31 M
Downloading Packages:
(1/20): jbigkit-libs-2.1-14.el8.x86_64.rpm 312 kB/s | 55 kB 00:00
0
(19/20): php-pecl-zip-1.15.3-1.module_el8.2.0+313 341 kB/s | 51 kB 00:00
(20/20): php-cli-7.2.24-1.module_el8.2.0+313+b04d 486 kB/s | 3.1 MB 00:06
----------------------------------------------------------------------------------
Total 1.3 MB/s | 9.2 MB 00:07
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_ 1/20
Installing : libXpm-3.5.12-8.el8.x86_64 2/20
Installing : php-cli-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 3/20
php-pecl-zip-1.15.3-1.module_el8.2.0+313+b04d0a66.x86_64
Complete!
安装数据库
[root@nextcloud conf.d]# dnf install -y mariadb mariadb-server
Repository extras is listed more than once in the configuration
Last metadata expiration check: 1:19:16 ago on Thu 21 Jul 2022 10:07:27 AM CST.
Dependencies resolved.
==================================================================================
Package Arch Version Repo Size
==================================================================================
Installing:
mariadb x86_64 3:10.3.28-1.module_el8.3.0+757+d382997d AppStream 6.0 M
perl-Socket x86_64 4:2.027-3.el8 base 59 k
perl-Storable x86_64 1:3.11-3.el8 base 98 k
perl-Term-ANSIColor
noarch 4.06-396.el8 base 46 k
perl-Mozilla-CA noarch 20160104-7.module_el8.3.0+416+dee7bcef AppStream 15 k
Enabling module streams:
mariadb 10.3
perl 5.26
perl-DBD-MySQL 4.046
perl-DBI 1.641
perl-IO-Socket-SSL
2.066
perl-libwww-perl 6.34
Transaction Summary
==================================================================================
Install 54 Packages
Total download size: 43 M
Installed size: 191 M
Downloading Packages:
(1/54): perl-Carp-1.42-396.el8.noarch.rpm 287 kB/s | 30 kB 00:00
(2/54): perl-Data-Dumper-2.167-399.el8.x86_64.rpm 338 kB/s | 58 kB 00:00
(3/54): perl-Exporter-5.72-396.el8.noarch.rpm 424 kB/s | 34 kB 00:00
perl-parent-1:0.237-1.el8.noarch
perl-podlators-4.11-1.el8.noarch
perl-threads-1:2.21-2.el8.x86_64
perl-threads-shared-1.58-2.el8.x86_64
Complete!
[root@nextcloud conf.d]# systemctl enable mariadb.service
Created 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.
[root@nextcloud conf.d]# systemctl start mariadb.service
[root@nextcloud conf.d]#
[root@nextcloud conf.d]# systemctl start mariadb.service
[root@nextcloud conf.d]# ^C
[root@nextcloud conf.d]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't 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):
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
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 MariaDB
root user without the proper authorisation.
Set root password? [Y/n] Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] n
... skipping.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] n
... skipping.
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] n
... skipping.
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
雷迪斯安装redis
[root@nextcloud conf.d]# dnf install -y redis
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:05:50 ago on Thu 21 Jul 2022 11:27:44 AM CST.
Dependencies resolved.
==================================================================================
Package Arch Version Repository Size
==================================================================================
Installing:
redis x86_64 5.0.3-5.module_el8.4.0+955+7126e393 AppStream 927 k
Enabling module streams:
redis 5
Transaction Summary
==================================================================================
Install 1 Package
Total download size: 927 k
Installed size: 3.2 M
Downloading Packages:
redis-5.0.3-5.module_el8.4.0+955+7126e393.x86_64. 551 kB/s | 927 kB 00:01
----------------------------------------------------------------------------------
Total 550 kB/s | 927 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: redis-5.0.3-5.module_el8.4.0+955+7126e393.x86_64 1/1
Installing : redis-5.0.3-5.module_el8.4.0+955+7126e393.x86_64 1/1
Running scriptlet: redis-5.0.3-5.module_el8.4.0+955+7126e393.x86_64 1/1
Verifying : redis-5.0.3-5.module_el8.4.0+955+7126e393.x86_64 1/1
Installed:
redis-5.0.3-5.module_el8.4.0+955+7126e393.x86_64
Complete!
[root@nextcloud conf.d]# systemctl enable redis.service
Created symlink /etc/systemd/system/multi-user.target.wants/redis.service → /usr/lib/systemd/system/redis.service.
[root@nextcloud conf.d]# systemctl start redis.service
[root@nextcloud conf.d]#
p安装nextcloud
[root@nextcloud html]# bzip2 -d nextcloud-24.0.3.tar.bz2
[root@nextcloud html]# tar -xvf nextcloud-24.0.3.tar
[root@nextcloud html]# cp -R nextcloud/ /var/www/html/
[root@nextcloud html]# mkdir /var/www/html/nextcloud/data
[root@nextcloud html]# chown -R apache:apache /var/www/html/nextcloud
[root@nextcloud html]# systemctl restart httpd.service
[root@nextcloud html]# firewall-cmd --zone=public --add-service=http --permanent
[root@nextcloud html]# firewall-cmd --reload