
shell
cllblogs
这个作者很懒,什么都没留下…
展开
-
shell脚本编程(进阶)
以三台机器搭建的集群为例 1.查看三台机器的进程 [hadoop@hadoop001 hadoop]$ vi jps.sh #!/bin/bash echo "-----------------hadoop001 process---------------" ssh hadoop001 "$JAVA_HOME/bin/jps" echo " ...原创 2019-09-10 10:00:40 · 307 阅读 · 0 评论 -
shell脚本编程(基础)
输出字符串hello world [root@hadoop001 learn_shell]# vi test.sh #!/bin/bash echo "hello world!" # 默认是没有可执行权限的 [root@hadoop001 learn_shell]# ll 总用量 4 -rw-r--r-- 1 root root 34 8月 24 07:53 test.sh # 修改文...原创 2019-09-09 08:08:18 · 122 阅读 · 0 评论