本文以在Windows下安装环境为例,linux下安装方法见:http://www.tot.name/show/12/89/20060420220051.htm
一、安装JDK
下载地址:http://down.tot.name/download/soft/jdk-1_5_0_06-windows-i586-p.rar
双击解压包中的jdk-1_5_0_06-windows-i586-p.exe文件,根据提示一步步安装即可。一般就是点击“下一步”,过程比较简单。
二、安装Tomcat
下载地址:http://down.tot.name/download/soft/jakarta-tomcat-5.0.28.zip
解压jakarta-tomcat-5.0.28.zip文件并上传到服务器,假如保存在服务器上物理路径为:E:\jakarta-tomcat-5.0.28
三、环境变量设置
下面设置环境变量:
桌面-右击“我的电脑”-高级-环境变量-在“系统变量”框中点击“新建“按钮-在新窗口中设置参数
变量名称为:CATALINA_HOME
变量值为:E:\jakarta-tomcat-5.0.28 (也就是您的tomcat的安装目录。)
同理添加以下环境变量 :
变量名称为:JAVA_HOME
变量值为:C:\Program Files\Java\jdk1.5.0_06 (也就是您的jdk的安装目录。)
四、索引文件
首先运行软件bin目录中的run.bat文件,这里系统界面打开。窗口面板共分上下两部分,上面为:数据库连接参数配置。下面为:选择表及字段选项设置。最下面的“起始ID、结束ID”为考虑大数量记录和不定时更新的情况下使用的。也就是说,通过ID设置,你可以分批将数据库中的记录生成索引,比如你的数据库中有10000条记录,你可以设置起始ID:0 结束ID:5000,然后置起始ID:5001 结束ID:10000,分两步索引数据库中的记录。
注:索引设置参数有“是否覆盖”选项,第一次索引时一定要选中此按钮,这样软件会自动创建索引文件,以后无需再选中了,软件会自动将
新的文章索引附加到原有的索引文件中,如果选中将自动覆盖原有索引文件。
五、安装淘特搜索引擎WEB应用
将系统安装包中webapp中的所有文件复制到tomcat/webapps/ROOT/目录下,然后修改search.jsp中47行代码:
searcher = new IndexSearcher("C:\\index\\test");//索引文件的存放目录
其中“C:\\index\\test”为您的索引文件在服务器中的保存目录的绝对路径。
注意因为\字符在Java中为特殊字符,所以需要使用转义字符\\表示一个\。
六、系统启动:
首先进入E:\jakarta-tomcat-5.0.28\bin目录,双击startup.bat启动tomcat服务器
使用http://您的服务器地址:8080/search.jsp就可以使用本搜索引擎了。
7、系统关闭:
进入E:\jakarta-tomcat-5.0.28\bin目录,双击shutdown.bat停止tomcat服务器
注:如果你在本地连接远程数据库并生成索引,那么请将你创建的索引目录(如E:\index)上传到服务器上,然后在search.jsp47行修改你的索引文件所在路径。
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃源码站 - 下载文件说明: alixixi.com┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ 如有转载请勿删除本说明文件,谢谢合作 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃【使用前请您先阅读以下条款,否则请勿使用本站提供的文件!】 ┃
┃ 1) 推荐使用:WinRAR V3.4以上版本解压本站软件 ┃
┃ 2) 本站不保证所提供软件或程序的完整性和安全性。 ┃
┃ 3) 请在使用前查毒 (这也是您使用其它网络资源所必须注意的) 。 ┃
┃ 4) 由本站提供的程序对您的网站或计算机造成严重后果的本站概不负责。┃
┃ 5) 本站提供的程序均为网上搜集,如果该程序涉及或侵害到您的版权请立┃
┃ 即写信通知我们。 ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ 如果遇到MD5加密文件(一般都是这个),而又不知道密码的, ┃
┃ 请用这组加密的数据1739fddf100746ca替换,那么密码就是:alixixi.com ┃
┃ (这个是16位的,32位的是:7773164f11739fddf100746ca6b337834) ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ 欢迎广大程序作者到本站发布您的作品! ┃
┃ 源码站 - 源码发布与下载 ┃
┃ 联系邮箱:wuse#alixixi.com( #替换成@ ) ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/TXT.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JAR.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 15 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/cb3ef9cd632345779e6826b47461fb9e_qq_27489007.jpg!1)
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)