摘要: 20160831mysqlday3复习1.备份的分类2.冷备和热备的区别概念优点缺点冷备热备3.冷备的分类1)2)4.备份的两大要素1)2)5.备份的工具1)2)3)6.备份的过程1)tar2)lvm3)mysqldump7.还原的标准流程1)tar(物理备份恢复)2)mysqldump(逻辑备份恢... 阅读全文
posted @ 2016-08-31 23:28 希曼博客 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 20160830mysqlday2# 复习1.什么是mysql?1) 2) 3) 4) 5) 6) 7)2.存储引擎的概念3.知名的两大存储引擎MYISAM和INNODB的区别事务锁机制适用场景MYISAMINNODB4.红帽企业版rhel7.2默认的数据库软件版本为?5.mariadb5.5的服务... 阅读全文
posted @ 2016-08-31 23:27 希曼博客 阅读(319) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashread -p "input users: " Uif id $U &> /dev/nullthenecho "$U ok "elseuseradd $Uecho "$U add success"fi=======================... 阅读全文
posted @ 2016-08-31 23:26 希曼博客 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 20160829-mysqlday11.mysql的定义1)数据库管理系统管理数据,数据库当中的最小单位表文本方式保存:读文件从头开始,速度非常慢数据库:索引,(图片,视频)-----125000000-----读帖子---4000002)c/s----》b/s客户端浏览器麻烦方便安全稳定3)开放源... 阅读全文
posted @ 2016-08-31 23:26 希曼博客 阅读(201) 评论(0) 推荐(0) 编辑
摘要: ==========================backup=======================================#!/bin/bashDIR="/tmp/test"BAK="$DIR/backup/"SRC="$DIR/source/"T... 阅读全文
posted @ 2016-08-31 23:25 希曼博客 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1.samba 作用:windows unix 共享2.服务端 samba samba-common 客户端 samba samba-common samba-client服务端的主配置 /etc/samba/smb.conf两种1.本地用户用户名 /etc/pas... 阅读全文
posted @ 2016-08-31 23:23 希曼博客 阅读(123) 评论(0) 推荐(0) 编辑
摘要: umask ~/.bashrc设置别名: /home/student/.bashrc配置yum : /etc/yum.repos.d/server.repo #cp server.repo public.repo日志:rsyslog/etc/rsyslog.conf\计划任务:软件 at 启动脚本... 阅读全文
posted @ 2016-08-31 23:23 希曼博客 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: 破解7的密码1.linux16 rd.break2.mount -o remount,rw /sysroot3.chroot /sysroot4.passwd5.touch /.autorelabelexitexit7版本grub菜单加密1.grub2-mkpasswd-pbkdf22.vi /e... 阅读全文
posted @ 2016-08-31 23:22 希曼博客 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ntp1.作用:同步时间.2.原理:分层式结构.3.软件:el6:ntp el7:chrony4.el6主配置文件 /etc/ntp.confrestrict 172.25.0.0 mask 255.255.255.0 -->允许谁来和我做同步server 172.25.0.10 -... 阅读全文
posted @ 2016-08-31 23:21 希曼博客 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1.nfs网络文件系统 -->适用范围 unix unix共享的访问方式原理:nfs将对应端口号注册给本地rpc,客户端通过111端口链接到rpc获取相应的nfs注册的随即端口号注意:服务端rpc重启了,nfs必须重启。 nfs重启,rpc不需要重启2.软件rpc --> rp... 阅读全文
posted @ 2016-08-31 23:20 希曼博客 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ===========================================创建LVM 1.创建物理卷 分区 (逻辑分区|主分区) pvcreate /dev/vdb1 pvcreate /dev/vdb2 /dev/vdb3 pvs pvdisplay 2.创建卷组 ... 阅读全文
posted @ 2016-08-31 23:19 希曼博客 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 服务1.服务名 守护进程名at atdcron crond2.基于daemon可以分为两类 1) stand alone daemon 独立启动服务 2) super daemon 超级服务3. stand alone daemon 1) 什么是独立启动的服务: ... 阅读全文
posted @ 2016-08-31 23:18 希曼博客 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 虚拟主机的操作步骤2.2版本vi /etc/httpd/conf/httpd.confNameVirtualHost *:80vi /etc/httpd/conf.d/www.efg.com.conf ServerAdmin root@efg.com DocumentRoot /var/... 阅读全文
posted @ 2016-08-31 23:17 希曼博客 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 网络拓卜结构让我们很快直观的对当前环境的网络结构进行了解总线型,星型,环型,蜂窝型CCNA>//当前处于用户模式>enable //进入特权模式的命令#//当前处于特权模式#show running-config//查看当前设备的内存配置文件#show mac-address-table//查看ma... 阅读全文
posted @ 2016-08-31 23:16 希曼博客 阅读(212) 评论(0) 推荐(0) 编辑
摘要: rht-vmctl start all(rhel6)//打开当前课程的所有虚拟机或者某个虚拟机rht-vmctl stop rhel6//关闭rhel6虚拟机rht-vmctl poweroff rhel6//关闭rhel6虚拟机的电源rht-vmctl reset ... 阅读全文
posted @ 2016-08-31 23:15 希曼博客 阅读(200) 评论(0) 推荐(0) 编辑