`
jobar
  • 浏览: 350478 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
如果没有安装iptables该怎么办呢? 在/etc/xinetd.d下加入http服务 service http { disable = no socket_type = stream wait = no redirect = 127.0.0.1 8080 log_type = FILE logpath } 重启/etc/init.d/xinetd restart 参考资料: 1 http://www.centos.org/docs/4/html/rhel-rg-en-4/s1-tcpwrappers-xinetd-config.html 2 http:// ...
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 查看配置是否成功 # iptables -t nat -L Chain PREROUTING (policy ACCEPT) target     prot opt source               destination REDIRECT   tcp  --  anywhere             anywhere            tcp dpt:http redir ports 8080 记住最后要save iptable ...
public class Address implements Serializable { @Id @TableGenerator(name = "add_gen", table = "address_gen", pkColumnName = "pkname", valueColumnName = "idvalue", pkColumnValue = "address_id") @GeneratedValue(generator = "add_ge ...
注意几个要点: 1 要加入依赖的两个jackson jar包   jackson-mapper-asl-1.9.12.jar   jackson-core-asl-1.9.12.jar 2 配置文件里<mvc:annotation-driven /> 开启 3 Controller里面的方法返回加@ResponseBody
现象: Preparing to deploy: Created staging directory at: 'C:\Users\xxxxx\AppData\Local\Temp\appcfg7267883481818555624.tmp' java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE. 解决方法: 在eclipse配置文件eclipse.ini里面添加: -vm C:\Program Files\Java\jdk1.7.0_17\bin\jav ...
有些css属性,当你用到的时候才会关注他的作用。比如white-space。 white-space 属性设置如何处理元素内的空白。 这个属性声明建立布局过程中如何处理元素中的空白符。值 pre-wrap 和 pre-line 是 CSS 2.1 中新增的。 注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inherit"。 值描述normal默认。空白会被浏览器忽略。pre空白会被浏览器保留。其行为方式类似 HTML 中的 <pre> 标签。nowrap文本不会换行,文本会在在同一行上继续,直到遇到 <br> ...
Recently I finish to read one book about html5 websocket. Followings are some summary from my learning progress. HTML5 covers the large number of improvements and changes happening in web technologies, and includes everything from the markup you use on your web pages to the CSS3 styling, offline and ...
Unbuntu下用jmap报错: jmap -heap 3051 Attaching to process ID 3051, please wait... Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process 解决:执行下面的命令: echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope 然后就可以用了
hsql是最常使用的嵌入式数据库之一,默认情况下是ASCII编码,如果在脚本里面输入汉字,通过MyBatis查询出来时却是乱码的,可以在初始化数据脚本里面显示指定编码为UTF-8解决乱码问题。如下: <jdbc:initialize-database data-source="dataSource"> <jdbc:script location="${jdbc.initLocation}"/> <jdbc:script location="${jdbc.dataL ...
原始数据 cat data This is the header line. This is the first data line. This is the second data line. This is the last line. tac data This is the last line. This is the second data line. This is the first data line. This is the header line. sed -n '{1!G;h;$p}' data This is the last line. This is the s ...

Ubuntu下安装maven

1 apt-cache search maven 获取所有可用的maven包 2 sudo apt-get install maven 开始安装 下载大约114M的东东 3 mvn --version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.6.0_38, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS nam ...
1 Install full version vim   sudo apt-get install vim 2 Configuration of vim   The default folder and file is not exist. So we create them first.   mkdir ~/.vim/   vi ~/.vimrc copy following codes to .vimrc file syn on "语法支持 "common conf {{ 通用配置 set ...
网上到处找不到Hadoop eclipse plugin,自己编译了一个能用的,放上来供大家用。 Ubuntu12.10试过,好使
使用getopt可以非常方便的格式话选项跟对应的参数,例子如下 #!/bin/bash set -- `getopt -q ab:c "$@"` while [ -n "$1" ] do case "$1" in -a) echo "option -a";; -b) value="$2" echo "option -b with par ...
{ xtype: 'gridcolumn', renderer: function(value, metaData, record, rowIndex, colIndex, store, view) { metaData.tdAttr = "data-qtip='Message: " + value + "'"; ...
Global site tag (gtag.js) - Google Analytics