上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 46 下一页
摘要: author:headsen chen date: 2019-01-18 10:40:37 notice:个人原创,允许转载,请注明出处,否则依法追究责任。 1,安装 2,常用参数解释 nmap 10.0.1.161 -p20-200,7777,8888 # 扫描多个端口 3,扫描udp端口 -sU 阅读全文
posted @ 2019-01-18 11:22 开始认识 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 1、检查网卡是否安装成功: # lspci | grep Mellanox 83:00.0 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 Lx] 83:00.1 Ethernet controller: Mellanox Technologies MT27710 Family [ConnectX-4 L... 阅读全文
posted @ 2019-01-18 10:28 开始认识 阅读(3297) 评论(0) 推荐(0) 编辑
摘要: 1. udaddy This script covers RDMA_CM UD connections. (It establishes a set of unreliable RDMA datagram communication paths between two nodes using the librdmacm, optionally transfers datagrams betwee... 阅读全文
posted @ 2019-01-18 10:26 开始认识 阅读(2828) 评论(0) 推荐(0) 编辑
摘要: author:headsen chen date: 2019-01-18 10:22:20 notice:created by headsen chen himself and not allowed to copy, or you will count law question! 版本环境:cen 阅读全文
posted @ 2019-01-18 10:22 开始认识 阅读(5790) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashfunction help() ( cat EOF exit 1 ) ------------------------------------------- # 判断用户是否存在,不存在就新增mysql用户 check_and_add_user() { # create a user if the specified user doesn't exists local ... 阅读全文
posted @ 2019-01-16 20:48 开始认识 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 命令:dirname 获取文件的路径(到父级目录)用法:dirname file_name[root@bogon opt]# a=$(dirname /mnt/a/b/c/d/a.sh) [root@bogon opt]# echo $a /mnt/a/b/c/d 阅读全文
posted @ 2019-01-16 16:59 开始认识 阅读(2294) 评论(0) 推荐(0) 编辑
摘要: 方法一: rm -rf ~/.ssh/known_hosts 缺点:把其他正确的公钥信息也删除,下次链接要全部重新经过认证 方法二: vi ~/.ssh/known_hosts 删除对应ip的相关rsa信息 方法三:(推荐) 清除旧的公钥信息 ssh-keygen -R 192.168.1.10 + 阅读全文
posted @ 2019-01-16 11:18 开始认识 阅读(10118) 评论(0) 推荐(0) 编辑
摘要: 1、local一般用于局部变量声明,多在在函数内部使用。实例如下: echo_start() { local STR="$1" echo "...... ${STR} ......starting at $(date)" } 2、Shell脚本中定义的变量是global的,其作用域从被定义的地方开始 阅读全文
posted @ 2019-01-15 20:39 开始认识 阅读(11018) 评论(0) 推荐(0) 编辑
摘要: $0: 脚本本身文件名称 $1: 命令行第一个参数,$2为第二个,以此类推 $*: 所有参数列表 $@: 所有参数列表 $#: 参数个数 $$: 脚本运行时的PID $?: 脚本退出码 ∗与@的区别 当命令行为test.sh 1 2 3 "$*“表示"1 2 3” "$@“表示"1” “2” “3” 二者没有被引号括起来时是一样的都为"1 2 3",只有当被引号括起来后才表现出差异 ... 阅读全文
posted @ 2019-01-11 11:06 开始认识 阅读(26247) 评论(0) 推荐(1) 编辑
摘要: 定义规范:hostname命名宗旨:可视化高,精简,FQDN线上服务器主机名命名规范(FQDN表现形式):{IDC}-{业务bu}-[{项目名}[{编号}]]-{应用名}{机器编号}.vivo.lan字段解释:[]中的是可选项,根据具体业务场景选择器名:4个字段标准{IDC}:表示机房名称,eg: 阅读全文
posted @ 2019-01-10 11:42 开始认识 阅读(7535) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 46 下一页