Skip to content

Instantly share code, notes, and snippets.

@YangShunGit
Last active February 22, 2022 07:30
Show Gist options
  • Save YangShunGit/c55591e33366e2dd01dfd1165a46e5cf to your computer and use it in GitHub Desktop.
Save YangShunGit/c55591e33366e2dd01dfd1165a46e5cf to your computer and use it in GitHub Desktop.
CentOS解决yum命令出现doesn't have enough cached的问题
  1. yum install git https://www.jianshu.com/p/59104a61fe18

有效

2.yum install nodejs [root@localhost ~]# yum install nodejs 已加载插件:fastestmirror Loading mirror speeds from cached hostfile

  • base: mirrors.aliyun.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com 没有可用软件包 nodejs。 错误:无须任何处理
  1. curl -fsSL https://rpm.nodesource.com/setup_17.x | bash - 报错: curl: (35) Peer reports incompatible or unsupported protocol version. 解决方法: yum update -y nss curl libcurl

4.curl: (60) Peer's Certificate issuer is not recognized. 解决办法: https://blog.csdn.net/u012375924/article/details/108832392

5、安装nignx,没有安装包 解决办法:
https://blog.csdn.net/qq_32953079/article/details/81975160
运行nginx : ./nginx
查看进程:ps -ef|grep nginx
杀掉进程:kill -QUIT 45191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment