前提:安装好jdk1.7,hadoop安装步骤:1、安装scala下载地址:http://www.scala-lang.org/download/配置环境变量:export SCALA_HOME=/..../scalaexport PATH=.:$SCALA_HOME/bin ....验证:sca....
分类:
其他好文 时间:
2014-06-28 14:08:09
阅读次数:
404
编译erlang otp 17.0 一直提示:/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(cryptlib.o): relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used whe...
分类:
其他好文 时间:
2014-06-28 13:16:07
阅读次数:
497
今天在CentOS下部署了一个Tomcat,启动没问题,但是外网不能访问,检查知防火墙开了。1.检查防火墙是否开启,执行/etc/init.d/iptables status如果有下面结果,表示防火墙开启。[root@yyl bin]# /etc/init.d/iptables status表格:f...
分类:
其他好文 时间:
2014-06-28 13:00:09
阅读次数:
186
python版本(适用于树莓派) 1 #!/usr/bin/env python 2 #-*-coding:utf-8-*- 3 import httplib,urllib 4 import json 5 import re,urllib2 6 import time 7 8 class Get.....
安装ns3的一系列包,脚本如下:#!/bin/shsudo apt-get install gcc g++ python python-pygccxmlsudo apt-get install gcc g++ python python-devsudo apt-get install mercuri...
分类:
系统相关 时间:
2014-06-28 11:39:15
阅读次数:
361
程序仅供学习。 1 #!/usr/bin/python 2 import os 3 import time 4 ip=raw_input("Enter the ip,example: 192.168.1.0-254:\n") 5 service = raw_input("Enter the Ser....
分类:
编程语言 时间:
2014-06-24 08:52:55
阅读次数:
489
Python中默认的最大递归深度是989,当尝试递归第990时便出现递归深度超限的错误:RuntimeError: maximum recursion depth exceeded in comparison简单方法是使用阶乘重现: 1 #! /usr/bin/env Python 2 3 def....
分类:
编程语言 时间:
2014-06-23 07:40:27
阅读次数:
298
【教程主题】:BashShell【课程录制】:创E【主要内容】【1】HelloWorld!几乎所有的讲解编程的书给读者的第一个例子都是HelloWorld程序,那么我们今天也就从这个例子出发,来逐步了解BASH。用vim编辑器编辑一个hello文件如下: #!/bin/bash#Thisisaver...
分类:
其他好文 时间:
2014-06-23 07:11:30
阅读次数:
279
#!/bin/bashawk 'BEGIN{printf "%-60s %-10s %-10s %-10s\n","url","count","time","avg_time"}$NF ~ /^[0-9]/{c1[$11]+=$NFc2[$11]++}END{for(b in c2) { fo...
分类:
其他好文 时间:
2014-06-22 23:56:33
阅读次数:
382
在xilinx的SDK下生成boot.bin的过程,有时非常让人恼火...得手动选几个文件xx.fsbl, xx.bit, xx.elf.....选来选去的非常麻烦,而且SDK还常常Browse时...还不指定在当前工程目录下...所以,我一怒之下,想写个批处理...没有写出来...拖延症严重.. ...
分类:
其他好文 时间:
2014-06-22 23:39:39
阅读次数:
339