摘要: forfiles.exe /p D:\mysql-back /s /m * /d -30 /c "cmd /c del /q @path" #清理目录下创建大于30天所有类型的文件 阅读全文
posted @ 2017-05-31 10:43 三木燕 阅读(477) 评论(0) 推荐(0)
摘要: 使用如下链接试试看https://x.x.x.x/vsphere-client/?locale=zh_CN&csp 阅读全文
posted @ 2017-05-27 14:08 三木燕 阅读(13836) 评论(0) 推荐(0)
摘要: sed -i /test/d /file.txt #删除文件中有关键字“test”的行 sed -i /^$/d test.txt #删除一个文件中所有空行 sed -i /^#/d test.txt #删除一个文件所有以"#"开头的行 sed -i s/abc/abcd/g test.txt #把文件中的abc换成abcd sed -i /^abc/d t... 阅读全文
posted @ 2017-05-24 15:37 三木燕 阅读(268) 评论(0) 推荐(0)
摘要: rsync -auvrtzopgP --progress --delete --exclude-from=exclude.list SRC DST \\保留原文件属性并详细输出 删除那些DST中SRC没有的文件 阅读全文
posted @ 2017-05-19 17:42 三木燕 阅读(334) 评论(0) 推荐(0)
摘要: touch README git add README git commit -m 'first commit' git push origin master 阅读全文
posted @ 2017-05-19 17:42 三木燕 阅读(119) 评论(0) 推荐(0)
摘要: iptables service iptables save \\保存 iptables -F \\清空所有规则 iptables -F -t nat \\清空nat表 iptables -t nat -L -n \\查看nat表 iptables -L -n --line-number \\查看防火墙规则 iptables -t nat -A POSTROUTI... 阅读全文
posted @ 2017-05-19 17:41 三木燕 阅读(388) 评论(0) 推荐(0)
摘要: mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your_root_password' WITH GRANT OPTION; \\开启root远程登录 mysql> CREATE DATABASE DBNAME; \\创建数据库 mysql> GRANT ALL PRIVILEGES ON DBNAME.* TO... 阅读全文
posted @ 2017-05-19 17:40 三木燕 阅读(859) 评论(0) 推荐(0)
摘要: 直接修改/etc/resolv.conf 重启后可能会清空 阅读全文
posted @ 2017-05-19 17:37 三木燕 阅读(230) 评论(0) 推荐(0)
摘要: centos7 图形设置 配置文件设置 centos7修改网卡命名 安装系统后 安装系统前 点击 Tab,打开kernel启动选项 阅读全文
posted @ 2017-05-19 17:36 三木燕 阅读(265) 评论(0) 推荐(0)
摘要: 常用命令 阅读全文
posted @ 2017-05-19 17:33 三木燕 阅读(368) 评论(0) 推荐(0)