12 2019 档案
摘要:1、自建yum仓库,分别为网络源和本地源 1.1 自建网络源 yum 仓库 1. 安装 httpd 服务 yum install httpd 2. 启动httpd 服务 systemctl start httpd systemctl enable httpd : 设置开机启动 3. 关闭防火墙,se
阅读全文
摘要:1、查找/etc目录下大于1M且类型为普通文件的所有文件 find /etc/ -size +1M -a -type f -ls 2、打包/etc/目录下面所有conf结尾的文件,压缩包名称为当天的时间,并拷贝到/usr/local/src目录备份。 find /etc/ -name "*.conf
阅读全文
摘要:第四周作业未完成两道题目补充: 4、编写脚本 createuser.sh,实现如下功能:使用一个用户名做为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等 信息 [ $# = 0 ] && echo -e "please input user.sh username
阅读全文