近來,根據阿里雲快速搭建網站的教程去操作,在部署環境時執行‘ yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql’報錯,錯誤如下:
[root@iZ0jlefpaeqcxkwjw3gw21Z ~]# yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql
Last metadata expiration check: 2:19:13 ago on Fri 24 Dec 2021 08:02:11 AM CST.
No match for argument: mod_auth_mysql
Error: Unable to find a match: mod_auth_mysql
解決辦法:
1. yum -y install httpd httpd-manual mod_ssl mod_perl
2. yum -y install httpd httpd-devel
執行完上述代碼即可成功安裝Apache及其擴展包。
可以執行 httpd -v進行檢驗,若返回版本號即為安裝成功,如下:
[root@iZ0jlefpaeqcxkwjw3gw21Z ~]# httpd -v
Server version: Apache/2.4.37 ()
Server built: Oct 13 2021 17:03:20
————————————————
原文鏈接:https://blog.csdn.net/weixin_45176132/article/details/122129215
