上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 方式1: #!/bin/shdir="data1 data2 data3 data4 data5"mkdir /$dir 方式2: #!/bin/sh # 创建文件夹for num in $(seq 1 12)domkdir /data${num}done 结果 drwxr-xr-x 2 root 阅读全文
posted @ 2021-02-27 14:14 WH·xiao 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 在一台新机器上安装 openssh-clients yum install -y openssh-clients-7.4p1-21.el7.x86_64 使用scp 远程传输文件,出现bash: scp: command not found报错 因为远程机器没有openssh-client,所以导致 阅读全文
posted @ 2021-02-23 10:18 WH·xiao 阅读(147) 评论(0) 推荐(0) 编辑
摘要: route add -p 172.17.0.7 mask 255.255.255.255 192.168.117.162 -p 永久 add 增加 阅读全文
posted @ 2021-02-21 13:01 WH·xiao 阅读(207) 评论(0) 推荐(0) 编辑
摘要: [root@c7-01 logs]# stat test.txt File: ‘test.txt’ Size: 2 Blocks: 8 IO Block: 4096 regular fileDevice: fd00h/64768d Inode: 10361550 Links: 1Access: (0 阅读全文
posted @ 2021-02-02 14:06 WH·xiao 阅读(281) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash find /root/sh/logs -mtime +7 -name "*.*" -exec rm -rf {} \; 解释: find:Linux的查找命令,用户查找指定条件的文件/home/kafka/logs:想要进行清理的任意目录-mtime:标准语句写法+10:查找 阅读全文
posted @ 2021-02-02 11:38 WH·xiao 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 在$的字符前面加上\ sshpass -p 12gh\$56 ssh root@192.168.247.2 "mkdir /apps" 阅读全文
posted @ 2021-02-02 11:23 WH·xiao 阅读(379) 评论(0) 推荐(0) 编辑
摘要: https://blog.51cto.com/xiexiaojun/1734995 阅读全文
posted @ 2021-02-01 15:17 WH·xiao 阅读(41) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wrhbk/p/11026744.html 阅读全文
posted @ 2021-01-29 09:32 WH·xiao 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Hadoop常见端口汇总 组件节点端口配置用途说明 HDFS Namenode 50070 dfs.namenode.http-address http服务的端口 HDFS NameNode 50470 dfs.namenode.https-address https服务的端口 HDFS NameN 阅读全文
posted @ 2021-01-27 15:09 WH·xiao 阅读(946) 评论(0) 推荐(0) 编辑
摘要: vi ~/.bashrc alias ll='ls -l' source ~/.bashrc 阅读全文
posted @ 2021-01-21 10:19 WH·xiao 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页