在 Amazon Linux (RHEL) 上安裝 OpenLiteSpeed Web 伺服器
我只是想在我的 Amazon Linux 2 實例上安裝 OLS,但我在開始和所有最後步驟都收到了錯誤。以下是關於:
- 當我添加指南儲存庫推薦時,我收到錯誤:
failure: repodata/repomd.xml from litespeed: [Errno 256] No more mirrors to try.
http://rpms.litespeedtech.com/centos/8/x86_64/repodata/x86_64/repodata/repomd.xml:
$$ Errno 14 $$HTTP 錯誤 404 - 未找到
要修復它,我只需將連結http://rpms.litespeedtech.com/centos/上的 $releaseserver 替換為 8(我可以在http://rpms.litespeedtech.com/centos/看到) $ releasever/ $ basearch/ 和…它的工作原理!但在那之後,當我嘗試安裝時,我收到這些依賴錯誤:
Loaded plugins: langpacks, priorities, update-motd 191 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package lsphp73.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: lsphp73-common(x86-64) = 7.3.18-1.el8 for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libssl.so.1.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libcrypto.so.1.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libargon2.so.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 ---> Package openlitespeed.x86_64 0:1.6.14-1.el8 will be installed --> Processing Dependency: lsphp73-xml for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-process for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-pdo for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-opcache for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-mysqlnd for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-mcrypt for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-mbstring for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-imap for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: lsphp73-gd for package: openlitespeed-1.6.14-1.el8.x86_64 --> Processing Dependency: libnsl for package: openlitespeed-1.6.14-1.el8.x86_64 --> Running transaction check ---> Package lsphp73.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libargon2.so.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 ---> Package lsphp73-common.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-common-7.3.18-1.el8.x86_64 ---> Package lsphp73-gd.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libpng16.so.16(PNG16_0)(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libwebp.so.7()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libpng16.so.16()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libXpm.so.4()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libX11.so.6()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 ---> Package lsphp73-imap.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc-client.so.2007()(64bit) for package: lsphp73-imap-7.3.18-1.el8.x86_64 ---> Package lsphp73-mbstring.x86_64 0:7.3.18-1.el8 will be installed ---> Package lsphp73-mysqlnd.x86_64 0:7.3.18-1.el8 will be installed ---> Package lsphp73-opcache.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-opcache-7.3.18-1.el8.x86_64 ---> Package lsphp73-pdo.x86_64 0:7.3.18-1.el8 will be installed ---> Package lsphp73-pecl-mcrypt.x86_64 0:1.0.3-1.el8.7.3 will be installed --> Processing Dependency: libmcrypt.so.4()(64bit) for package: lsphp73-pecl-mcrypt-1.0.3-1.el8.7.3.x86_64 ---> Package lsphp73-process.x86_64 0:7.3.18-1.el8 will be installed ---> Package lsphp73-xml.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 --> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 --> Processing Dependency: libxslt.so.1()(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 --> Processing Dependency: libexslt.so.0()(64bit) for package: lsphp73-xml-7.3.18-1.el8.x86_64 ---> Package openlitespeed.x86_64 0:1.6.14-1.el8 will be installed --> Processing Dependency: libnsl for package: openlitespeed-1.6.14-1.el8.x86_64 ---> Package openssl11-libs.x86_64 1:1.1.1c-3.amzn2.0.1 will be installed --> Running transaction check ---> Package libX11.x86_64 0:1.6.7-2.amzn2 will be installed --> Processing Dependency: libX11-common >= 1.6.7-2.amzn2 for package: libX11-1.6.7-2.amzn2.x86_64 --> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.7-2.amzn2.x86_64 ---> Package libXpm.x86_64 0:3.5.12-1.amzn2.0.2 will be installed ---> Package libc-client.x86_64 0:2007f-16.el7 will be installed ---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed ---> Package libxslt.x86_64 0:1.1.28-5.amzn2.0.2 will be installed ---> Package lsphp73.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libargon2.so.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 ---> Package lsphp73-common.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-common-7.3.18-1.el8.x86_64 ---> Package lsphp73-gd.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libpng16.so.16(PNG16_0)(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libwebp.so.7()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libpng16.so.16()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 ---> Package lsphp73-opcache.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-opcache-7.3.18-1.el8.x86_64 ---> Package openlitespeed.x86_64 0:1.6.14-1.el8 will be installed --> Processing Dependency: libnsl for package: openlitespeed-1.6.14-1.el8.x86_64 --> Running transaction check ---> Package libX11-common.noarch 0:1.6.7-2.amzn2 will be installed ---> Package libxcb.x86_64 0:1.12-1.amzn2.0.2 will be installed --> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.12-1.amzn2.0.2.x86_64 ---> Package lsphp73.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libargon2.so.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 ---> Package lsphp73-common.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-common-7.3.18-1.el8.x86_64 ---> Package lsphp73-gd.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libpng16.so.16(PNG16_0)(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libwebp.so.7()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libpng16.so.16()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 ---> Package lsphp73-opcache.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-opcache-7.3.18-1.el8.x86_64 ---> Package openlitespeed.x86_64 0:1.6.14-1.el8 will be installed --> Processing Dependency: libnsl for package: openlitespeed-1.6.14-1.el8.x86_64 --> Running transaction check ---> Package libXau.x86_64 0:1.0.8-2.1.amzn2.0.2 will be installed ---> Package lsphp73.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 --> Processing Dependency: libargon2.so.1()(64bit) for package: lsphp73-7.3.18-1.el8.x86_64 ---> Package lsphp73-common.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-common-7.3.18-1.el8.x86_64 ---> Package lsphp73-gd.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libpng16.so.16(PNG16_0)(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libwebp.so.7()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 --> Processing Dependency: libpng16.so.16()(64bit) for package: lsphp73-gd-7.3.18-1.el8.x86_64 ---> Package lsphp73-opcache.x86_64 0:7.3.18-1.el8 will be installed --> Processing Dependency: libc.so.6(GLIBC_2.27)(64bit) for package: lsphp73-opcache-7.3.18-1.el8.x86_64 ---> Package openlitespeed.x86_64 0:1.6.14-1.el8 will be installed --> Processing Dependency: libnsl for package: openlitespeed-1.6.14-1.el8.x86_64 --> Finished Dependency Resolution Error: Package: lsphp73-opcache-7.3.18-1.el8.x86_64 (litespeed) Requires: libc.so.6(GLIBC_2.27)(64bit) Error: Package: lsphp73-7.3.18-1.el8.x86_64 (litespeed) Requires: libargon2.so.1()(64bit) Error: Package: lsphp73-gd-7.3.18-1.el8.x86_64 (litespeed) Requires: libwebp.so.7()(64bit) Error: Package: openlitespeed-1.6.14-1.el8.x86_64 (litespeed) Requires: libnsl Error: Package: lsphp73-common-7.3.18-1.el8.x86_64 (litespeed) Requires: libc.so.6(GLIBC_2.27)(64bit) Error: Package: lsphp73-gd-7.3.18-1.el8.x86_64 (litespeed) Requires: libpng16.so.16(PNG16_0)(64bit) Error: Package: lsphp73-7.3.18-1.el8.x86_64 (litespeed) Requires: libc.so.6(GLIBC_2.27)(64bit) Error: Package: lsphp73-gd-7.3.18-1.el8.x86_64 (litespeed) Requires: libpng16.so.16()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
我不知道如何解決它。感謝您的回复。
您正在嘗試在 Amazon Linux 2 上安裝適用於 RHEL/CentOS 的軟體包。這些軟體包不兼容,因為 Amazon Linux 2 與 RHEL/CentOS 不兼容,並且不會執行為 RHEL/CentOS 打包的軟體,除非發生意外。
要解決此問題,請使用 CentOS 8 或 RHEL 8,這是您嘗試安裝的軟體包的正確發行版。不要使用亞馬遜 Linux。
需要 50 聲望……所以不是評論,這是我的“答案”。
邁克爾是對的,但答案可能有點令人困惑。這只是一個澄清。從 OLS 儲存庫安裝 OLS 指南不適用於“Amazon Linux”或“Amazon Linux 2”。您的作業系統版本是問題所在。您可以在 AWS/EC2 上執行該安裝過程……只需使用不同的 Linux 作業系統開始 - 比如 Ubuntu 或 CentOS。
Amazon Linux (2) 是一個不同的 Linux 發行版,即使基於 CentOS,它也不是 CentOS。