摘要: 导入hellodb.sql生成数据库 mysql> /opt/hellodb_innodb.sql mysql> show tables; + + | Tables_in_hellodb | + + | classes | | coc | | courses | | scores | | stude 阅读全文
posted @ 2022-03-15 20:27 比奇堡的朋友 阅读(38) 评论(0) 推荐(0)
摘要: 1. 二进制安装MySQL5.7 Mysql5.7下载地址:https://dev.mysql.com/downloads/mysql/5.7.html#downloads 创建mysql用户和组 [root@localhost ~]# groupadd mysql [root@localhost 阅读全文
posted @ 2022-03-14 16:29 比奇堡的朋友 阅读(101) 评论(0) 推荐(0)
摘要: 1、编写脚本实现登陆远程主机。(使用expect和shell脚本两种形式)。 expect实现: [root@localhost ~]# cat ssh_expect.sh #!/usr/bin/expect IP=192.168.237.18 PASS=000000 spawn ssh root@ 阅读全文
posted @ 2022-01-16 16:48 比奇堡的朋友 阅读(36) 评论(0) 推荐(0)
摘要: 1、简述osi七层模型和TCP/IP五层模型 OSI参考模型和TCP/IP分层模型: OSI七层参考模型: 由下至上分别为:物理层、数据链路层、网络层、传输层、会话层、表示层、应用层。 物理层:位于OSI参考模型的最底层,提供一个物理链接,所传数据单位是比特,网卡,集线器,中继器都是工作在物理层上的 阅读全文
posted @ 2021-12-20 11:23 比奇堡的朋友 阅读(63) 评论(0) 推荐(0)
摘要: 1. 自建yum仓库,分别为网络源和本地源 创建本地源 首先先把版本相应的镜像挂载上去 [root@localhost ~]# mount /dev/sr0 /mnt/ mount: /mnt: WARNING: device write-protected, mounted read-only. 阅读全文
posted @ 2021-12-13 22:20 比奇堡的朋友 阅读(114) 评论(0) 推荐(0)
摘要: 1、统计出/etc/passwd文件中其默认shell为非/sbin/nologin的用户个数,并将用户都显示出来 [root@localhost ~]# grep -v '/sbin/nologin' /etc/passwd root:x:0:0:root:/root:/bin/bash sync 阅读全文
posted @ 2021-12-06 20:02 比奇堡的朋友 阅读(46) 评论(0) 推荐(0)
摘要: 1、显示/etc目录下,以非字母开头,后面跟了一个字母以及其它任意长度任意字符的文件或目录 [root@localhost ~]# ls -a /etc/[^[:alpha:]][[:alpha:]]* /etc/5davv /etc/1dinn: . .. 2、复制/etc目录下所有以p开头,以非 阅读全文
posted @ 2021-11-25 16:19 比奇堡的朋友 阅读(41) 评论(0) 推荐(0)