﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-JAVA梦想-随笔分类-java</title><link>http://www.blogjava.net/lucky/category/3091.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 23:48:03 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 23:48:03 GMT</pubDate><ttl>60</ttl><item><title>JIRA安装（Tomcat5.0.28+Mysql5.0.19）--原创</title><link>http://www.blogjava.net/lucky/archive/2006/05/02/44337.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Tue, 02 May 2006 02:45:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2006/05/02/44337.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/44337.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2006/05/02/44337.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/44337.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/44337.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">转载请注明作者、出处，严禁用于任何商业用途</font>
		<br />
		<div align="center">
				<h3>
						<b>
								<font color="#000000">JIRA安装（Tomcat5.0.28+Mysql5.0.19）--原创</font>
						</b>
				</h3>                                                  <b> Lucky</b><br /><div align="left">     昨天转载了<font size="3"><span style="font-family: 宋体;">Judy Shen的《使用JIRA搭建企业问题跟踪系统》，在这篇文章中Jude Shen着重讲解了JIRA的特性和常用的设置。但是对于安装却没有提及，在本人实际安装JIRA的过程中，出现了一些问题，虽然最终解决但是花费了本人一下午的时间。为了帮助大家顺利安装，今天本人把安装的过程重新梳理一遍，请特别留意红色字体的部分。<br /></span></font><ol><li><font size="3"><span style="font-family: 宋体;">     安装JDK(<font color="#ff0000">JDK1.4.2以上</font>)，配置JAVA_HOME，安装Mysql(本人使用的版本是5.0.19)，安装tomcat(5.0.28)</span></font><br /></li><li>     <font size="3"><span style="font-family: 宋体;">下载JIRA: 本人下载的版本为----</span></font>3.6 Enterprise EAR/WAR的Zip文件</li><li>      解压缩JIRA，编辑解压缩目录\edit-webapp\WEB-INF\classes\entityengine.xml文件，原文件定义使用hsql(红色字体为增加部分)：    <br /></li><li>    &lt;transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"&gt;<br />      &lt;user-transaction-jndi jndi-server-name="default" jndi-name="java:comp<font color="#ff0000">/env</font>/UserTransaction"/&gt;<br />      &lt;transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp<font color="#ff0000">/env</font>/UserTransaction"/&gt;<br />    &lt;/transaction-factory&gt;</li><li>    原来的field-type-name="hsql"，改为“mysql”<br /></li><li>     &lt;datasource name="defaultDS" field-type-name="<font color="#ff0000" face="Times New Roman">mysql</font>"<br />        helper-class="org.ofbiz.core.entity.GenericHelperDAO"<br />      check-on-start="true"<br />      use-foreign-keys="false"<br />      use-foreign-key-indices="false"<br />      check-fks-on-start="false"<br />      check-fk-indices-on-start="false"<br />      add-missing-on-start="true"<br />      check-indices-on-start="true"&gt;<br />        &lt;jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/JiraDS"/&gt;</li><li>     修改完entityengine.xml文件的上述两个地方后，执行加压缩目录下的build加压缩目录下的build.bat将默认地生成JIRA的war包</li><li>     下载<font color="#ff0000">mysql-connector-java-3.1.12-bin</font>.jar拷贝到Tomcat安装目录的\common\lib下，<font color="#ff0000">请特别注意版本号必须为3.1.12</font></li><li><font color="#ff0000">     <font color="#000000">从</font></font>Atlassian下载<a href="http://www.atlassian.com/software/jira/docs/servers/jars/3.6/jira-jars-tomcat5.zip">jira-jars-tomcat5.zip</a>拷贝到Tomcat安装目录的\common\lib下</li></ol>  10.    配置Tomcat<span class="codefrag">安装目录conf/server.xml,增加   </span><pre class="code"><span style="color: rgb(255, 0, 0);"><font color="#ff0000">useBodyEncodingForURI</font></span><font color="#ff0000"><span style="color: rgb(0, 0, 255);">="true"</span></font><span style="color: rgb(0, 0, 255);"></span></pre><pre class="code"><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Connector </span><span style="color: rgb(255, 0, 0);">port</span><span style="color: rgb(0, 0, 255);">="8080"</span><span style="color: rgb(255, 0, 0);"><br />    maxThreads</span><span style="color: rgb(0, 0, 255);">="150"</span><span style="color: rgb(255, 0, 0);"> minSpareThreads</span><span style="color: rgb(0, 0, 255);">="25"</span><span style="color: rgb(255, 0, 0);"> maxSpareThreads</span><span style="color: rgb(0, 0, 255);">="75"</span><span style="color: rgb(255, 0, 0);"><br />    enableLookups</span><span style="color: rgb(0, 0, 255);">="false"</span><span style="color: rgb(255, 0, 0);"> redirectPort</span><span style="color: rgb(0, 0, 255);">="8443"</span><span style="color: rgb(255, 0, 0);"> acceptCount</span><span style="color: rgb(0, 0, 255);">="100"</span><span style="color: rgb(255, 0, 0);"><br />    debug</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(255, 0, 0);"> connectionTimeout</span><span style="color: rgb(0, 0, 255);">="20000"</span><span style="color: rgb(255, 0, 0);"><br />    disableUploadTimeout</span><span style="color: rgb(0, 0, 255);">="true"</span><span style="color: rgb(255, 0, 0);"> <font color="#ff0000">useBodyEncodingForURI</font></span><font color="#ff0000"><span style="color: rgb(0, 0, 255);">="true"</span></font><span style="color: rgb(0, 0, 255);">/&gt;<font color="#ff0000"><br /></font></span></div></pre></div><div align="left">  11.   创建数据库(我命名为jiradb,使用utf8编码)<br />  12.   创建数据库的使用用户(jirauser)<br />GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on<br />  jiradb.* TO 'jirauser'@'localhost' IDENTIFIED BY 'mypassword';<br />  13.  拷贝dist-tomcat目录下的war包拷贝到tomcat安装目录下的webapps/目录下，拷贝dist-tomcat/tomcat-5/jira.xml到tomcat安装目录下/conf/Catalina/localhost/ 并修改该该文件<br />       删除下列配置(适用于hsqldb)<br /><pre class="code"><font color="#ff0000"> &lt;!-- NOTE: If NOT using hsqldb, delete the next two parameters --&gt;<br />    &lt;!-- Give unused connections 4 secs before eviction. --&gt;<br />    &lt;parameter&gt;<br />      &lt;name&gt;minEvictableIdleTimeMillis&lt;/name&gt;<br />      &lt;value&gt;4000&lt;/value&gt;<br />    &lt;/parameter&gt;<br />    &lt;!-- Check for evictions every 5 secs. --&gt;<br />    &lt;parameter&gt;<br />      &lt;name&gt;timeBetweenEvictionRunsMillis&lt;/name&gt;<br />      &lt;value&gt;5000&lt;/value&gt;<br />    &lt;/parameter&gt;<br /><font color="#000000">修改后的jira.xml文件如下：<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 128, 0);">&lt;!--</span><span style="color: rgb(0, 128, 0);"><br />A sample configuration file for Tomcat 4.1.x and 5.0<br />Customize the docBase attribute, drop in your $CATALINA_HOME/webapps/ (4.1.x) or<br />$CATALINA_HOME/conf/Catalina/localhost/ (5.0) directory and restart Tomcat.<br />Note the JOTM dependencies; you'll need to copy various jars to Tomcat's common/lib/ directory.<br />See http://www.atlassian.com/software/jira/docs/latest/servers/tomcat41.html for details.<br /></span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br /> <br /></span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Context </span><span style="color: rgb(255, 0, 0);">path</span><span style="color: rgb(0, 0, 255);">="/jira"</span><span style="color: rgb(255, 0, 0);"> docBase</span><span style="color: rgb(0, 0, 255);">="C:\usr\Apache\Tomcat5\webapps\jira"</span><span style="color: rgb(255, 0, 0);"> debug</span><span style="color: rgb(0, 0, 255);">="0"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Resource </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="jdbc/JiraDS"</span><span style="color: rgb(255, 0, 0);"> auth</span><span style="color: rgb(0, 0, 255);">="Container"</span><span style="color: rgb(255, 0, 0);"> type</span><span style="color: rgb(0, 0, 255);">="javax.sql.DataSource"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">ResourceParams </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="jdbc/JiraDS"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">driverClassName</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />        </span><span style="color: rgb(0, 128, 0);">&lt;!--</span><span style="color: rgb(0, 128, 0);"> NOTE: if you change the database type, you will need to change it in WEB-INF/classes/entityengine.xml </span><span style="color: rgb(0, 128, 0);">--&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">com.mysql.jdbc.Driver</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">url</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">jdbc:mysql://localhost/jiradb?autoReconnect=true</span><span style="color: rgb(255, 0, 0);">&amp;amp;</span><span style="color: rgb(0, 0, 0);">useUnicode=true</span><span style="color: rgb(255, 0, 0);">&amp;amp;</span><span style="color: rgb(0, 0, 0);">characterEncoding=UTF8</span><span style="color: rgb(255, 0, 0);">&amp;amp;</span><span style="color: rgb(0, 0, 0);">mysqlEncoding=utf8</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">username</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">jirauser</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">password</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">mypassword</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />     </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">factory</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">org.apache.commons.dbcp.BasicDataSourceFactory</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">ResourceParams</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">Resource </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="UserTransaction"</span><span style="color: rgb(255, 0, 0);"> auth</span><span style="color: rgb(0, 0, 255);">="Container"</span><span style="color: rgb(255, 0, 0);"> type</span><span style="color: rgb(0, 0, 255);">="javax.transaction.UserTransaction"</span><span style="color: rgb(0, 0, 255);">/&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">ResourceParams </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="UserTransaction"</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">factory</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">org.objectweb.jotm.UserTransactionFactory</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">jotm.timeout</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />      </span><span style="color: rgb(0, 0, 255);">&lt;</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);">60</span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">value</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />    </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">parameter</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br />  </span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">ResourceParams</span><span style="color: rgb(0, 0, 255);">&gt;</span><span style="color: rgb(0, 0, 0);"><br /></span><span style="color: rgb(0, 0, 255);">&lt;/</span><span style="color: rgb(128, 0, 0);">Context</span><span style="color: rgb(0, 0, 255);">&gt;</span></div>14. 启动tomcat，敲入http://.../jira，应该就能看到JIRA的配置向导了<br />                  （全文完）<br /><br /><br /></font></font></pre><strong></strong></div></div>
		<div id="stickies-count" style="display: none;">0</div>
<img src ="http://www.blogjava.net/lucky/aggbug/44337.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2006-05-02 10:45 <a href="http://www.blogjava.net/lucky/archive/2006/05/02/44337.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用JIRA搭建企业问题跟踪系统(转自Judy Shen的专栏)</title><link>http://www.blogjava.net/lucky/archive/2006/05/01/44301.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Mon, 01 May 2006 12:22:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2006/05/01/44301.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/44301.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2006/05/01/44301.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/44301.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/44301.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 转自：http://blog.csdn.net/judyxm/archive/2006/04/26/678456.asp																																																																																																		版权归原作者--Judy She...&nbsp;&nbsp;<a href='http://www.blogjava.net/lucky/archive/2006/05/01/44301.html'>阅读全文</a><img src ="http://www.blogjava.net/lucky/aggbug/44301.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2006-05-01 20:22 <a href="http://www.blogjava.net/lucky/archive/2006/05/01/44301.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Struts的html:checkBox标签超郁闷的问题</title><link>http://www.blogjava.net/lucky/archive/2006/04/14/41001.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Thu, 13 Apr 2006 16:03:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2006/04/14/41001.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/41001.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2006/04/14/41001.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/41001.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/41001.html</trackback:ping><description><![CDATA[     被Struts的html:checkBox标签使用的小问题郁闷了两天，今天终于找到了解决的办法。如果大家也遇到同样的问题，可以参考。<br /><h4>1）需求： </h4>     当通过菜单进入页面时，页面中的checkbox处于被选中状态，页面提交后forward回本页，对应的checkbox保持提交时的状态，也就是说：如果提交时checkbox是选中状态回来仍然是选中状态；如果用户在提交前将checkbox的勾去掉，回来时checkbox应该为为选中状态。<br /><h4>2）问题：</h4>     这个需求看起来很简单，只需要<br />    1)在对应的form中将checkbox对应的属性设为true就行了：<br />        <b> private boolean syaken = true;</b><br />    2）在对应的jsp中使用html:checkbox标签就行了<br />       <b>&lt;html:checkbox property="syaken"/&gt;</b><br />    但问题是checkbox标签不会去set初始化值为true的checkbox属性，不赋初值时Struts默认赋为false；<br />    从网上找资料有人说可以实现ActionFrom的reset（）方法将对应的属性值设为false，但reset方法是在form实例化以后被调用的，也就是说你初始化的值true将被重置为false，这和直接将属性值设为false没有任何区别，这样做的结果是你从菜单进入页面时checkbox是处于不被选中的状态。<br />   他们之间存在着矛盾，问题的关键就是每次提交时，Struts并没有去重新设置所有checkbox的属性值，而是有选择地（初始化值为false）地进行重新设置。<br /><h4>3)解决办法：</h4>     超级简单，在checkbox后面添加一个和checkbox的属性同名并且value为“false”的隐藏输入框，强迫Struts去重新设置checkbox的属性值：<br />     <b> &lt;html:checkbox property="syaken"/&gt;&amp;nbsp;<br />      <font color="#ff0000">&lt;input type="hidden" name="syaken" value="false"&gt;<br /><br />   </font></b><font color="#ff0000"><font color="#000000">这个问题郁闷了我两天，没想到解决办法这么简单。</font></font><b><font color="#ff0000"><br /><br /></font></b>     <br /><br /><div id="stickies-count" style="display: none;">0</div><img src ="http://www.blogjava.net/lucky/aggbug/41001.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2006-04-14 00:03 <a href="http://www.blogjava.net/lucky/archive/2006/04/14/41001.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>为Openfans配置的eHCache.xml（暂未提交）</title><link>http://www.blogjava.net/lucky/archive/2006/04/04/39093.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Tue, 04 Apr 2006 02:06:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2006/04/04/39093.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/39093.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2006/04/04/39093.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/39093.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/39093.html</trackback:ping><description><![CDATA[昨天答应为openfans在原来的ehcache的基础上增加对象cache。我参考着尝试增加配置如下。由于以前没有用过ehcache，虽然现在没提示没有配置cache对象，但到现在我也对它的原理，配置结构还是一窍不通。如果有哪位知道欢迎交流并对下面的配置进行批评指正。<br />&lt;ehcache&gt;<br /><br />    &lt;!-- Sets the path to the directory where cache .data files are created.<br /><br />        If the path is a Java System Property it is replaced by<br />        its value in the running VM.<br /><br />        The following properties are translated:<br />        user.home - User's home directory<br />        user.dir - User's current working directory<br />        java.io.tmpdir - Default temp file path --&gt;<br />    &lt;diskStore path="java.io.tmpdir" /&gt;<br /><br /><br />    &lt;!--Default Cache configuration. These will applied to caches programmatically created through<br />        the CacheManager.<br /><br />        The following attributes are required:<br /><br />        maxElementsInMemory            - Sets the maximum number of objects that will be created in memory<br />        eternal                        - Sets whether elements are eternal. If eternal,  timeouts are ignored and the<br />        element is never expired.<br />        overflowToDisk                 - Sets whether elements can overflow to disk when the in-memory cache<br />        has reached the maxInMemory limit.<br /><br />        The following attributes are optional:<br />        timeToIdleSeconds              - Sets the time to idle for an element before it expires.<br />        i.e. The maximum amount of time between accesses before an element expires<br />        Is only used if the element is not eternal.<br />        Optional attribute. A value of 0 means that an Element can idle for infinity.<br />        The default value is 0.<br />        timeToLiveSeconds              - Sets the time to live for an element before it expires.<br />        i.e. The maximum time between creation time and when an element expires.<br />        Is only used if the element is not eternal.<br />        Optional attribute. A value of 0 means that and Element can live for infinity.<br />        The default value is 0.<br />        diskPersistent                 - Whether the disk store persists between restarts of the Virtual Machine.<br />        The default value is false.<br />        diskExpiryThreadIntervalSeconds- The number of seconds between runs of the disk expiry thread. The default value<br />        is 120 seconds.<br />    --&gt;<br /><br />    &lt;!-- Queries cache --&gt;<br />    &lt;cache name="org.hibernate.cache.StandardQueryCache"<br />        maxElementsInMemory="1000" eternal="false" timeToLiveSeconds="120"<br />        overflowToDisk="true" /&gt;<br /><br />    &lt;cache name="org.hibernate.cache.UpdateTimestampsCache"<br />        maxElementsInMemory="5000" eternal="true" overflowToDisk="true" /&gt;<br /><br />    &lt;!-- Object cache --&gt;<br />    &lt;cache name="org.openfans.domain.Article"<br />        maxElementsInMemory="50000" eternal="false" overflowToDisk="true"<br />        timeToIdleSeconds="300" /&gt;<br />    &lt;cache name="org.openfans.domain.Auth" maxElementsInMemory="5000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="600" /&gt;<br />    &lt;cache name="org.openfans.domain.Fans" maxElementsInMemory="10000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br />    &lt;cache name="org.openfans.domain.FansVisitTag" maxElementsInMemory="10000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br />    &lt;cache name="org.openfans.domain.Group" maxElementsInMemory="10000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="600" /&gt;<br />    &lt;cache name="org.openfans.domain.Link" maxElementsInMemory="20000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br />    &lt;cache name="org.openfans.domain.RootTag" maxElementsInMemory="20000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br />    &lt;cache name="org.openfans.domain.Tag" maxElementsInMemory="20000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br />        &lt;cache name="org.openfans.domain.TagRelation" maxElementsInMemory="20000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br />    &lt;cache name="org.openfans.domain.UseStatus" maxElementsInMemory="20000"<br />        eternal="false" overflowToDisk="true" timeToIdleSeconds="300" /&gt;<br /><br />    &lt;defaultCache maxElementsInMemory="10000" eternal="true"<br />        overflowToDisk="true" timeToIdleSeconds="120" timeToLiveSeconds="120"<br />        diskPersistent="false" diskExpiryThreadIntervalSeconds="120" /&gt;<br /><br />    &lt;!-- See http://ehcache.sourceforge.net/documentation/#mozTocId258426 for how to configure caching for your objects --&gt;<br />&lt;/ehcache&gt;<br /><div id="stickies-count" style="display: none;">0</div><img src ="http://www.blogjava.net/lucky/aggbug/39093.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2006-04-04 10:06 <a href="http://www.blogjava.net/lucky/archive/2006/04/04/39093.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse 启动参数 </title><link>http://www.blogjava.net/lucky/archive/2006/03/04/33613.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Sat, 04 Mar 2006 10:21:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2006/03/04/33613.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/33613.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2006/03/04/33613.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/33613.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/33613.html</trackback:ping><description><![CDATA[<STRONG>Eclipse 启动参数</STRONG> <BR>&nbsp;&nbsp;&nbsp; 我的系统环境变量中使用的是jdk1.3，为了使用Eclipse我需要使用JDK1.5：<BR><SPAN style="FONT-WEIGHT: bold">1）Eclipse 启动参数：<BR></SPAN>创建一个Eclipse的快捷方式到桌面，点击属性，设置<BR>C:\usr\eclipse\3.1.1\eclipse.exe&nbsp; -nosplash -vm C:\usr\jdk\jdk1.5.0_06\bin\javaw.exe -vmargs -Xms256m -Xmx512m<BR>我的-Xms256 -Xms512设的有点大，大家可以根据自己的需要调整。<BR><BR><SPAN style="FONT-WEIGHT: bold">2）查看Eclipse内存使用情况，垃圾回收<BR></SPAN>在Eclipse<BR>1)eclipse.ini:<BR>-vmargs -Xms128m -Xmx512m<BR>2)在根目录建options文件:<BR>org.eclipse.ui/perf/showHeapStatus=true<BR>3)启动参数（在快捷方式属性中设置）<BR>&nbsp;-debug options -vm C:\usr\jdk\jdk1.5.0_06\bin\javaw.exe<BR><BR>启动之后大家会在底部的状态栏 发现多了内存使用情况的一个bar，还有一个垃圾箱的图标。<BR>在Eclipse运行一段时间点击垃圾箱图标，执行垃圾回收。从数据显示来看，还是有效的。<BR><BR><BR><img src ="http://www.blogjava.net/lucky/aggbug/33613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2006-03-04 18:21 <a href="http://www.blogjava.net/lucky/archive/2006/03/04/33613.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>软件开发思考</title><link>http://www.blogjava.net/lucky/archive/2005/09/20/13536.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Tue, 20 Sep 2005 09:02:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2005/09/20/13536.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/13536.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2005/09/20/13536.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/13536.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/13536.html</trackback:ping><description><![CDATA[   
随着企业应用开发竞争日益激烈，需求变更的更加频繁，而指导软件开发的方法学和各种软件过程也色彩纷呈，百花争艳。除却外部的激烈竞争环境，软件企业自身
也存在各种各样需要面对的难题：开发效率低下，品质问题突出。。。大家都在寻求能更好的方式解决这些问题提高企业的竞争能力的方法。这些方法大概可以分为
三类：1）提高开发人员的素质 2）规范开发过程和开发方法 3）寻找和利用工具；<br>
    对于第一种方法是各个企业追求的终极目标，提高开发人员的素质无外乎通过1）企业培训2）员工利用个人时间充电
3）高水平的项目锻炼。这三种方法对于企业和个人的投入都有要求，是最难实施也是最慢见成效的一种方法，但不管怎么样这是企业要获得持续发展的必然途径。<br>
   
对于第二种方法是每个软件企业都在实施的一种通用的方法，现在存在着很多开发过程和开发方法，重量级的如：RUP（统一软件过程）、CMM、CMMI，轻
量级的如：自适应、水晶、XP等。这些方法和过程自身就是相互学习，互相融合，在企业实施过程中也都是结合各自的优点，形成自有的一套体系。企业在能够形
成自己一套行之有效的体系前必须不断经历尝试，裁减再尝试这样一个痛苦的过程的，是不可能一蹴而就的。最好的方法是就是从已经形成自有特色的企业处获得指
导。<br>
    第三种也是最为大家认同的:使用工具，工具使得执行开发过程变得简单。对于一些大家公认的开发过程的步骤，比如：代码规范：CODE STANDARD<br>
# 测试驱动开发：TEST-DRIVEN DEVELOPMENT<br>
# 日构建：DAILY BUILDING<br>
# 持续集成：CONTINUOUS INTEGRATION<br>
# 小步发布：SMALL RELEASE<br>
  
我们都能找到工具很好的进行支持。这种方法除去学习工具所花去的时间，应该是最容易看见成效的。而且充分利用工具能够很快地帮助新手进入角色，比如说：利
用代码规范检测工具checkstyle，我们很容易帮助新手规范代码的编写，而不用我们人为地进行codereview检察代码规范。<br>
    所以，我的观点是尽可能地利用已有的工具遵循软件企业既定的软件开发过程来完善软件的开发，应该善假于物。<img src ="http://www.blogjava.net/lucky/aggbug/13536.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2005-09-20 17:02 <a href="http://www.blogjava.net/lucky/archive/2005/09/20/13536.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>OpenCms 6安装</title><link>http://www.blogjava.net/lucky/archive/2005/08/30/11580.html</link><dc:creator>Lucky</dc:creator><author>Lucky</author><pubDate>Tue, 30 Aug 2005 10:48:00 GMT</pubDate><guid>http://www.blogjava.net/lucky/archive/2005/08/30/11580.html</guid><wfw:comment>http://www.blogjava.net/lucky/comments/11580.html</wfw:comment><comments>http://www.blogjava.net/lucky/archive/2005/08/30/11580.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://www.blogjava.net/lucky/comments/commentRss/11580.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/lucky/services/trackbacks/11580.html</trackback:ping><description><![CDATA[<P><!--StartFragment --> </P>
<H2>OpenCms 6安装</H2>
<P>本页提供如何使用<A href="http://jakarta.apache.org/tomcat/index.html" target=extern>Tomcat</A> 和 <A href="http://www.mysql.com/" target=extern>MySql</A>来安装opencms的信息. 所有组件的安装被单步描述. 请确保每步安装都成功. </P>
<P><STRONG>1. 安装JDK(版本为 1.4或更高）</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>安装JDK(版本为 1.4或更高） (从SUN <CODE><A href="http://java.sun.com/products/j2se/" target=_blank>http://java.sun.com/products/j2se/</A></CODE>公司获得). 关于如何在你的操作系统安装这些组件的细节，请参考sun提供的相关文档。. 你应该确认安装 Java的<I>SDK</I>, 而不是同样可以从SUN获得的 <I>JRE</I> (JAVA 运行时环境). JRE<I>不能</I> 满足OpenCms的运行!</P>
<P><EM><B>重点</B>:</EM> OpenCms 6 仅仅在JDK1.4和JDK5.0中测试通过.一些属性不能从JDK1.4以前版本的JDK中获得.</P>
<P><STRONG><EM>提示: </EM></STRONG>FreeBSD用户 应该需要安装最新的资源以便系统使用<CODE>rndcontrol</CODE>功能. 否则的话，安装将会中断. 例如, 在一台网卡暂用IRQs 9的机器上, 你可以执行 </P>
<P><CODE>rndcontrol -s 9</CODE></P></BLOCKQUOTE>
<P><STRONG>2. 安装 Tomcat</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>OpenCms 6.0 需要一种兼容Servlet 2.3 / JSP 1.2标准的容器. Tomcat 4 是这种标准的参考实现. 本发布版在Tomcat 4.1.x, Tomcat 5.0.x 和 Tomcat 5.5.x下测试通过. 对于Tomcat不支持新标准的更老的版本 (3.x以前) 不能够使用OpenCms 6.0. Tomcat 4.0.x 没有测试,但是应该能够工作.<BR></P>
<P>从<CODE><A href="http://jakarta.apache.org/tomcat/index.html" target=extern>http://jakarta.apache.org/tomcat/index.html</A></CODE> 下载Tomcat并安装到你选择的文件夹中. 这就是 <CODE>CATALINA_HOME</CODE> 指定的文件夹. 不要忘记设置环境变量<CODE>CATALINA_HOME</CODE> 和 <CODE>JAVA_HOME</CODE>.</P>
<P>通过在standalone模式下运行Tomcat并检测实例来测试Tomcat的安装. 提示: Tomcat在standalone模式下使用8080端口. 如果你愿意,你可以将servlet引擎和web服务器结合，像Apache Web Server <CODE><A href="http://www.apache.org/httpd.html" target=extern>http://www.apache.org/httpd.html</A></CODE> . 如何和servlet引擎结合，请参考webserver文档.</P>
<P><EM><STRONG>提示:</STRONG></EM> 你可以从opencms.org一份额外的文档来知道如何使用mod_proxy在Apache httpd和Tomcat上安装OpenCms。 </P>
<P><EM><STRONG>提示:</STRONG></EM> 旧版本的OpenCms需要设置Java文件编码使用 <CODE>-dfile.encoding=....</CODE> . 对于OpenCms 6已经不再需要了.</P></BLOCKQUOTE>
<P><STRONG>3.安装 MySQL</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>从<CODE><A href="http://www.mysql.com/downloads/index.html" target=extern>http://www.mysql.com/downloads/index.html</A></CODE> 下载安装MySQL。(参考MySQL在线文档 <CODE><A href="http://www.mysql.com/documentation/index.html" target=extern>http://www.mysql.com/documentation/index.html</A></CODE> ). MySQL Windows版被安装到 <CODE>C:\</CODE>盘，应该使用 <CODE>%MYSQL_HOME%/bin/mysqld -install</CODE>注册Windows服务.</P>
<P>OpenCms能够使用MySQL 3.2, 4.0和4.1.由于效率原因我们推荐MySQL 4.1,或者最少4.0.</P>
<P>通过运行服务(WIN32下)或者执行 <CODE>%MYSQL_HOME%/bin/mysqld</CODE>(UNIX)启动MySQL服务器.</P>
<P>在继续前请通过启动MySQL监视器 (在MySQL安装目录的bin文件夹下执行 <CODE>mysql</CODE>)测试MySQL正常运行. 数据库正常工作如果执行monitor后出现MySQL提示符 . 键入exit退出MySQL监视器，继续下一步.</P>
<P><STRONG><EM>重点:</EM></STRONG> 你应该增加MySQL配置文件(通常为<CODE>my.ini</CODE>)中配置变量<CODE>max_allowed_packet</CODE>的值. 对于OpenCms, limit应该尽可能的高, 推荐设置：<CODE>max_allowed_packet=16M</CODE>。</P></BLOCKQUOTE>
<P><STRONG>4. 部署opencms.war文件</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>从下载的二进制压缩包ZIP文件中拷贝<CODE>opencms.war</CODE>文件到<CODE>CATALINA_HOME/webapps/</CODE>目录下. 使用Tomcat的真实安装路径替换<CODE>CATALINA_HOME</CODE>变量.</P>
<P>启动(或重启)Tomcat. Tomcat现在将部署应用OpenCms.</P>
<P><EM><STRONG>重点</STRONG>:</EM>确保OpenCms的War包的完整性 <CODE>*.war</CODE> . OpenCms只能以War的方式部署. 确定Tomcat解包war文件并且创建<CODE>CATALINA_HOME/webapps/opencms/</CODE>目录, 并将OpenCms文件拷贝到这个目录. 你的Servlet容器默认的配置 / 环境不能解包<CODE>*.war</CODE>文件.如果这样请手动解包. 对于解压缩工具, <CODE>*.war</CODE>文件和<CODE>*.zip</CODE>文件只是扩展名不同而已.如果没有解包<CODE>*.war</CODE>文件，OpenCms安装向导将显示一个警告并不允许你继续。 </P></BLOCKQUOTE>
<P><STRONG>5. 使用安装向导安装OpenCms</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>在浏览器中键入以下地址 <CODE><A href="http://www.default.opencmstest.com/setup">http://localhost:8080/opencms/setup</A></CODE>开始安装. 依赖于你的配置, 你可以替换 <CODE>localhost</CODE> 为你的服务名. 端口8080仅仅在以standalone模式启动Tomcat时使用.</P>
<P>遵循OpenCms的安装想到提示,使用“标准”安装. 它将建立OpenCms数据库并倒入所有能够获得&nbsp;的模块到系统zho能够. 对于正常的Mysql和Tomcat安装在一台服务器上的情况，所有的默认设置都将满足你的需求.</P>
<P><EM><STRONG>重点:</STRONG></EM> Make sure you disable all popup blockers for the server URL you installed OpenCms on. Otherwise you will not be able to log in to the OpenCms Workplace.</P></BLOCKQUOTE>
<P><STRONG>6. 现在你的系统已经就绪</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>现在你的系统可以使用了. 你可以使用用户名: <CODE>Admin</CODE> 和密码: <CODE>admin</CODE>登陆了. 请尽可能快地更改密码. OpenCms默认的登陆URL: <CODE><A href="file:///system/login/">http://localhost:8080/opencms/opencms/system/login/</A></CODE></P></BLOCKQUOTE>
<P><STRONG>7. 安全提示</STRONG></P>
<BLOCKQUOTE dir=ltr>
<P>在成功安装OpenCms后，你应该检查一下安全方面的设置.</P>
<P>首先通过用户设置（Workplace主窗口中“checkbox”图标）更改OpenCms用户<CODE>Admin</CODE>的密码.</P>
<P>然后给Mysql数据库添加一个密码.在Mysql命令行下敲入如下命令.</P>
<BLOCKQUOTE><PRE>use mysql;
insert into user values ('localhost', 'opencmsuser', password('XXXXX'),\
    'N','N','N','N','N','N','N','N','N','N','N','N','N','N');
insert into db values ('localhost', 'opencms', 'opencmsuser',\
    'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
flush privileges;
</PRE></BLOCKQUOTE>
<P>确认替换<CODE>opencmsuser</CODE> 和 <CODE>opencms</CODE> 以及数据库你在安装时设置.</P>
<P>不要忘记<CODE>opencms.properties</CODE>文件中添加新的用户名和密码. . 只有新的用户能够连接大盘OpenCms表.更多的信息请参阅MySQL文档.</P></BLOCKQUOTE><img src ="http://www.blogjava.net/lucky/aggbug/11580.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/lucky/" target="_blank">Lucky</a> 2005-08-30 18:48 <a href="http://www.blogjava.net/lucky/archive/2005/08/30/11580.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>