摘要: 1、sudo yum install 安装软件经常需要切换root用户或者sudo。 没有设置sudo报错: xx is not in the sudoers file. This incident will be reported. 2、centos设置sudo su - # 切换root vis 阅读全文
posted @ 2023-09-18 15:21 我的天啊~ 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1、切用户、切到原文件件 su root cd /etc/yum.repos.d/ 2、下载源文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 3、重命名 mv CentOS-Base.repo CentOS-Base.repo.bak mv 阅读全文
posted @ 2023-09-18 14:13 我的天啊~ 阅读(284) 评论(0) 推荐(0) 编辑