锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲中文无码a∨在线观看,亚洲精品天堂成人片AV在线播放,亚洲综合小说久久另类区http://m.tkk7.com/19851985lili/category/19127.html鈽淕ivE mE HapPy 鈽? zh-cnThu, 29 May 2008 04:12:34 GMTThu, 29 May 2008 04:12:34 GMT60JAVA涓敤TOMCAT榪炴帴姹犵敤娉?/title><link>http://m.tkk7.com/19851985lili/articles/203775.html</link><dc:creator>鈽溾櫏鈽濵engChuChen</dc:creator><author>鈽溾櫏鈽濵engChuChen</author><pubDate>Thu, 29 May 2008 03:46:00 GMT</pubDate><guid>http://m.tkk7.com/19851985lili/articles/203775.html</guid><wfw:comment>http://m.tkk7.com/19851985lili/comments/203775.html</wfw:comment><comments>http://m.tkk7.com/19851985lili/articles/203775.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/19851985lili/comments/commentRss/203775.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/19851985lili/services/trackbacks/203775.html</trackback:ping><description><![CDATA[<p>鍦═OMCAT涓嬬殑conf鏂囦歡澶逛腑server.xml榪涜閰嶇疆,涓嬪垪浠g爜鍐欏湪</host>鏍囩涔嬪墠</p> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 95%; word-break: break-all; padding-top: 4px; border-bottom: windowtext 0.5pt solid"> <div><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff"><</span><span style="color: #800000">Context </span><span style="color: #ff0000">path</span><span style="color: #0000ff">="/mystruts"</span><span style="color: #ff0000"> reloadable</span><span style="color: #0000ff">="true"</span><span style="color: #ff0000"> docBase</span><span style="color: #0000ff">="C:MyEclipse Enterprise Workbench 5.1.0 GAworkspacemybbs"</span><span style="color: #ff0000"> workDir</span><span style="color: #0000ff">="C:MyEclipse Enterprise Workbench 5.1.0 GAworkspacemybbsWEB-INFclasses"</span><span style="color: #ff0000"> debug</span><span style="color: #0000ff">="5"</span><span style="color: #ff0000"> crossContext</span><span style="color: #0000ff">="true"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">Resource </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="jdbc/mysql"</span><span style="color: #ff0000"> auth</span><span style="color: #0000ff">="Container"</span><span style="color: #ff0000"> type</span><span style="color: #0000ff">="javax.sql.DataSource"</span><span style="color: #ff0000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />               maxActive</span><span style="color: #0000ff">="100"</span><span style="color: #ff0000"> maxIdle</span><span style="color: #0000ff">="30"</span><span style="color: #ff0000"> maxWait</span><span style="color: #0000ff">="10000"</span><span style="color: #ff0000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />               username</span><span style="color: #0000ff">="root"</span><span style="color: #ff0000"> password</span><span style="color: #0000ff">="root"</span><span style="color: #ff0000"> driverClassName</span><span style="color: #0000ff">="com.mysql.jdbc.Driver"</span><span style="color: #ff0000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />               url</span><span style="color: #0000ff">="jdbc:mysql://localhost:3306/bbsdb?autoReconnect=true"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"></</span><span style="color: #800000">Context</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000"><!--</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />    閰嶇疆铏氭嫙鐩綍<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #008000">--></span></div> </div> <p>鐒跺悗鍦ㄩ厤緗伐紼嬩腑鐨刉EB.XML鏂囦歡涓姞涓?/p> <p> </p> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 95%; word-break: break-all; padding-top: 4px; border-bottom: windowtext 0.5pt solid"> <div><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff"><</span><span style="color: #800000">resource-ref</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">res-ref-name</span><span style="color: #0000ff">></span><span style="color: #000000">jdbc/mysql</span><span style="color: #0000ff"></</span><span style="color: #800000">res-ref-name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">res-type</span><span style="color: #0000ff">></span><span style="color: #000000">javax.sql.DataSource</span><span style="color: #0000ff"></</span><span style="color: #800000">res-type</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">res-auth</span><span style="color: #0000ff">></span><span style="color: #000000">Container</span><span style="color: #0000ff"></</span><span style="color: #800000">res-auth</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">res-sharing-scope</span><span style="color: #0000ff">></span><span style="color: #000000">Shareable</span><span style="color: #0000ff"></</span><span style="color: #800000">res-sharing-scope</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">resource-ref</span><span style="color: #0000ff">></span></div> </div> <p> </p> <p>寤轟竴涓暟鎹闂眰綾?涓嬮潰鏄釜綆鍗曠殑涓涓被</p> <p> </p> <div style="border-right: windowtext 0.5pt solid; padding-right: 5.4pt; border-top: windowtext 0.5pt solid; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; border-left: windowtext 0.5pt solid; width: 95%; word-break: break-all; padding-top: 4px; border-bottom: windowtext 0.5pt solid"> <div><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">import</span><span style="color: #000000"> java.sql.Connection;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.sql.ResultSet;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.sql.SQLException;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.sql.Statement;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.naming.Context;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.naming.InitialContext;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.naming.NamingException;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.sql.DataSource;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /> <img id="_245_268_Open_Image" onclick="this.style.display='none'; document.getElementById('_245_268_Open_Text').style.display='none'; document.getElementById('_245_268_Closed_Image').style.display='inline'; document.getElementById('_245_268_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="_245_268_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_245_268_Closed_Text').style.display='none'; document.getElementById('_245_268_Open_Image').style.display='inline'; document.getElementById('_245_268_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span id="_245_268_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/** */</span><span id="_245_268_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /> * </span><span style="color: #808080">@author</span><span style="color: #008000"> xu<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /> *<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /> </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /> <img id="_292_1613_Open_Image" onclick="this.style.display='none'; document.getElementById('_292_1613_Open_Text').style.display='none'; document.getElementById('_292_1613_Closed_Image').style.display='inline'; document.getElementById('_292_1613_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="_292_1613_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_292_1613_Closed_Text').style.display='none'; document.getElementById('_292_1613_Open_Image').style.display='inline'; document.getElementById('_292_1613_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" align="top" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> DataBase </span><span id="_292_1613_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_292_1613_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    Context ctx</span><span style="color: #000000">=</span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> Connection con </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> DataSource ds </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> Statement st </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> ResultSet rs </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">浠庤繛鎺ユ睜鑾峰緱鏁版嵁婧?/span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000">  DataBase() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> NamingException, SQLException<br /> <img id="_509_644_Open_Image" onclick="this.style.display='none'; document.getElementById('_509_644_Open_Text').style.display='none'; document.getElementById('_509_644_Closed_Image').style.display='inline'; document.getElementById('_509_644_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_509_644_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_509_644_Closed_Text').style.display='none'; document.getElementById('_509_644_Open_Image').style.display='inline'; document.getElementById('_509_644_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_509_644_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_509_644_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        ctx </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> InitialContext();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">.ds </span><span style="color: #000000">=</span><span style="color: #000000"> (DataSource)ctx.lookup(</span><span style="color: #000000">"</span><span style="color: #000000">java:comp/env/jdbc/mysql</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">this</span><span style="color: #000000">.con </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">this</span><span style="color: #000000">.ds.getConnection();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">浠庨昏緫B(tài)EAN鑾峰彇SQL,榪斿洖ReultSet</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> ResultSet getStatement(String sql) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_739_841_Open_Image" onclick="this.style.display='none'; document.getElementById('_739_841_Open_Text').style.display='none'; document.getElementById('_739_841_Closed_Image').style.display='inline'; document.getElementById('_739_841_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_739_841_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_739_841_Closed_Text').style.display='none'; document.getElementById('_739_841_Open_Image').style.display='inline'; document.getElementById('_739_841_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_739_841_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_739_841_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        st </span><span style="color: #000000">=</span><span style="color: #000000"> con.createStatement();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        rs </span><span style="color: #000000">=</span><span style="color: #000000"> st.executeQuery(sql);<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        System.out.println(sql);<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> rs;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">瀹炵幇瀵硅〃鐨勫錛屽垹錛屾敼</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">int</span><span style="color: #000000"> upTable(String sql) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_912_990_Open_Image" onclick="this.style.display='none'; document.getElementById('_912_990_Open_Text').style.display='none'; document.getElementById('_912_990_Closed_Image').style.display='inline'; document.getElementById('_912_990_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_912_990_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_912_990_Closed_Text').style.display='none'; document.getElementById('_912_990_Open_Image').style.display='inline'; document.getElementById('_912_990_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_912_990_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_912_990_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        st </span><span style="color: #000000">=</span><span style="color: #000000"> con.createStatement();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">int</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> st.executeUpdate(sql);<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> i;<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">鍒涘緩浜嬪姟鍜岃繕鍘熶簨鍔?/span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> createCommit(</span><span style="color: #0000ff">boolean</span><span style="color: #000000"> autoCommit) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_1074_1110_Open_Image" onclick="this.style.display='none'; document.getElementById('_1074_1110_Open_Text').style.display='none'; document.getElementById('_1074_1110_Closed_Image').style.display='inline'; document.getElementById('_1074_1110_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1074_1110_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1074_1110_Closed_Text').style.display='none'; document.getElementById('_1074_1110_Open_Image').style.display='inline'; document.getElementById('_1074_1110_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_1074_1110_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1074_1110_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        con.setAutoCommit(autoCommit);<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">鎻愪氦浜嬪姟</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> toCommit() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_1167_1186_Open_Image" onclick="this.style.display='none'; document.getElementById('_1167_1186_Open_Text').style.display='none'; document.getElementById('_1167_1186_Closed_Image').style.display='inline'; document.getElementById('_1167_1186_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1167_1186_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1167_1186_Closed_Text').style.display='none'; document.getElementById('_1167_1186_Open_Image').style.display='inline'; document.getElementById('_1167_1186_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_1167_1186_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1167_1186_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        con.commit();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">鍥炴粴浜嬬墿</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> backCommit() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_1245_1266_Open_Image" onclick="this.style.display='none'; document.getElementById('_1245_1266_Open_Text').style.display='none'; document.getElementById('_1245_1266_Closed_Image').style.display='inline'; document.getElementById('_1245_1266_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1245_1266_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1245_1266_Closed_Text').style.display='none'; document.getElementById('_1245_1266_Open_Image').style.display='inline'; document.getElementById('_1245_1266_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_1245_1266_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1245_1266_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        con.rollback();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">鍏抽棴Connection</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> closeConnection() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_1338_1383_Open_Image" onclick="this.style.display='none'; document.getElementById('_1338_1383_Open_Text').style.display='none'; document.getElementById('_1338_1383_Closed_Image').style.display='inline'; document.getElementById('_1338_1383_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1338_1383_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1338_1383_Closed_Text').style.display='none'; document.getElementById('_1338_1383_Open_Image').style.display='inline'; document.getElementById('_1338_1383_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_1338_1383_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1338_1383_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(con </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img id="_1360_1380_Open_Image" onclick="this.style.display='none'; document.getElementById('_1360_1380_Open_Text').style.display='none'; document.getElementById('_1360_1380_Closed_Image').style.display='inline'; document.getElementById('_1360_1380_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1360_1380_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1360_1380_Closed_Text').style.display='none'; document.getElementById('_1360_1380_Open_Image').style.display='inline'; document.getElementById('_1360_1380_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="_1360_1380_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1360_1380_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />            con.close();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">鍏抽棴Statement</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> closeStatement() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_1453_1496_Open_Image" onclick="this.style.display='none'; document.getElementById('_1453_1496_Open_Text').style.display='none'; document.getElementById('_1453_1496_Closed_Image').style.display='inline'; document.getElementById('_1453_1496_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1453_1496_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1453_1496_Closed_Text').style.display='none'; document.getElementById('_1453_1496_Open_Image').style.display='inline'; document.getElementById('_1453_1496_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_1453_1496_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1453_1496_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(st </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img id="_1474_1493_Open_Image" onclick="this.style.display='none'; document.getElementById('_1474_1493_Open_Text').style.display='none'; document.getElementById('_1474_1493_Closed_Image').style.display='inline'; document.getElementById('_1474_1493_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1474_1493_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1474_1493_Closed_Text').style.display='none'; document.getElementById('_1474_1493_Open_Image').style.display='inline'; document.getElementById('_1474_1493_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="_1474_1493_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1474_1493_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />            st.close();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    <br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: #008000">//</span><span style="color: #008000">鍏抽棴ResultSet</span><span style="color: #008000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: #000000">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> closeResultSet() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> SQLException<br /> <img id="_1566_1609_Open_Image" onclick="this.style.display='none'; document.getElementById('_1566_1609_Open_Text').style.display='none'; document.getElementById('_1566_1609_Closed_Image').style.display='inline'; document.getElementById('_1566_1609_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1566_1609_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1566_1609_Closed_Text').style.display='none'; document.getElementById('_1566_1609_Open_Image').style.display='inline'; document.getElementById('_1566_1609_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />    </span><span id="_1566_1609_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1566_1609_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: #0000ff">if</span><span style="color: #000000">(rs </span><span style="color: #000000">==</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /> <img id="_1587_1606_Open_Image" onclick="this.style.display='none'; document.getElementById('_1587_1606_Open_Text').style.display='none'; document.getElementById('_1587_1606_Closed_Image').style.display='inline'; document.getElementById('_1587_1606_Closed_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="_1587_1606_Closed_Image" style="display: none" onclick="this.style.display='none'; document.getElementById('_1587_1606_Closed_Text').style.display='none'; document.getElementById('_1587_1606_Open_Image').style.display='inline'; document.getElementById('_1587_1606_Open_Text').style.display='inline';" alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span><span id="_1587_1606_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">...</span><span id="_1587_1606_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />            rs.close();<br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: #000000"><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /><br /> <img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div> </div> <img src ="http://m.tkk7.com/19851985lili/aggbug/203775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/19851985lili/" target="_blank">鈽溾櫏鈽濵engChuChen</a> 2008-05-29 11:46 <a href="http://m.tkk7.com/19851985lili/articles/203775.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Tomcat鏈嶅姟鍣?/title><link>http://m.tkk7.com/19851985lili/articles/93172.html</link><dc:creator>鈽溾櫏鈽濵engChuChen</dc:creator><author>鈽溾櫏鈽濵engChuChen</author><pubDate>Thu, 11 Jan 2007 07:01:00 GMT</pubDate><guid>http://m.tkk7.com/19851985lili/articles/93172.html</guid><wfw:comment>http://m.tkk7.com/19851985lili/comments/93172.html</wfw:comment><comments>http://m.tkk7.com/19851985lili/articles/93172.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/19851985lili/comments/commentRss/93172.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/19851985lili/services/trackbacks/93172.html</trackback:ping><description><![CDATA[ <pre>絎簩鑺?Tomcat鏈嶅姟鍣? 2.1 綆浠? Jsp鏄痵un鍦╯ervlet鍩虹涓婂彂灞曡屾潵鐨勪竴縐嶆柊鐨剋eb寮鍙戝伐鍏鳳紝鍦ㄥ浗澶朎jb+jsp/servlet+搴旂敤鏈嶅姟鍣?鏁版嵁搴撳凡緇? 宸茬粡鎴愪負(fù)鐢?shù)瀛愬晢鍔$珯鐐圭殑娴佽鏋舵瀯銆倀omcat3.1瀹炵幇浜?jiǎn)鏈鏂扮殑servlet2.2鍜宩sp1.1鏍囧噯錛宻un涔?鏄帹鑽愪嬌鐢? tomcat,鏈枃浠嬬粛tomcat3.1鍦≧edHat涓嬬殑瀹夎銆? 2.2 鎵闇璧勬簮 2.2.1 鎵闇鍖? 1. jdk1_2_2-linux-i386.tar.gz http://java.sun.com 2. jakarta-tomcat.tar.gz, http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/ 3. mod_jserv.so http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/linux/i386/ 2.2.2 鎵闇閰嶇疆鏂囦歡 /etc/profile /usr/local/jakarta-tomcat/conf/server.xml /usr/local/jakarta-tomcat/conf/tomcat.properties 2.3 瀹夎姝ラ 1. 瀹夎JDK cd /usr/local tar zxvf /root/jdk1_2_2-linux-i386.tar.gz mv jdk1.2.2 jdk 2. 淇敼/etc/profile鐜鏂囦歡 娣誨姞浠ヤ笅鍐呭錛? JAVA_HOME=/usr/local/jdk CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib PATH=$PAHT:/usr/local/jdk/bin:/usr/local/jre/bin export JAVA_HOME export CLASSPATH 3. 瀹夎Tomcat cd /usr/local tar zxvf /root/jakarta-tomcat.tar.gz 4. 鏁村拰Apache鍜孴omcat cd /home/httpd mkdir libexec cp /root/mod_jserv.so /home/httpd/libexec cp /usr/local/jakarta-tomcat/conf/tomcat.conf /etc/httpd/conf vi /etc/httpd/conf/httpd.conf 鍦ㄦ枃浠舵湯灝炬坊鍔犱互涓嬪唴瀹癸細(xì) Include /etc/httpd/conf/tomcat-apache.conf 2.3 閰嶇疆鍜岀鐞員OMCAT 1. /usr/local/jakarta-tomcat/conf/server.xml 2.4 嫻嬭瘯鍙?qiáng)绠$悊鍔炴? 2.4.1 嫻嬭瘯鏂規(guī)硶 1. 鍦ㄦ湇鍔″櫒涓婁換鎰忕洰褰曚笅閿叆java錛岀湅鐪嬫湁娌℃湁鎵ц 2. 嫻忚http://192.168.0.1:8080鐪嬬湅鏈夋病鏈夐偅鍙彲鐖辯殑灝忕尗灝辨垚鎷夛紒錛? 3. 嫻忚http://192.168.0.1/examples/jsp/index.html鏉ユ祴璇旳pache鍜孴omcat鏄惁鎴愬姛鏁村拰銆? 2.5 鍏朵粬鍙傝冭祫鏂? 1. 鍏充簬tomcat鐨勪俊鎭鍒癶ttp://jakarta.apache.org 2. 鍏朵粬jsp鏂歸潰鐨勪俊鎭彲浠ュ埌http://java.sun.com/jsp 2.6 灝忕粨 Tomcat鍜孞serv涔嬮棿鐨勫尯鍒槸浠涔堬紵 Tomcat==Jserv錛屼笉鏄悧錛? 榪欐槸涓縐嶆櫘閫氱殑璇В銆侸serv鏄寤虹珛涓轟笌闃垮笗濂囦竴璧蜂嬌鐢ㄧ殑Servlet API 2.0鍏煎鐨勫鍣ㄣ俆omcat鏄畬鍏ㄩ噸鍐? 騫朵笖鍏煎Servlet API 2.2鍜孞SP 1.1鐨勪竴縐嶅鍣ㄣ俆omcat浣跨敤浜?jiǎn)涓浜汮serv鐨勪唬鐮侊紝灝ゅ叾鏄疛serv鐨勯樋甯曞鏈嶅姟 鍣ㄩ傞厤鍣?adapter)錛屼絾鏄浉浼肩殑鍦版柟浠呮鑰屽凡銆? 絎笁鑺?Apache+Jserv鏁村拰 涓銆侀渶瑕佺殑婧愮爜鍖咃細(xì) jdk-1_2_2_006-linux-i386.tar.gz jsdk20-solaris2-sparc[1].tar.Z ApacheJServ-1.1.2.tar.gz 浜屻佸畨瑁呰繃紼? 1銆佸畨瑁卝dk1.2.2 (1) 瑙e紑鍘嬬緝鍖? tar xvzf jdk1_2_2_006-linux-i386.tar.gz (2) 鐩綍鐨勫鐞? ln -s jdk1.2.2 jdk ln -s jdk/jre jre (3) 璁劇疆$JAVA_HOME,$CLASSPATH vi /root/.bash_profile 鍔犲叆錛? JAVA_HOME=/usr/local/jdk export JAVA_HOME CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib export CLASSPATH PATH=$PATH:/usr/local/jdk/bin:/usr/local/jre/bin 娉細(xì)JDK鐨勫畨瑁呭埌姝ょ粨鏉熴? 2.瀹夎JSDK (1) tar zxvf jsdk20-solaris2-sparc[1].tar.Z (2) 灝嗕駭鐢熺殑JSDK2.0鐩綍縐誨埌 /usr/local/JSDK2.0 mv JSDK2.0 /usr/local/JSDK2.0 娉細(xì)JSDK鐨勫畨瑁呭埌姝ょ粨鏉熴? 3.Apache鍜孞serv鐨勯潤(rùn)鎬佹販鍚堢紪璇? 鎵璋撶殑闈?rùn)鎬佺紪璇戞槸鎸囧皢Jserv緙栬瘧榪沘pache閲? (1) tar xvzf apache_1.3.12.tar.gz tar xvzf ApacheJServ-1.1.2.tar.gz (2) cd apache_1.3.12 ./configure --prefix=/usr/local/apache (3) 閰嶇疆a(chǎn)pache jserv緙栬瘧鍙傛暟 cd ../ApacheJServ-1.1.2 ./configure \ --prefix=/usr/local/jserv \ --with-apache-src=../apache_1.3.12 \ --with-jdk-home=/usr/local/ jdk1.2.2 \ --with-java-platform=2 \ --with-JSDK=/usr/local/JSDK2.0/lib/jsdk.jar make make install (4) 緙栬瘧apache鍜宎pache jserv cd ../apache_1.3.12 ./configure \ --prefix=/usr/local/apache \ --activate-module=src/modules/jserv/libjserv.a make make install (5) 鎵ц/usr/local/apache/bin/httpd -l媯(gè)鏌ヤ竴涓媘od_jserv鏄惁緙栬瘧榪沘pache浜? (6) 鏇存敼閰嶇疆鏂囦歡 /usr/local/apache/conf/httpd.conf 娣誨姞 Include /usr/local/jserv/etc/jserv.conf (7) 鏇存敼閰嶇疆鏂囦歡 /usr/local/jserv/etc/jserv.conf SetHandler jserv-status order deny,allow deny from all 鍔犲叆浣犵殑淇′換涓繪満allow from xxxx 榪欐牱鍦ㄤ俊浠諱富鏈轟笂閫氳繃http://yourserver/jserv/(娉ㄦ剰鍚庨潰榪欎釜"/"涓嶈兘灝戯級(jí)鍙互鐪嬪埌浣犵殑apache jserv鐨勯厤 緗俊鎭傛帴鐫鍦?usr/local/jserv/servlets涓嬫斁鍏ヤ綘鑷繁鐨剆ervlet class瀹為獙涓涓嬫晥鏋滃惂錛屾祴璇曠粨鏋滆〃鏄庡湪 redhat6.2涓嬫病鏈変腑鏂囨樉紺洪棶棰橈紝涓鍒噊k!鍏朵粬鍏充簬servlet zone鐨勮緗乴oad balance絳夌瓑璇峰弬鑰僡pache jserv 鏂囨。鍜宩ava.apache.org緗戠珯銆傛敞錛欰pache鍜孞serv娣峰悎緙栬瘧鍒版緇撴潫 涓夈佹渶鍚庣殑嫻嬭瘯錛? 1錛庡惎鍔╝pache錛?usr/local/apache/bin/apachectl start 2錛庣敤嫻忚鍣ㄦ祴璇昲ttp://yourserver/servlets/IsItWorking 鐪嬭浜?jiǎn)Yes,It's working!浜?jiǎn)鍚楀Q熶綘鎴愬姛浜?jiǎn)锛佸Q? 絎洓鑺? Linux涓婣pache銆乸hp3銆丮ySQL鐨勬暣鍚? 涓銆佹墍闇鐨勫畨瑁呭寘 apache_1.3.19.tar.gz php-4.0.4.tar.gz mysql-3.23.32.tar.gz 娉ㄦ剰錛氫互涓婂潎涓烘簮浠g爜鑰岄潪RPM鍖? 浜屻佽蔣浠跺畨瑁? 1. 瀹夎MySQL (1) 瑙e紑鍘嬬緝鍖? cd /usr/local tar -zvxf mysql-3.23.32.tar.gz (2) 灝嗕駭鐢焟ysql-3.23.32鐩綍縐誨埌/usr/local/mysql mv mysql-3.23.32 /usr/local/mysql (3) 緙栬瘧MySQL cd /usr/local/mysql ./configure --prefix=/usr/local/mysql make make install (4) 瀹夎鏁版嵁搴撴枃浠? /usr/local/mysql/scripts/mysql_install_db /usr/local/mysql/bin/safe_mysqld & (5) MySQL鎺堟潈鎿嶄綔 MySQL鐨勫瓨鍙栨帶鍒舵妧鏈姛鑳藉己澶э紝姣擯ostgres鏇村姞鍏鋒湁鐏墊椿鎬с侻ySQL閲囩敤鐨勭敤鎴峰悕鍜屽瘑鐮佺殑鍔犲瘑綆楁硶涓嶶nix緋葷粺 涓嶅敖鐩稿悓錛屽叾鐢ㄦ埛鍚嶅彲浠ラ暱杈?6涓瓧絎︺傚厛浠oot鐧婚檰MySQl錛岀劧鍚庡湪MySQL鐨勬彁紺虹涓嬮敭鍏? grant all privileges on *.* to thj@localhost identified by 鈥榯hj鈥?with grant option; 榪欐牱錛屾棤璁? 鐢ㄦ埛thj浠庝粈涔堝湴鏂圭櫥闄嗗埌榪欏彴鏈嶅姟鍣ㄩ兘鍙互浣跨敤MySQL銆? (6) MySQL鏁版嵁搴撶畝鍗曟搷浣滆鍙? 鍒涘緩鏁版嵁搴? 鍛戒護(hù)錛歝reate database 鏁版嵁搴撳悕錛? 鍒犻櫎鏁版嵁搴? 鍛戒護(hù)錛歞ro p database 鏁版嵁搴撳悕錛? 鏌ヨMySQL涓兘鏈変粈涔堟暟鎹簱 鍛戒護(hù)錛歴how databases; 鏇存敼褰撳墠浣跨敤鐨勬暟鎹簱 鍛戒護(hù)錛歶se tbl_name 鍒涘緩鏁版嵁琛? 鍛戒護(hù)錛歝reate table tbl_name ( column_specs ); 璇存槑錛歵bl_name 鏁版嵁琛ㄥ悕 column_specs 琛ㄤ腑鍒楃殑璇存槑 鏌ヨ鎸囧畾鐨勬暟鎹〃鐨勭粨鏋? 鍛戒護(hù)錛歞escribe tbl_name; 鏌ヨ鏁版嵁搴撲腑閮芥湁浠涔堟暟鎹〃 鍛戒護(hù)錛歴how tables; 澧炲姞鏂拌褰? 鍛戒護(hù)錛歩nsert into tbl_name (col_name1,col_name2,鈥? values錛坴alues1錛寁alues2,鈥?錛? 璇存槑錛歩nsert璇彞綆鍗曟槗鐢紝浣嗘槸瀹冧篃鏈変竴涓己闄鳳紝灝辨槸姣忔鍙兘鎻掑叆涓鏉¤褰曘? 鎵歸噺瑁呰澆鏁版嵁 鍛戒護(hù)錛歭oad data local infile 鈥渇ilename.txt鈥?into table tbl_name; 璇存槑錛歁ySQl鐨勭増鏈笉寰椾綆浜?.22.15錛屽惁鍒檒oad data local涓嶈搗浣滅敤銆? 璇ヨ鍙ュ疄闄呬笂鏄皟鐢ㄤ簡(jiǎn)/usr/bin/mysqlimport銆? 媯(gè)绱俊鎭? 鍛戒護(hù)錛歴elect 瑕侀夋嫨鐨勪笢瑗?from 涓涓垨澶氫釜琛?where 鏁版嵁蹇呴』婊¤凍鐨勬潯浠? 娉細(xì)鍦∕ySQL涓紝姣忛敭鍏ヤ竴鏉″懡浠や箣鍚庯紝鍦ㄥ懡浠よ鐨勭粨灝鵑兘瑕佹暡鍏モ滐紱鈥濓紝鏍囧織鏄竴鏉″懡浠わ紝鎴栬呮暡鍥炶濺涔嬪悗鍐? 鏁瞘o錛屾彁紺虹郴緇熸墽琛屼笂杈圭殑鍛戒護(hù)錛涘彟澶栵紝鍦ㄥ鏁板叧浜嶮ySQL鐨勫弬鑰冧功涓紝鍛戒護(hù)閮戒負(fù)澶у啓錛屽疄闄呬笂灝忓啓涔熷彲浠ワ紱榪? 鏈夛紝use璇彞鍙互涓嶅姞鈥滐紱鈥濓紝榪欐槸鎵鏈塎ySQL璇█涓敮涓涓涓笉闇瑕佸姞鈥滐紱鈥濆氨鍙互鎵ц鐨勮鍙ャ? 娉細(xì)MySQL鐨勫畨瑁呭埌姝ょ粨鏉? 2. Apache銆丳HP3鐨勬販鍚堢紪璇? (1) 瑙e紑鍘嬬緝鍖? cd /usr/local tar xvzf apache_1.3.19.tar.gz tar xvzf php-4.0.4.tar.gz mv apache_1.3.19.tar.gz apache mv php-4.0.4.tar.gz php (2) 鎶夾pache鐨勫畨瑁呯洰褰曞畾涓?usr/local/apache cd apache ./configure --prefix=/usr/local/apache --with-port=8000 (3) 閰嶇疆鏀寔MySQL銆佷綔涓篈pache鍔熻兘妯″潡銆佽窡韙彉閲忔湁鏁? cd ../php ./configure --with-mysql=/usr/local/mysql --with- apache=../apache --enable-track-vars 鈥搘ith-pgsql=/usr/lib/pgsql --prefix=/usr/local/apache/php 鈥搘ith-config-file-path=/usr/local/apache/php make make install 娉細(xì)PHP鐨勫畨瑁呭埌姝ょ粨鏉? (4) 閰嶇疆Apache錛屽姞鍏HP4鐨勬ā鍧? cd ../apache cp /usr/local/php/libs/libphp4.a \ /usr/local/apache/src/modules/php4 ./configure --prefix=/usr/local/apache --activate- module=src/modules/php4/libphp4.a --with-port=8000 make make install 娉細(xì)APACHE瀹夎瀹屾瘯 3錛庢洿鏀歸厤緗? (1) 鎶妏hp.ini鏂囦歡鎷峰埌/usr/local/apache/php鐩綍涓? cd ../php cp php.ini-dist /usr/local/apache/php/php4.ini (2) 鏇存敼Apache鐨勯厤緗枃浠? cd /usr/local/apache/conf vi httpd.conf 鎵懼埌 AddType application/x-httpd-php .php4 鎶婂畠鍓嶅ご鐨?鍙風(fēng)粰鍒犱簡(jiǎn)褰撶劧涔熷彲鍔犱竴琛? AddType application/x-httpd-php3.asp 榪欐牱鐢‵rontPage緙栬緫浼?xì)鏂逛究涓鐐廣? 鏈鍚庤繍琛?usr/local/apache/bin/apachectl start鍚姩apache榪涚▼銆? </pre> <img src ="http://m.tkk7.com/19851985lili/aggbug/93172.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/19851985lili/" target="_blank">鈽溾櫏鈽濵engChuChen</a> 2007-01-11 15:01 <a href="http://m.tkk7.com/19851985lili/articles/93172.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://wuaiav.com" target="_blank">午夜两性色视频免费网站</a>| <a href="http://289qq.com" target="_blank">日韩精品无码永久免费网站</a>| <a href="http://singbomb.com" target="_blank">午夜视频免费在线观看</a>| <a href="http://ttvv55.com" target="_blank">亚洲熟妇中文字幕五十中出</a>| <a href="http://www09191z.com" target="_blank">成年大片免费高清在线看黄</a>| <a href="http://2xpp.com" target="_blank">亚洲午夜精品一级在线播放放</a>| <a href="http://chaikexin.com" target="_blank">老司机免费午夜精品视频</a>| <a href="http://jufandev.com" target="_blank">亚洲XX00视频</a>| <a href="http://ystchem.com" target="_blank">国产免费一区二区三区免费视频 </a>| <a href="http://xx2015.com" target="_blank">久久久久免费视频</a>| <a href="http://ldcatv.com" target="_blank">亚洲午夜久久久久久久久久</a>| <a href="http://1212777.com" target="_blank">99视频免费在线观看</a>| <a href="http://miyatb.com" target="_blank">亚洲AV成人片色在线观看 </a>| <a href="http://www-64000.com" target="_blank">亚洲av片在线观看</a>| <a href="http://wwwk47.com" target="_blank">亚洲av中文无码</a>| <a href="http://whlnrsqsie.com" target="_blank">a级毛片黄免费a级毛片</a>| <a href="http://1515m.com" target="_blank">亚洲精品视频在线观看视频</a>| <a href="http://438266.com" target="_blank">国产三级在线观看免费</a>| <a href="http://woaisouluo.com" target="_blank">久久亚洲精品高潮综合色a片</a>| <a href="http://dnf1000.com" target="_blank">亚洲国产精品13p</a>| <a href="http://fanqi5.com" target="_blank">久久青草免费91线频观看站街</a>| <a href="http://51nianyefan.com" target="_blank">亚洲av无码成人精品国产</a>| <a href="http://dnf1000.com" target="_blank">国产亚洲精品免费</a>| <a href="http://bxd888.com" target="_blank">中文字幕在线免费观看视频</a>| <a href="http://www-7479.com" target="_blank">亚洲伊人久久大香线蕉苏妲己</a>| <a href="http://by6215.com" target="_blank">114一级毛片免费</a>| <a href="http://wxxwy.com" target="_blank">免费播放美女一级毛片</a>| <a href="http://cebeke.com" target="_blank">日韩亚洲人成在线综合日本 </a>| <a href="http://langtuojidian.com" target="_blank">成人免费无遮挡无码黄漫视频</a>| <a href="http://bdgxhome.com" target="_blank">精品亚洲福利一区二区</a>| <a href="http://wwwse09.com" target="_blank">国产亚洲福利精品一区</a>| <a href="http://xcdys.com" target="_blank">国产福利在线免费</a>| <a href="http://lshwork.com" target="_blank">rh男男车车的车车免费网站</a>| <a href="http://hdznzdh.com" target="_blank">亚洲欧洲在线观看</a>| <a href="http://0515zs.com" target="_blank">国产女高清在线看免费观看</a>| <a href="http://f4f8.com" target="_blank">a级毛片免费完整视频</a>| <a href="http://9akk.com" target="_blank">亚洲欧洲专线一区</a>| <a href="http://626393.com" target="_blank">亚洲AV无码专区国产乱码电影 </a>| <a href="http://616kb.com" target="_blank">卡1卡2卡3卡4卡5免费视频</a>| <a href="http://lai228.com" target="_blank">久久精品免费网站网</a>| <a href="http://51708695.com" target="_blank">亚洲人成在线中文字幕</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>