ITeye博客

King

笑我痴狂 · 共 120 篇文章

[置顶] oracle之查询语句

oracle查询的所有语法及示例 不管是oracle数据库管理员还是程序员必须看的 相信你会喜欢

2010-10-20 18:41 · oracle · 评论(1)

[置顶] lucene入门到项目开发

加入jar包 lucene-core-2.4.0.jar je-analysis-1.4.0.jar lucene-highlighter-2.4.1.jar lucene-analyzers-2.4.1.jar 先准备下工具类 package com.cs.lucene.utils; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStreamReader;…

2010-10-10 15:53 · lucene · 评论(2)

[置顶] Struts2+Hibernate3.2+Spring2.5+Compass整合

之前学习了Compass 现在整合下ssh2+Compass 网上找了很多资料 都没一个完整的demo 本人写的demo供大家分享 一步到位 希望可以让大家少走点弯路 如果ssh2都不会整合的 我就不多说了 step1 在ssh2的基础上开发 加入jar包(compass-2.1.2.jar compass-index-patch.jar lucene-analyzers-2.4.0.jar lucene-core-2.4.0.jar lucene-highlighter-2.4.0.jar paoding-analysis.jar ) step2 先来看下实体bean的编写 package…

2010-10-10 01:34 · web 综合 · 评论(1)

内网穿透&UDP打洞

内网穿透&UDP打洞 这两天找度度重新回忆了一下关于内网穿透的事情,在百度文库上找到了两三篇写的比较通俗易懂的文章,把内网穿透做个简单总结。 首先文章建议 Cone NAPT 还有希望,要是 Symmetri NAPT 就别想了,接着介绍了两种基本情况,一是一台内网机器连接外网通信的情况,二是两台内网之间互联的情况。 第一种,只需要内网主动发起连接就可以了。内网机器A(192.168.1.x:4000)要求连接外网服务端S(60.17.211.x:5000),发出连接请求后被A网所在网关NA(10.11.12.x)获取,NA将A的地址转变为其自身地址,并分配临时端口(6000)用作通讯,于是…

2015-11-10 14:37 · 评论(1)

ANT合并多个第三方包

<target name="compile" depends="lsql" description="--> compile and run the project"> </target> <target name="lsql" description="--> compile and run the project"> <delete file="${build.dir}/lsql-${lib.version}.jar" /> <jar destfile="${build.dir}/lsql-${lib.version}.jar"> <manifest> <attribute name="…

2015-06-18 16:31 · web 综合 · 评论(0)

nginx配置模板2

[root@localhost conf]# cd conf.d/ [root@localhost conf.d]# ll 总用量 12 -rwxr-xr-x. 1 richmail richmail 5245 2月 3 23:25 mail.conf -rwxr-xr-x. 1 richmail richmail 1484 2月 4 09:11 note.conf [root@localhost conf.d]# less note.conf proxy_cache_valid 0; proxy_set_header Host $host:$server_port; proxy_set_h…

2015-03-10 13:39 · nginx · 评论(0)

nginx配置模板

[root@localhost nginx]# cd conf/ [root@localhost conf]# ll 总用量 36 drwxr-xr-x. 2 richmail richmail 4096 2月 4 19:31 conf.d -rwxr-xr-x. 1 richmail richmail 2837 2月 3 23:25 koi-utf -rwxr-xr-x. 1 richmail richmail 2223 2月 3 23:25 koi-win -rwxr-xr-x. 1 richmail richmail 3463 2月 3 23:25 mime.types -rwxr-x…

2015-03-10 13:37 · nginx · 评论(0)

linux下mysql-5.6.23.tar.gz安装与配置

1.卸载系统默认的mysql [root@localhost ~]# rpm -qa | grep mysql mysql-libs-5.1.66-2.el6_3.x86_64 mysql-devel-5.1.66-2.el6_3.x86_64 mysql-5.1.66-2.el6_3.x86_64 [root@localhost ~]# rpm -e mysql-libs-5.1.66-2.el6_3.x86_64 error: Failed dependencies: libmysqlclient.so.16()(64bit) is needed by (installed) mysql…

2015-03-06 18:24 · linux · mysql · 评论(0)

linux下nexus-2.4.0-09-bundle.tar.gz安装与配置

http://www.sonatype.org/downloads/nexus-2.4.0-09-bundle.tar.gz 1、 软件 a) 下载Nexus 地址:http://www.sonatype.org/downloads/nexus-2.4.0-09-bundle.tar.gz b) 如无特殊说明,本文档操作用户为nexus c) nexus默认的管理员用户名密码是:admin/admin123 2、 安装 a) 解压 $ tar zxvf nexus-2.4.0-09-bundle.tar.gz b) 移动到其他目录 $ mv nexus-2.4.0 /home/nexus/n…

2015-03-05 23:59 · linux · 评论(0)

linux下rzsz安装

1.登陆linux,下载rzsz安装包 wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz 2.tar zxvf rzsz-3.48.tar.gz解压安装包 3.解压后生成scr目录,这个软件安装与常规的GNU软件不同—没有configure(配置)及make install (安装过程)。先执行命令make,将给出下面的提示: Please study the #ifdef's in crctab.c, rbsb.c, rz.c and sz.c, make any necessary hacks for oddball or…

2015-02-25 14:41 · linux · 评论(0)

linux下httpd-2.2.21安装

Linux 安装 httpd-2.2.21 Apache服务过程笔记: ====== donwload httpd-2.2.21.tar.bz2 ====== httpd-2.2.21.tar.bz2 For Linux下载地址: http://www.linuxidc.com/Linux/2011-10/44566.htm tar jxvf httpd-2.2.21.tar.bz2 cd httpd-2.2.21 ====== Install httpd service ====== ./configure make sudo make install ====== Start httpd…

2015-02-09 23:25 · linux · 评论(0)

linux下jdk1.7安装

1.检测系统是否安装java JDK root用户登录 显示内容其中包含下面信息 rpm -qa|grep jdk java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.x86_64 java-1.7.0-openjdk-devel-1.7.0.9-2.3.4.1.el6_3.x86_64 jdk-1.7.0_75-fcs.x86_64 java-1.6.0-openjdk-javadoc-1.6.0.0-1.50.1.11.5.el6_3.x86_64 java-1.6.0-openjdk-devel-1.6.0.0-1.50.1.11.5.el6_3.…

2015-02-03 12:42 · linux · 评论(0)

Linux下服务操作脚本shell模板

#Author : wuchaohui #Desc : restart tomcat #Time : 2015-1-1 #!bin/bash tomcatpath="/softs/tomcat7" pidlist=`ps -ef|grep $tomcatpath |grep -v "grep"|awk '{print $2}'` case $1 in "start") if [ "$pidlist" = "" ]; then cd $tomcatpath/bin ./startup.sh sleep 1 pidlist=`ps -ef|grep $tomcatpath |grep -v "g…

2015-01-26 22:40 · linux · 评论(0)

linux(Cent OS6.5)下安装SVN

安装: 1.安装svn,一般情况下,选择yum方式安装还是比较简单的。 [root@moshi ~]# yum -y install mod_dav_svn #会自动安装mod_dav_svn及其依赖包:mod_dav_svn-1.6.11-9,neon-0.29.3-2,pakchois-0.4-3.2,subversion-1. 直接安装这个就能把svn服务器直接OK了。 2.安装httpd [root@moshi ~]# yum -y install httpd 一般情况下,linux服务器是有httpd服务的,你可以检查下,如果没有则安装。 检查方法: [root@moshi ~]#…

2015-01-24 03:06 · linux · 评论(0)

JMS之ActiveMQ Linux下安装与应用实例

1.下载activeMQ安装包,拷贝到/activeMQ目录下 apache-activemq-5.10.0-bin.tar.gz,下载地址http://activemq.apache.org/download.html 2.解压文件到运行目录 [root@iz94wmbxqzyz softs]# tar -xzvf /server/apache-activemq-5.10.0-bin.tar.gz 3.为了方便管理,重命名 [root@iz94wmbxqzyz softs]# mv apache-activemq-5.10.0 activemq-5.10.0 [root@iz94wmbxq…

2015-01-12 00:01 · JMS · 评论(2)