2017年10月8日
第1章 awk命令基础 1.1 awk命令执行过程 1.2 awk中模式与动作 1.2.1 在awk眼中的行与列 1.3 awk默认有一把“菜刀” -F 指定分隔符 -vFS FS == field sep 每一列的分隔符 OFS ==output field sep 输出每一列的时候使用的分隔符 1.4 awk的内置变量 <td style="width: 9.0cm; border-top: solid white 1.0pt; border-left: none; border-bottom: solid white 1.0pt; border-right: none; background: #9BBB59; padding: 0cm 5.4pt 0cm 5.4pt;" valign="top" width="340"> <p> <strong><span style="font-family: 新宋体; times new roman"4times new roman"; color: whit……
阅读全文
2017年10月8日
第1章 shell中的特殊变量 1.1 $# 1.1.1 【示例】脚本内容 1.2 $? 1.2.1 【示例】$?的使用 1.3 【了解】编译安装的过程 1.4 如何向变量中存放内容—【read<span style=“font-family: 新宋体; times new roman"4times new roman”;background: aqua;">命令】 1.4.1 read命令使用 1.4.2 让执行命令后出现提示信息 1.4.3 设置等待(超时)的……
阅读全文
2017年10月8日
第1章 磁盘管理 1.1 必须要了解的。 1.1.1 ps aux 命令中 RSS 与VSZ的含义 vsz 进程占用的虚拟的内存大小(物理内存+swap) 1.1.2 top命令的参数 M 按照内存使用率排序 P 按照cpu的使用率排序 1.1.3 htop 命令的安装方法 要配置 epel源 http://mirrors.aliyun.com 1.2 磁盘分区之parted + gpt 1.2.1 fdisk 与 parted 的区别 fdisk mbr 分区表 硬盘容量小于2TB parted gpt 分……
阅读全文
2017年10月8日
<td width="132" style="width:99.25pt;border-top:solid #4F81BD 1.0pt;border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;background:#4F81BD;padding:0cm 5.4pt 0cm 5.4pt"> <p align="center" style="text-align:center;"> <strong><span style="font-family:新宋体;Times New Roman";Times New Roman";color:white;">数量</span></strong> </p> </td> <td width="180" style="width:134.65pt;border-top:solid #4F81BD 1.0pt;border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;background:#4F81BD;padding:0cm 5.4pt 0cm 5.4pt"> <p align="center" style="text-align:center;"> <strong><span style=&quo……
阅读全文
2017年10月8日
第1章 YUM源 1.1 什么是yum源 1.2 查看系统中有什么yum源 1.3 指定一个国内的yum源地址 aliyun 修改为阿里云的yum源 1.3.1 操作前备份 1.3.2 下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 CentOS 6 CentOS 7 1.3.3 生成本地缓存 1.4 增加一个epel源 1.4.1 epel源时干什么的 1.4.2 添加上一个a……
阅读全文
2017年10月8日
第1章 查看ip的其他方法 ip 1.1 ip address == ip a 1.2 ip address show eth0 == ip a s eth0 1.3 ip route == ip r 第2章 vi/vim常见的错误 2.1 swap file exist 错误 2.1.1 产生原因 2.1.2 错误信息 2.1.3 解决办法 2.1.4 6.x之前版本解决办法 第3章 用户管理 3.1 用户的分类 3.1.1 两种常用的shell /bin/bash 普通用户默认的命令解释器 /sbin/nologin 傀儡用户虚拟用户使用 3.2 与用户有关的配置文……
阅读全文
2017年10月8日
第1章 练习题 1.1 每天晚上 12 点,打包站点目录/var/www/html 备份到/data 目录下(最好每次备份按时间生成不同的备份包) 1.1.1 测试命令 1.1.2 写入脚本中 1.1.3 测试脚本 1.1.4 写入定时任务 1.1.5 检查执行结果 1.2 每周 六、日 上午 9:00和下午 17: 00 上班(执行程序/server/script/clsn.s……
阅读全文
2017年9月30日
第1章 企业 架构规划 1.1 架构图 1.1.1 用户访问网站组成 <td style="width: 177.2pt; border-top-width: 1pt; border-top-color: white; border-left: none; border-bottom-width: 1pt; border-bottom-color: white; border-right: none; background: #9bbb59; padding: 0cm 5.4pt;" valign="top" width="236"> <p class="MsoNormal" style="text-align: center; mso-yfti-cnfc: 1;" align="center"> <strong><span style="font-family: '微软雅黑',sans-serif; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; color: white; mso-themecolor: background1;">作用</span></strong> </p> </td> <td style="width: 218.25pt; border-top-width: 1pt; border-right-width:……
阅读全文
2017年9月27日
第1章 linux无法上网 2)再ping一个公网ip , 第2章 系统的负载/cpu/内存太高了 第3章 定时任务 3.1 每分钟显示当前系统的日期 年-月-日_小时 ,把这个时间追加到 /tmp/date.log 3.1.1 .先运行命令 3.1.2 命令放入脚本中 3.1.3 测试脚本 3.1.4 写到定时任务 3.1.5 查看你定时任务的执行日历 3.1.6 检查结果 3.2 命令中的sh与bash 第……
阅读全文
2017年9月26日
第1章 软件查询 1.1 查询软件是否安装 1.2 查看查询是否正在运行 1.3 安装crond的方法 1.3.1 crond属于哪里 1.3.2 查询软件所属软件包 1.3.3 如何查看软件包里的内容 1.3.4 如何查看一个安装的软件 rpm 如何查询软件包的内容 yum 安装不上的,可能是软件包的一部分 查看 crond 属于哪个软件包,查询时要使用绝对路径 1.4 查询ifconf……
阅读全文