1.Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No U...
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
CentOS-8 - AppStream 46 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)
服务器是 CentOS
解决办法
自2022年1月31日起,CentOS团队从官方镜像中移除CentOS 8的所有包,但软件包仍在官方镜像上保留一段时间。现在被转移到https://vault.centos.org。如需继续运行旧CentOS 8,可以在/etc/yum.repos中更新repos.d,使用vault.centos.org代替mirror.centos.org
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
成功
参考:
https://techglimpse.com/failed-metadata-repo-appstream-centos-8/https://blog.csdn.net/watson2017/article/details/122887710
netstat -tnlp|grep nginx 然后看到一行记录,复制最后的一个数据(进程ID) ps -aux |grep 进程ID 就可以看到 NINGX的启动方式了。 如果你现在不知道,并且没重动NIGNX,则可以 find /|grep nginx.conf