会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hnkfscott
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2020年9月29日
第十八周
摘要: 1、实现基于MYSQL验证的vsftpd虚拟用户访问 配置Mysql服务器 # 安装mariadb数据库 [root@mysql ~]# yum install mariadb-server [root@mysql ~]# mysql Welcome to the MariaDB monitor.
阅读全文
posted @ 2020-09-29 09:33 scott_Lsh
阅读(136)
评论(0)
推荐(0)
2020年8月17日
第十七周
摘要: 1、使用ansible的playbook实现自动化安装httpd 三台主机:系统都是centos 7.6,需要先配置ssh的免密登录 ansible:192.168.10.128 apache1:192.168.10.130 apache2:192.168.10.131 安装软件包 在ansible
阅读全文
posted @ 2020-08-17 23:29 scott_Lsh
阅读(66)
评论(0)
推荐(0)
2020年8月12日
第十六周
摘要: 1、编写脚本,支持让用户自主选择,使用mysqldump还是xtraback全量备份。 [root@master ~]# cat backup.sh #!/bin/bash PS3="Please choose a backup method:" select method in mysqldump
阅读全文
posted @ 2020-08-12 00:01 scott_Lsh
阅读(144)
评论(0)
推荐(0)
2020年7月26日
第十五周
摘要: 1、 导入hellodb.sql生成数据库 # 导入hellodb_innodb.sql数据库文件,生成hellodb数据库 [root@centos7 ~]#mysql -uroot -p123456 < hellodb_innodb.sql (1) 在students表中,查询年龄大于25岁,且
阅读全文
posted @ 2020-07-26 22:37 scott_Lsh
阅读(110)
评论(0)
推荐(0)
2020年7月19日
第十四周
摘要: 1、简述DNS服务器原理,并搭建主-辅服务器。 DNS服务器原理 DNS服务器会同时监听tcp和udp的53端口,在客户端解析域名时,使用udp的53端口;在主从服务器同步中tcp和udp都要用到。 解析域名的方式有两种:迭代查询和递归查询,默认使用递归查询 迭代查询:由客户端自己一步一步的查询结果
阅读全文
posted @ 2020-07-19 20:24 scott_Lsh
阅读(152)
评论(0)
推荐(0)
2020年7月12日
第十三周
摘要: 1、配置chrony服务,实现服务器时间自动同步 1、检查软件包 centos7已经预安装了chrony软件包,centos6默认没有安装,需要使用epel源安装,我使用的是centos7系统 使用一台centos7作为ntpserver,ip地址为192.168.10.130 2、检查时区是否正确
阅读全文
posted @ 2020-07-12 22:03 scott_Lsh
阅读(134)
评论(0)
推荐(0)
2020年7月5日
第十二周
摘要: 1、编写脚本/root/bin/checkip.sh,每5分钟检查一次,如果发现通过ssh登录失败 次数超过10次,自动将此远程IP放入Tcp Wrapper的黑名单中予以禁止防问 [root@centos7 bin]#cat checkip.sh #!/bin/bash touch /etc/ho
阅读全文
posted @ 2020-07-05 21:17 scott_Lsh
阅读(101)
评论(0)
推荐(0)
2020年6月28日
第十一周
摘要: 1、编写脚本selinux.sh,实现开启或禁用SELinux功能 [root@centos7 scripts]# cat selinux.sh #!/bin/bash . /etc/init.d/functions STATUS=`getenforce` start(){ [ $STATUS !=
阅读全文
posted @ 2020-06-28 21:13 scott_Lsh
阅读(136)
评论(0)
推荐(0)
2020年6月21日
第十周
摘要: 1、编写脚本,接受二个位置参数,magedu和/www,判断系统是否有magedu,如果没有则自动创建magedu用户,并自动设置家目录为/www [root@centos7 ~]#cat create.sh #!/bin/bash [ $# -ne 2 ] && { echo Usage:$0 u
阅读全文
posted @ 2020-06-21 21:00 scott_Lsh
阅读(163)
评论(0)
推荐(0)
2020年6月14日
第九周
摘要: 1、显示统计占用系统内存最多的进程,并排序。 使用top命令查看,输入M可以按照内存从大到小排序 使用ps aux排序 # 下面仅显示了使用内存最多的前五个进程 [root@centos7 ~]# ps aux | sort -nr -k4 | head -5 named 48004 0.0 3.8
阅读全文
posted @ 2020-06-14 21:25 scott_Lsh
阅读(190)
评论(0)
推荐(0)
1
2
下一页
公告