摘要: 1.安装 yum search cache ntpdate xcall.sh "yum install -y ntpdate.x86_64" 2.同步 xcall.sh "ntpdate time.windows.com" 阅读全文
posted @ 2018-05-15 11:35 让双脚&去腾空 阅读(313) 评论(0) 推荐(0) 编辑
摘要: centos网络打开: #> vi /etc/sysconfig/network-scripts/ifcfg-ens3 将onboot改为yes即可 #>vi /etc/resolv.conf nameserver 8.8.8.8 重启客户机修改主机名 vim /etc/hostname 例子:19 阅读全文
posted @ 2018-05-14 11:44 让双脚&去腾空 阅读(272) 评论(0) 推荐(1) 编辑
摘要: 注意:黑白名单只出现在名称(nn)节点<!-- 白名单 --><property><name>dfs.hosts</name>/Users/yangyanqing/文档/hadoop添加新节点+退役旧节点.txt<value></value><description>包含允许连接nn的主机名列表(文 阅读全文
posted @ 2018-05-14 10:43 让双脚&去腾空 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 主要有两种方式,其中使用Date比较好控制,代码如下://使用Calendar Calendar now = Calendar.getInstance(); System.out.println("年:" + now.get(Calendar.YEAR)); System.out.println(" 阅读全文
posted @ 2018-05-04 22:55 让双脚&去腾空 阅读(7467) 评论(0) 推荐(0) 编辑
摘要: Mysql索引PRIMARY、NORMAL、UNIQUE、FULLTEXT 区别和使用场合 索引 数据库的索引就像一本书的目录,能够加快数据库的查询速度。 MYSQL索引有四种PRIMARY、INDEX、UNIQUE、FULLTEXT, 其中PRIMARY、INDEX、UNIQUE是一类,FULLT 阅读全文
posted @ 2018-05-02 14:54 让双脚&去腾空 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 例子:id name 1 张三 1 李四 select id,group_concat(name) from group by id 结果:id name 1 张三,李四 阅读全文
posted @ 2018-04-12 15:40 让双脚&去腾空 阅读(152) 评论(0) 推荐(0) 编辑
摘要: mysql之count,max,min,sum,avg,celing,floor 写在前面 昨天去青龙峡玩了一天,累的跟狗似的。不过还好,最终也算登到山顶了,也算来北京后征服的第三座山了。这里也唠叨一句,做开发这行,没事还是多运动运动,对自己还是很有好处的,废话少说,还是折腾折腾sql语句吧。 系列 阅读全文
posted @ 2018-04-02 17:16 让双脚&去腾空 阅读(253) 评论(0) 推荐(0) 编辑
摘要: firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running) systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止fire 阅读全文
posted @ 2018-04-01 15:13 让双脚&去腾空 阅读(473) 评论(0) 推荐(0) 编辑
摘要: https://www.mamp.info/en/downloads/ 阅读全文
posted @ 2018-03-31 12:10 让双脚&去腾空 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Mac 下自带的 Apache 配置 Mac 下自带的 Apache 配置 2016年01月25日 00:25:03 阅读数:1292 2016年01月25日 00:25:03 阅读数:1292 阅读数:1292 参考: http://www.cnblogs.com/snandy/archive/2 阅读全文
posted @ 2018-03-28 14:10 让双脚&去腾空 阅读(405) 评论(0) 推荐(0) 编辑