- 博客(5)
- 收藏
- 关注
原创 is not in the sudoers file. This incident will be reported.解决方法
解决方法 1、登录root su --login 2、 进入etc 文件夹 cd /etc 3、 修改sudoers文件为可读可写 chmod +777 sudoers 4 、修改sudoers 文本 vi sudoers 按i 插入找到下面一行内容添加 “wang ALL=(ALL) ALL” ## Allow root to run any commands anywhere root ALL=(ALL) ALL wang ALL=(ALL)
2020-06-18 00:50:55
4438
1
原创 每天记录一个小知识_centos7更换阿里源
centos 7 更换阿里源 本地备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak 获取阿里源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos- 更新cache yum makecache 安装 yum -y update ...
2020-06-08 00:32:51
200
转载 bash流程控制
条件判断 条件判断是程序执行时,根据不同条件执行不通的程序语句。分为单分支跟多分支。 分支结构 单分支 if if…then 满足条件执行 fi 结束 语法 ## if 表达式 ;then 操作 fi ## case ...
2018-08-12 01:55:31
262
转载 shell 基本介绍
shell 介绍 输入》Linux shell 》Linux操作系统》计算机硬件 》系统进程 》输出 常见 shell bourne shell , C shell ,Korn shell 命令 查看当前shell echo $0 bash 切换到bash 交换模式 bash bash 介绍 bash 是...
2018-08-09 12:03:56
209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅