摘要: forfiles -p "$ddd" /m *.* /d -1 /c "cmd /C echo @file" > $ddd\%date:~0,4%-%date:~5,2%-%date:~8,2%-bat.log forfiles -p "$ddd" /m *.* /d -1 /c " cmd /C 阅读全文
posted @ 2020-04-27 10:18 wilson'blog 阅读(717) 评论(0) 推荐(0)
摘要: mysql:grant命令与flush privileges 阿猫阿狗Hakuna关注 2019.08.07 17:15:26字数 495阅读 85 grant用来给用户赋权,在执行grant后,一定要执行flush privileges吗? 这里先创建一个用户: create user 'ua'@ 阅读全文
posted @ 2020-04-21 11:43 wilson'blog 阅读(321) 评论(0) 推荐(0)
摘要: mysql的权限1.用户的定义 用户名@'白名单'username@'%'username@'localhost'username@'10.0.0.%'username@'10.0.0.5%'username@'10.0.0.0/255.255.254.0'username@'10.0.%.%'2. 阅读全文
posted @ 2020-04-21 11:22 wilson'blog 阅读(129) 评论(0) 推荐(0)
摘要: 1.mysql的2种连接方式TCP/IP 方式(远程 本地):mysql -uroot -ppassword -h 10.0.0.51 -P3306Socket方式(仅本地):mysql -uroot -ppassword -s /tmp/mysql.sock2.关于实例 实例=Mysqld + M 阅读全文
posted @ 2020-04-21 09:49 wilson'blog 阅读(128) 评论(0) 推荐(0)
摘要: 1.数据库的分类 RDBMS 特点:二维表,有严格的行列结构及约束条件,支持更负责的查询 产品: oracle MySQL PG MSSQL NoSQL 特点: 没有严格的行列结构,可伸缩性,扩展性,高性能产品: 键值对(KV): Redis Memcache Document :MongoDB 搜 阅读全文
posted @ 2020-04-15 16:24 wilson'blog 阅读(355) 评论(0) 推荐(0)
摘要: docker里的centos 安装sshd服务 sa 发布于 2018-01-12 分类:未分类 阅读(3405) 评论(0) 1、 yum install openssh-server 2、启动sshd 报错 需要绝对路径 [root@0463226081ca src]# sshd sshd re 阅读全文
posted @ 2020-03-09 16:53 wilson'blog 阅读(858) 评论(0) 推荐(0)
摘要: Docker ntpdate Permition error After building a Dockerfile, I run it. I figure out that there is something wrong with local time. So I start to instal 阅读全文
posted @ 2020-03-09 14:14 wilson'blog 阅读(178) 评论(0) 推荐(0)
摘要: Docker容器使用问题:Failed to get D-Bus connection: Operation not permitted 刚开始接触Docker的朋友,可能会遇到这么一个问题,使用centos7镜像创建容器后,在里面使用systemctl启动服务报错。针对这个报错,我们接下来就分析下 阅读全文
posted @ 2020-03-09 11:09 wilson'blog 阅读(1119) 评论(0) 推荐(0)
摘要: 素胚勾勒不出你 所需软件 您需要在电脑中安装 Oracle Virtual Box 和 Vagrant 。如果已经装好,那我们就开始吧! 步骤1:创建 CentOS 虚拟机 在本地目录(本文中使用 ~/vagrant 目录)中创建一个 Vagrantfile 文件,内容如下: # -*- mode: 阅读全文
posted @ 2020-03-09 10:01 wilson'blog 阅读(1648) 评论(0) 推荐(0)
摘要: 监控主机存活 1 for ((i=1;i<4;i++));do #循环3次,如果3次都ping不通 则认为主机不存活 2 if ping -c1 $1 &>/dev/null;then #-c1 表示仅发送一个包 3 export ping_count"$i"=1 #export 设置为全局变量 4 阅读全文
posted @ 2020-03-07 10:18 wilson'blog 阅读(184) 评论(0) 推荐(0)