2018年3月12日

摘要: Java 对象和类 对象:类的实例,有行为和状态 类:模板,它描述一类对象的行为和状态 方法:行为,一个类可以有多个方法 实例变量:状态 面向对象编程三大特性:封装、继承、多态 Java 数据类型 内置数据类型:六种数字类型(四个整数型,两个浮点型),一种字符类型,一种布尔类型 boolean 布尔 阅读全文
posted @ 2018-03-12 16:17 唐先生_DowneyJr 阅读(146) 评论(0) 推荐(0) 编辑

2017年12月22日

摘要: 1.下载Community:https://www.jetbrains.com/idea/download/校验和:https://download.jetbrains.com/idea/ideaIC-2017.2.5.tar.gz.sha256值:194e6d4e5d2216c2f70884237 阅读全文
posted @ 2017-12-22 09:47 唐先生_DowneyJr 阅读(318) 评论(0) 推荐(0) 编辑

2017年12月13日

摘要: 一、配置hosts文件#CentOS6.xvim /etc/sysconfig/network HOSTNAME=master#Ubuntu/CentOS7.xsudo vim /etc/hostnamemastersudo hostname slaves01sudo vim /etc/hostsi 阅读全文
posted @ 2017-12-13 15:33 唐先生_DowneyJr 阅读(166) 评论(0) 推荐(0) 编辑

2017年10月24日

摘要: 环境说明: ip地址 用户名称 机器名称 机器角色 192.168.3.150 donny donny-Lenovo-B40-80 Master + Salve 192.168.3.167 cqb cqb-Lenovo-B40-80 Salve Master机器主要配置NameNode和JobTra 阅读全文
posted @ 2017-10-24 17:41 唐先生_DowneyJr 阅读(197) 评论(0) 推荐(0) 编辑

2017年10月13日

摘要: shell 文件包含 . filename # 注意点号(.)和文件名中间有一空格 source filename name.sh: name="donny" test.sh: source ./name.sh # . ./name.sh echo "My name is ${name}!" 阅读全文
posted @ 2017-10-13 09:22 唐先生_DowneyJr 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 输出重定向 command1 > file1 vim test hello cat test who > users cat test echo "nihao" > test cat test 输入重定向 command1 < file1 wc -l test 统计行数 重定向深入了解 一般情况下, 阅读全文
posted @ 2017-10-13 09:11 唐先生_DowneyJr 阅读(266) 评论(0) 推荐(0) 编辑
摘要: shell 函数 阅读全文
posted @ 2017-10-13 08:05 唐先生_DowneyJr 阅读(106) 评论(0) 推荐(0) 编辑

2017年10月12日

摘要: Shell 流程控制 if if [ $(ps -ef | grep -c "ssh") -gt 1 ]; then echo "true"; fi if else if else if else for while 无限循环 until case break continue 阅读全文
posted @ 2017-10-12 21:38 唐先生_DowneyJr 阅读(230) 评论(0) 推荐(0) 编辑
摘要: shell test命令 数值 num1=100num2=100if test $[num1] -eq $[num2]then echo '两个数相等!'else echo '两个数不相等!'fia=5b=6result=$[a+b] # 注意等号两边不能有空格echo "result 为: $re 阅读全文
posted @ 2017-10-12 21:23 唐先生_DowneyJr 阅读(113) 评论(0) 推荐(0) 编辑
摘要: shell printf命令 printf format-string [arguments...] format-string: 为格式控制字符串 arguments: 为参数列表 printf "%-10s %-8s %-4s\n" 姓名 性别 体重kgprintf "%-10s %-8s %- 阅读全文
posted @ 2017-10-12 21:02 唐先生_DowneyJr 阅读(136) 评论(0) 推荐(0) 编辑

导航