<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer, Electron and Technology &#187; 安装</title>
	<atom:link href="http://www.donevii.com/post/tag/%e5%ae%89%e8%a3%85/feed" rel="self" type="application/rss+xml" />
	<link>http://www.donevii.com</link>
	<description>关注技术、移动互联网以及一切 GEEK &#38; NERD 的事情</description>
	<lastBuildDate>Wed, 21 Dec 2011 10:49:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>(转)lucene安装</title>
		<link>http://www.donevii.com/post/301.html</link>
		<comments>http://www.donevii.com/post/301.html#comments</comments>
		<pubDate>Wed, 31 Jan 2007 07:46:02 +0000</pubDate>
		<dc:creator>gavinkwoe</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[lucene]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[测试]]></category>
		<category><![CDATA[车东]]></category>

		<guid isPermaLink="false">http://www.donevii.com/?p=301</guid>
		<description><![CDATA[网上有许多lucene的材料，中文材料大家看的都是车东的那篇(http://www.chedong.com/tech/lucene.html)，而大家在网上讨论最多的是中文的全文检索，而对中文的全文检索最有影响力的文章，还是车东写的... ]]></description>
			<content:encoded><![CDATA[<p>网上有许多lucene的材料，中文材料大家看的都是车东的那篇(http://www.chedong.com/tech/<a href="http://www.donevii.com/post/tag/lucene" class="st_tag internal_tag" rel="tag" title="Posts tagged with lucene">lucene</a>.<a href="http://www.donevii.com/post/tag/html" class="st_tag internal_tag" rel="tag" title="Posts tagged with html">html</a>)，而大家在网上讨论最多的是中文的全文检索，而对中文的全文检索最有影响力的文章，还是车东写的那篇weblucene(http://www.chedong.com/tech/weblucene.<a href="http://www.donevii.com/post/tag/html" class="st_tag internal_tag" rel="tag" title="Posts tagged with html">html</a>)，但那些都是lucene1.2版本的事，现在不同了，lucene1.3-final据称完全支持中文的全文检索了。<br />
因为在lucene1.3-final.zip包中的changes.txt中的第五项描述如下：<br />
5. Fix StandardTokenizer’s handling of CJK characters (Chinese,<br />
 Japanese and Korean ideograms). Previously contiguous sequences<br />
 were combined in a single token, which is not very useful. Now<br />
 each ideogram generates a separate token, which is more useful.<br />
这说明lucene1.3-final可以检索中日韩等表意文字了。<br />
<br />
测试一下：<br />
测试环境：<a href="http://www.donevii.com/post/tag/windows" class="st_tag internal_tag" rel="tag" title="Posts tagged with windows">windows</a> 2000 pro,jdk1.3.1或以上版本<br />
1、下载lucene-1.3-final.zip。<br />
<br />
2、解压lucene-1.3-final.zip，并将其中的lucene-1.3-final.jar和lucene-demos-1.3-final.jar加入到系统的classpath中。<br />
<br />
3、建一个目录，并将一些html或txt文件（文件内容要中文的！）拷入到这个目录中，作为全文检索的材料。如：建一个目录d:\lucenetest\index，在其中拷入一些中文内容的文件，其中也可以有多级子目录的。<br />
OK，环境准备好了，可以试验了！<br />
<br />
4、进入dos模式，输入命令：<a href="http://www.donevii.com/post/tag/java" class="st_tag internal_tag" rel="tag" title="Posts tagged with java">java</a> org.apache.lucene.demo.IndexFiles d:\lucenetest\index<br />
如：c:\&gt;java org.apache.lucene.demo.IndexFiles d:\lucenetest\index 回车，这时会索引d:\lucenetest\index目录下的所有文件，包括子目录中的文件，并将索引文件写入：c:\index目录中（自动创建的,根据你的dos符起始路径，将在其下建index目录）。<br />
好，索引建完了，下面试验检索。<br />
<br />
5、输入命令：java org.apache.lucene.demo.SearchFiles<br />
如：c:\&gt;java org.apache.lucene.demo.SearchFiles 回车<br />
Query:在这里输入检索内容，如：“建议最好自己先做一下语法检查”，这么长：）<br />
成功了，结果出来了：<br />
Searching for: “建 议 最 好 自 己 先 做 一 下 语 法 检 查”<br />
1 total matching documents<br />
0. d:\lucenetest\index\学习Lucene的一点心得.txt<br />
可以看出lucene-1.3-final完全支持中文的全文检索了，使用的是单字切分！！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donevii.com/post/301.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pligg安装步骤</title>
		<link>http://www.donevii.com/post/47.html</link>
		<comments>http://www.donevii.com/post/47.html#comments</comments>
		<pubDate>Wed, 23 Aug 2006 10:34:51 +0000</pubDate>
		<dc:creator>dengwei</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[pligg]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[步骤]]></category>
		<category><![CDATA[汉化]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.donevii.com/?p=47</guid>
		<description><![CDATA[[转]pligg安装步骤 原文地址：http://blog.manboo.info/305.htm pligg安装步骤 Posted by topcool on 08/16/06 in Web2.0 1.下载安装的文件，现在的版本是Beta 7.2 Nightly 138。 2. 解压缩文件，找到pligg/libs/dbconnect.php.defaul... ]]></description>
			<content:encoded><![CDATA[<p><strong><span class="tpc_title">[转]pligg安装步骤</span></strong></p>
<p><span class="tpc_content">原文地址：<a href="http://blog.manboo.info/305.htm" target="_blank">http://blog.manboo.info/305.htm</a></span></p>
<p>pligg安装步骤<br />
Posted by topcool on 08/16/06 in <a href="http://www.donevii.com/post/tag/web" class="st_tag internal_tag" rel="tag" title="Posts tagged with web">Web</a>2.0<br />
1.下载安装的文件，现在的版本是Beta 7.2 Nightly 138。</p>
<p>2. 解压缩文件，找到pligg/libs/dbconnect.<a href="http://www.donevii.com/post/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>.default，重命名为dbconnet.<a href="http://www.donevii.com/post/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></p>
<p>config.default.php 重命名为 config.php并用记事本打开找到下面几行：</p>
<p>$trackbackURL = “<a href="http://www.donevii.com/post/tag/pligg" class="st_tag internal_tag" rel="tag" title="Posts tagged with pligg">pligg</a>.com”;<br />
// in this example, pligg is install in <a href="http://ashtest1.pligg.com/" target="_blank" class="broken_link">http://ashtest1.pligg.com/</a><br />
//define(’my_base_url’, ‘<a href="http://ashtest1.pligg.com/" target="_blank" class="broken_link">http://ashtest1.pligg.com</a>’); // the base url to your site.<br />
//define(’my_pligg_base’, ‘’); // if installed in a subfolder. leave blank if installed in root.</p>
<p>去掉//，改成相应的链接，最后不要带/</p>
<p>3. 将所有的文件上传到FTP空间相应的目录</p>
<p>4. 修改下列文件的属性为777，注意是修改文件夹及文件夹下所有的文件。</p>
<p>/configs<br />
/templates_c<br />
/templates<br />
config.php<br />
/libs/dbconnect.php<br />
/libs/options.php</p>
<p>5. 打开浏览器, <a href="http://yoururl/install/" target="_blank" class="broken_link">http://yoururl/install/</a> 按照说明，一路next就好。当然前提是</p>
<p>你已经先建立了数据库。</p>
<p>6. 安全起见，删除/install 目录，把libs/dbconnect.php文件属性改为655。</p>
<p>现在可以访问<a href="http://yourpligg/" target="_blank" class="broken_link">http://yourpligg/</a></p>
<p>登录帐户为god</p>
<p>密码12345</p>
<p>到 god profile , personal data , personal information 旁边的modify修改帐号信息及修改密码</p>
<p>如果想修改god为admin或者其他名字，可以用phpmyadmin到相应数据库，</p>
<p>修改users表的内容。</p>
<p>7.关于提交链接乱码的修改</p>
<p>这个应该是模板编码的问题，还没有想好怎么解决，可以将模板文件都用utf-8编码。先试试这个：<br />
将模板的head.tpl文件中</p>
<p>&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/<a href="http://www.donevii.com/post/tag/html" class="st_tag internal_tag" rel="tag" title="Posts tagged with html">html</a>; charset=iso-8859-1&#8243;/&gt;<br />
改成：</p>
<p>&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&gt;</p>
<p>8.更换模板</p>
<p>更改config.php文件里</p>
<p>$thetemp = “mollio-beat”;这行代码，修改为$thetemp = “模板的名字”;</p>
<p>模板的名字是指templates目录下的文件夹，原始程序里是三个，觉得默认的mollio-beat</p>
<p>好看一些，你可以复制该文件夹并重命名，修改$thetemp = “mollio-beat”;</p>
<p>然后，就可以根据需要来修改你的模板了。</p>
<p>9. 新发现提交以后必须顶的次数超过5才能在首页显示，</p>
<p>这个可以在config.php文件中下面这几行改</p>
<p>// Publishing<br />
define(’votes_to_publish’, 5); // 改这个5为其他数字就可以了。<br />
define(’days_to_publish’, 10); // After this many days posts will not get published</p>
<p>10的意思是10天后，提交的这个新发现就不会被发布到首页了，除非已经</p>
<p>被顶了5次提交到首页了。</p>
<p>关于config.php的详细修改见这里</p>
<p>10. 关于pligg的汉化</p>
<p>可以直接修改libs/lang.conf文件(记事本就可以打开)</p>
<p>也可以登录到后台Admin Panel » Modify Language修改，其实也就是修改lang.conf文件。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donevii.com/post/47.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

