摘要: 使用如下链接试试看https://x.x.x.x/vsphere-client/?locale=zh_CN&csp 阅读全文
posted @ 2017-05-27 14:08 三木燕 阅读(13636) 评论(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 三木燕 阅读(259) 评论(0) 推荐(0) 编辑
摘要: rsync -auvrtzopgP --progress --delete --exclude-from=exclude.list SRC DST \\保留原文件属性并详细输出 删除那些DST中SRC没有的文件 阅读全文
posted @ 2017-05-19 17:42 三木燕 阅读(322) 评论(0) 推荐(0) 编辑
摘要: touch README git add README git commit -m 'first commit' git push origin master 阅读全文
posted @ 2017-05-19 17:42 三木燕 阅读(110) 评论(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 三木燕 阅读(372) 评论(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 三木燕 阅读(846) 评论(0) 推荐(0) 编辑
摘要: 直接修改/etc/resolv.conf 重启后可能会清空 阅读全文
posted @ 2017-05-19 17:37 三木燕 阅读(217) 评论(0) 推荐(0) 编辑
摘要: centos7 图形设置 配置文件设置 centos7修改网卡命名 安装系统后 安装系统前 点击 Tab,打开kernel启动选项 阅读全文
posted @ 2017-05-19 17:36 三木燕 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 常用命令 阅读全文
posted @ 2017-05-19 17:33 三木燕 阅读(352) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin clear printf " # Name: Downtown_Shell_Deploy_Script # # Purpose:Deploy tar.gz to the host # # Notes: # 1 Uplo... 阅读全文
posted @ 2017-05-19 17:22 三木燕 阅读(298) 评论(0) 推荐(0) 编辑