让JPA的Query返回Map对象

在JPA 2.0 中我们可以使用entityManager.createNativeQuery()来执行原生的SQL语句。...
Read More ⟶

为防火墙增加开放端口

/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT /etc/rc.d/init.d/iptables save /etc/init.d/iptables restart --centos 强制释放系统内存 # sysctl -w...
Read More ⟶

rsync服务的安装和使用

服务器端配置: # yum -y install xinetd # vi /etc/xinetd.d/rsync 将如下代码 service rsync { disable = yes socket_type = stream wait = no user = root server =...
Read More ⟶

redis安装和sentinel集群模式

install: mkdir /data/download -p cd /data/download ///You need tcl 8.5 or newer in order to run the Redis test wget...
Read More ⟶

system hosts config

Windows 打开 :\Windows\System32\drivers\etc\hosts Linux 打开 /etc/hosts 文件增加如下内容: # 优酷去广告 127.0.0.1 pro.letv.com 127.0.0.1 vid.atm.youku.com 127.0.0.1...
Read More ⟶

Hadoop2.0安装部署、MapReduce编程实践

Hadoop2.0安装部署、MapReduce编程实践...
Read More ⟶

几条命令快速从 ubuntu 12.04 升级到 14.04

几条命令 ubuntu 12.04 升级到 14.04 首先,按 Ctrl+Alt+T 快捷键调出terminal 1. sudo apt-get update 2. sudo apt-get dist-upgrade 3. update-manager -d...
Read More ⟶

使用wget下载不了jdk问题的解决办法

jdk download page: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html download...
Read More ⟶