今天免费申请三个月阿里云服务器,尝试运行小程序,按照给的教程,安装Nginx时遇到安装失败,搜索好久没有解决,问题如下:
Last metadata expiration check: 0:07:12 ago on Wed 03 Jan 2024 03:32:02 PM CST.
All matches were filtered out by exclude filtering for argument: nginx
Error: Unable to find a match: nginx
一直找不到Nginx,最后在一个评论区找到解决办法:
找到这个文件:/etc/yum.conf ,将 exclude 这一行注释掉就行了。
------------------------------------------
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
exclude=httpd nginx php mysql mairadb python-psutil python2-psutil
按照此方法,错误解除: