Linux-3作业练习
1、自建yum仓库,分别为网络源和本地源
请移步: yum源配置
2、编译安装http2.4,实现可以正常访问,并将编译步骤和结果提交。
请移步:http2.4编译安装 总结参照https://www.cnblogs.com/lyj1023/p/16181603.html
3、利用sed 取出ifconfig命令中本机的IPv4地址
[root@centos8~]$ifconfig|sed -nr '2s/^[^0-9]+([0-9.]{7,15}).*/\1/p' 10.0.0.8 [root@centos8~]$ifconfig|sed -nr '2s/^[^0-9]+([0-9.]+).*/\1/p' 10.0.0.8
4、删除/etc/fstab文件中所有以#开头,后面至少跟一个空白字符的行的行首的#和空白字符
[root@centos8~]$sed -r '/^[#[:space:]]{1,}$/d' /etc/fstab # /etc/fstab # Created by anaconda on Mon Apr 18 10:31:22 2022 # Accessible filesystems, by reference, are maintained under '/dev/disk/'. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. # After editing this file, run 'systemctl daemon-reload' to update systemd # units generated from this file. UUID=578e255d-d098-4f3c-8723-be0ec693dc82 / xfs defaults 0 0 UUID=d1918dd5-8b34-47ee-8b82-bf0af3f171a8 /boot ext4 defaults 1 2 UUID=0b950f5b-2bce-49a3-940b-d21f4519503b /data xfs defaults 0 0 UUID=03bc96b3-1bf4-4e88-be0f-48e845b82855 none swap defaults 0 0
5、处理/etc/fstab路径,使用sed命令取出其目录名和基名
[root@centos8~]$echo "/etc/fstab"| sed -r 's@(^/.*/)([^/]+/?)@\1@' /etc/ [root@centos8~]$echo "/etc/fstab"| sed -r 's@(^/.*/)([^/]+/?)@\2@' fstab [root@centos8~]$
6、列出ubuntu软件管理工具apt的一些用法(自由总结)
请移步: Linux软件管理,在最后
7、简述osi七层模型和TCP/IP五层模型 8、总结描述TCP三次握手四次挥手 9、描述TCP和UDP区别
10、网卡绑定bond0的实现
请移步: bond0实现实验 总结参照https://www.cnblogs.com/lyj1023/p/16182647.html