锘??xml version="1.0" encoding="utf-8" standalone="yes"?>春暖花开亚洲性无区一区二区,亚洲国产成人久久综合,MM131亚洲国产美女久久http://m.tkk7.com/tufanshu/category/4974.html娌℃湁椋庨洦韜茬殑榪囷紝 娌℃湁鍧庡澐涓嶅繀璧扳︹? zh-cnWed, 09 Feb 2011 09:42:39 GMTWed, 09 Feb 2011 09:42:39 GMT60cas server 3.4.5 閮ㄧ講鍦╳eblogic闂璁板綍http://m.tkk7.com/tufanshu/archive/2011/02/09/343972.html闆湴瀛ら縛闆湴瀛ら縛Wed, 09 Feb 2011 08:16:00 GMThttp://m.tkk7.com/tufanshu/archive/2011/02/09/343972.htmlhttp://m.tkk7.com/tufanshu/comments/343972.htmlhttp://m.tkk7.com/tufanshu/archive/2011/02/09/343972.html#Feedback0http://m.tkk7.com/tufanshu/comments/commentRss/343972.htmlhttp://m.tkk7.com/tufanshu/services/trackbacks/343972.html 2.cas server webapp 濡傛灉浠ar鐨勬柟寮忓彂甯冿紝浼氬洜涓簂og4j.xml鐨勯棶棰樿屼笉鑳芥甯稿彂甯冿紝鍏蜂綋鍘熷洜榪樻病鏈夊畬鍏ㄥ紕娓呮錛屼絾鏄鏋滀互瑙e紑鍚庣殑鏂囦歡澶圭洰褰曠殑鏂瑰紡鍙戝竷鍒欐病鏈夐棶棰樸?br />


闆湴瀛ら縛 2011-02-09 16:16 鍙戣〃璇勮
]]>
cas server浣跨敤mysql鏁版嵁搴撳拰oralce鏁版嵁搴撶殑宸紓http://m.tkk7.com/tufanshu/archive/2011/01/26/343543.html闆湴瀛ら縛闆湴瀛ら縛Wed, 26 Jan 2011 01:05:00 GMThttp://m.tkk7.com/tufanshu/archive/2011/01/26/343543.htmlhttp://m.tkk7.com/tufanshu/comments/343543.htmlhttp://m.tkk7.com/tufanshu/archive/2011/01/26/343543.html#Feedback0http://m.tkk7.com/tufanshu/comments/commentRss/343543.htmlhttp://m.tkk7.com/tufanshu/services/trackbacks/343543.html 璁よ瘉鐢ㄦ埛鐨剆ql璇彞鍦╩ysql涓嬩負錛?br /> select password from user_login where username=? and enabled=true
鑰屽湪oracle涓嬪簲璇ヤ負
select password from user_login where username=? and enabled=1
涓昏鐢變簬oralce鍜宮ysql瀵筨oolean瀛楁鐨勫鐞嗕笉涓鑷村鑷寸殑銆?br />


闆湴瀛ら縛 2011-01-26 09:05 鍙戣〃璇勮
]]>
cas server logout鐨勯棶棰?/title><link>http://m.tkk7.com/tufanshu/archive/2011/01/21/343318.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Fri, 21 Jan 2011 05:38:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2011/01/21/343318.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/343318.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2011/01/21/343318.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/343318.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/343318.html</trackback:ping><description><![CDATA[<p>cas server logout鍚庯紝榛樿鏄仠鐣欏湪cas鐨勯鍑洪〉闈紝涓鑸垜浠渶瑕侀噸鏂拌漿鍚戝埌瀹㈡埛绔綉绔欑殑鐧誨綍鎴栨槸鐩稿叧鐨勯〉闈紝涓鑸渶瑕佽繘琛屼竴涓嬮厤緗?/p> <p>1.cas-server绔紝閰嶇疆鏂囦歡涓?WEB-INFO/cas-servlet.xml涓殑logoutController</p> <p> <bean id="logoutController" class="org.jasig.cas.web.LogoutController"  <br />      p:centralAuthenticationService-ref="centralAuthenticationService"  <br />      p:logoutView="casLogoutView"  <br />      p:warnCookieGenerator-ref="warnCookieGenerator"  <br />      p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator"   <br />      <span style="color: red;"> p:followServiceRedirects="true"/</span>></p> <img src ="http://m.tkk7.com/tufanshu/aggbug/343318.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2011-01-21 13:38 <a href="http://m.tkk7.com/tufanshu/archive/2011/01/21/343318.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cas閰嶇疆鍏ㄦ敾鐣?/title><link>http://m.tkk7.com/tufanshu/archive/2011/01/21/343290.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Fri, 21 Jan 2011 02:06:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2011/01/21/343290.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/343290.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2011/01/21/343290.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/343290.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/343290.html</trackback:ping><description><![CDATA[<p> 緇忚繃灝嗚繎涓ゅぉ鐨勬祴璇曪紝鍙傝冧紬澶氱綉鍙嬬殑璐$尞錛岀粓浜庡畬鎴愪簡瀵筩as鐨勪富瑕侀厤緗拰嫻嬭瘯錛岀幇璁板綍濡備笅</p> <p>鍩烘湰闇姹傦細</p> <p>1.cas server-3.4.5,casclient-3.2錛堝畼鏂圭増鏈級錛屽潎鍙湪cas瀹樻柟緗戠珯涓嬭澆錛?a >http://www.jasig.org</a></p> <p>2.浣跨敤浣庢垚鏈殑http鍗忚榪涜浼犺緭錛屼亢涔頒笉璧穝sl璇佷功</p> <p>3.閫氳繃jdbc榪涜鐢ㄦ埛楠岃瘉</p> <p>4.闇瑕侀氳繃casserver鎻愪緵闄ょ櫥褰曠敤鎴峰悕浠ュ鐨勯檮鍔犱俊鎭?/p> <p>鍙傝冭祫鏂欙細</p> <p>1.cas瀹樻柟緗戠珯鐨勭敤鎴峰府鍔╂墜鍐屽拰wiki</p> <p>2.緗戝弸“鍩庡競鐚庝漢”鐨刡log錛?a >http://yuzhwe.javaeye.com/blog/830143</a></p> <p>3.緗戝弸“鎮熺┖鎮熼亾”鐨刡log錛?a >http://llhdf.javaeye.com/blog/764385</a></p> <p>4.鍏朵粬緗戝弸璐$尞鐨勭浉鍏崇殑blog錛岄兘鏄氳繃google鍑烘潵錛屽氨涓嶄竴涓鍒楀嚭浜嗭紝涓騫惰嚧璋紒錛侊紒</p> <p>濂戒簡錛屼笅闈㈣繘鍏ユ棰橈紝濡傛灉鎮ㄤ笉鎯蟲祴璇曚腑鍑虹幇寮傚父鎯呭喌錛屾垨鏄幏鍙栦笉鍒扮浉鍏蟲暟鎹紝璇峰叧娉ㄦ枃涓殑綰㈣壊瀛椾綋閮ㄥ垎銆?/p> <p>錛?錛変嬌鐢╤ttp鍗忚鐨勮緗紝濡傛灉鎮ㄤ篃鍍忔垜涓鏍鳳紝涔頒笉璧穝sl鏁板瓧璇佷功錛屽瀹夊叏鐨勮姹備篃涓嶆槸鐗瑰埆鐨勬悶錛屼笅闈㈢殑閰嶇疆灝卞彲浠ュ府鍔╄В鍐寵繖涓棶棰橈細</p> <p>鍦╟as-server-webapp涓殑/WEB-INF/spring-configuration/ticketGrantingTicketCookieGenerator.xml鏂囦歡涓湁濡備笅閰嶇疆</p> <p><bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"<br />   p:cookieSecure="true"   <span style="color: red;">  //榛樿涓簍rue錛屼嬌鐢╤ttps,濡傛灉鍙渶瑕乭ttp錛屼慨鏀逛負false鍗沖彲<br /> </span>  p:cookieMaxAge="-1"<br />   p:cookieName="CASTGC"<br />   p:cookiePath="/cas" /></p> <p> 錛?錛変嬌鐢╦dbc鏁版嵁婧愯繘琛岀敤鎴瘋璇侊紝闇瑕佷慨鏀筩as鐨刟uthenticationHandlers鏂瑰紡錛屽湪鏂囦歡/WEB-INF/deployerConfigContext.xml鏈夊涓嬮厤緗細</p> <p><property name="authenticationHandlers"><br />    <list><br />     <!--<br />      | This is the authentication handler that authenticates services by means of callback via SSL, thereby validating<br />      | a server side SSL certificate.<br />      +--><br />     <bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"<br />      p:httpClient-ref="httpClient" /><br />     <!--<br />      | This is the authentication handler declaration that every CAS deployer will need to change before deploying CAS <br />      | into production.  The default SimpleTestUsernamePasswordAuthenticationHandler authenticates UsernamePasswordCredentials<br />      | where the username equals the password.  You will need to replace this with an AuthenticationHandler that implements your<br />      | local authentication strategy.  You might accomplish this by coding a new such handler and declaring<br />      | edu.someschool.its.cas.MySpecialHandler here, or you might use one of the handlers provided in the adaptors modules.<br />      +--><br />     <!--<bean class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" />--><br />    <span style="color: red;">  <bean  class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler"><br />          <property name="dataSource" ref="dataSource" /><br />         </span><span style="color: red;"><property name="sql" value="select password from userInfo where username=? and enabled=true" /><br />          //鐢ㄦ埛瀵嗙爜緙栫爜鏂瑰紡</span><span style="color: red;"><br />          <property name="passwordEncoder"<br />            ref="passwordEncoderBean"/><br />          </bean>  <br /> </span>   </list><br />   </property></p> <p>璇ュ睘鎬т腑鐨刲ist鍙鐢ㄤ竴涓璇侀氳繃鍗沖彲錛屽緩璁皢綰㈣壊閮ㄥ垎鏀懼湪絎竴浣嶏紝濡傛灉紜鍙敤jdbc涓縐嶆柟寮忥紝鍏朵粬璁よ瘉鏂瑰紡鍧囧彲鍒犻櫎銆傚彟澶栭渶瑕佸湪鍦ㄦ枃浠朵腑娣誨姞datasoure鍜宲assordEncoder涓や釜bean錛屽涓?/p> <p><!-- Data source definition --><br />  <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"><br />   <property name="driverClassName"><br />     <value>com.mysql.jdbc.Driver</value><br />   </property><br />   <property name="url"><br />     <value>jdbc:mysql://localhost:3306/test?useUnicode=true&amp;characterEncoding=utf-8</value>   <span style="color: red;"> //濡傛灉浣跨敤mysql鏁版嵁搴擄紝搴旇鍔犱笂鍚庨潰鐨勭紪鐮佸弬鏁幫紝鍚﹀垯鍙兘瀵艱嚧瀹㈡埛绔TGT紲ㄦ嵁鏃犳硶璇嗗埆鐨勯棶棰?br /> </span>  </property><br />   <property name="username"><value>root</value></property><br />   <property name="password"><value>password</value></property><br />  </bean><br />  <bean id="passwordEncoderBean" class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder"><br />         <constructor-arg value="SHA1" /> <span style="color: red;"> //cas <br /> server榛樿鏀寔MD5鍜孲HA1涓ょ緙栫爜鏂瑰紡錛屽鏋滈渶瑕佸叾浠栫殑緙栫爜鏂瑰紡渚嬪SHA256,512絳夛紝鍙嚜琛屽疄鐜皁rg.jasig.cas.authentication.handler.PasswordEncoder鎺ュ彛<br /> </span>    </bean></p> <p>闄勫姞澶囨敞錛氬鏋滄偍鏄嬌鐢╟as server鐨勬簮鐮佽嚜琛岀紪璇戠殑璇濓紝闇瑕佸湪cas-server-web妯″潡鐨刾om.xml涓坊鍔犲涓嬫ā鍧楃殑渚濊禆錛?/p> <p><dependency><br />        <groupId>${project.groupId}</groupId><br />        <artifactId>cas-server-support-jdbc</artifactId><br />        <version>${project.version}</version><br />   </dependency>   </p> <p>騫舵坊鍔犲搴旀暟鎹簱鐨刯dbc鐨刯ar鍖呫?/p> <p>錛?錛夎cas server鎻愪緵鏇村鐨勭敤鎴鋒暟鎹叡瀹㈡埛绔嬌鐢?/p> <p>閫氳繃嫻嬭瘯錛岀敱浜巆as鐨勪唬鐮佹洿鏂拌繃紼嬩腑鐨勫彉鍖栬緝澶э紝鎵浠ュ寘鍏煎鐨勯棶棰樺ソ鍍忎竴鐩村瓨鍦紝鍦ㄦ祴璇曚腑鎴戝氨紕板埌榪囷紝鑺辮垂鏃墮棿姣旇緝澶氾紝寤鴻鍚屽浠湪浣跨敤榪囩▼涓嬌鐢ㄥ畼鏂圭殑鏈鏂扮殑鍙戝竷鐗堟湰銆傚湪鎴戜嬌鐢ㄧ殑榪欎釜鐗堟湰涓紝璇峰弬鑰冨墠闈㈢殑鍏充簬server鍜宑lient绔殑鐗堟湰璇存槑錛屽簲璇ユ病鏈夊寘鍐茬獊鐨勯棶棰橈紝嫻嬭瘯閫氳繃銆備笅闈㈣繘琛岄厤緗紝閰嶇疆鏂囦歡錛?WEB-INF/deployerConfigContext.xml<br /> <property name="credentialsToPrincipalResolvers"><br />    <list><br />        <!--<bean class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver" />--><br />     <!-- modify on 2011-01-18,add user info --><br />     <bean class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver" > <br />     <span style="color: red;">  <property name="attributeRepository" >   //涓鴻璇佽繃鐨勭敤鎴風殑<font color="#000000">Principal娣誨姞灞炴?/font><br />       <ref local="attributeRepository"/><br />      </property> <br /> </span>    </bean><br />       <bean<br />      class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver" /><br />    </list><br />   </property><br /> <span style="color: red;"> 淇敼璇ユ枃浠朵腑榛樿鐨?font color="#ff0000"> <font color="#ff0000">attributeRepositorybean閰嶇疆</font><br /> </font></span><!-- 鍦ㄨ繖閲岄厤緗幏鍙栨洿澶氱敤鎴風殑淇℃伅 --><br />  <bean id="attributeRepository" class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao"><br />   <constructor-arg index="0" ref="dataSource" /><br />   <constructor-arg index="1" value="select id as UId, password_hint as ph from userInfo where username=? and enabled=true" /><br />   <property name="queryAttributeMapping"><br />    <map><br />    <entry key="username" value="uid"/><!-- 榪欓噷蹇呴』榪欎箞鍐欙紝緋葷粺浼氳嚜宸卞尮閰嶏紝璨屼技鍜寃here璇彞鍚庨潰鐨勭敤鎴峰悕瀛楁鐨勬嫾鍐欐病鏈変粈涔堝叧緋?--><br />    </map><br />   </property><br />    <!-- 瑕佽幏鍙栫殑灞炴у湪榪欓噷閰嶇疆 --><br />   <property name="resultAttributeMapping"><br />    <map><br />    <entry key="UId" value="userId" /> //key涓哄搴旂殑鏁版嵁搴撳瓧孌靛悕縐幫紝value涓烘彁渚涚粰瀹㈡埛绔幏鍙栫殑灞炴у悕瀛楋紝緋葷粺浼氳嚜鍔ㄥ~鍏呭?br />    <entry key="ph" value="passwordHint" />   <br />    </map><br />   </property><br /> </bean> <br /> <span style="color: red;"> 澶囨敞錛氱綉涓婃湁寰堝鐨勫叧浜庤繖涓殑閰嶇疆錛屼絾鏄鏋滄偍浣跨敤鐨勬槸鎴戞彁渚涚殑鐗堟湰鎴栨槸楂樹簬榪欎釜鐗堟湰錛屽氨搴旇璞′笂闈㈣繖鏍烽厤緗紝鏃犵敤璐ㄧ枒錛岀綉涓婂ぇ閮ㄥ垎鐨勯厤緗兘鏄熀浜?br /> person-directory-impl,person-directory-api <br /> 1.1宸﹀彸鐨勭増鏈紝鑰屾渶鏂扮殑cas浣跨敤鐨勬槸1.5鐨勭増鏈紝緇忚繃鏌ョ湅婧愪唬鐮佸拰api docs紜畾鏈鏂扮増鏈殑灞炴у弬鏁板涓婇厤緗?/span></p> <p><span style="color: red;">淇敼璇ml鏂囦歡涓渶鍚庝竴涓粯璁ょ殑serviceRegistryDao bean涓殑灞炴у叏閮ㄦ敞閲婃帀錛屾垨鑰呭垹闄わ紝<br /> 榪欎釜bean涓殑RegisteredServiceImpl鐨刬gnoreAttributes灞炴у皢鍐沖畾鏄惁娣誨姞attributes灞炴у唴瀹癸紝榛樿涓篺alse:涓嶆坊鍔狅紝鍙湁鍘繪帀榪欎釜閰嶇疆錛?br /> cas server鎵嶄細灝嗚幏鍙栫殑鐢ㄦ埛鐨勯檮鍔犲睘鎬ф坊鍔犲埌璁よ瘉鐢ㄧ殑<font style="color: red;" color="#000000">Principal鐨刟ttributes涓幓錛屾垜鍦ㄨ繖閲岀姱榪囪繖鏍風殑閿欒錛屾渶鍚庤繕鏄氳繃璺熻釜婧愮爜鎵嶅彂鐜扮殑銆?/font><br /> <bean<br />   id="serviceRegistryDao"<br />         class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"><br />         <!--<br />             <property name="registeredServices"><br />                 <list><br />                     <bean class="org.jasig.cas.services.RegisteredServiceImpl"><br />                         <property name="id" value="0" /><br />                         <property name="name" value="HTTP" /><br />                         <property name="description" value="Only Allows HTTP Urls" /><br />                         <property name="serviceId" value="http://**" /><br />                     </bean></span></p> <p><span style="color: red;">                    <bean class="org.jasig.cas.services.RegisteredServiceImpl"><br />                         <property name="id" value="1" /><br />                         <property name="name" value="HTTPS" /><br />                         <property name="description" value="Only Allows HTTPS Urls" /><br />                         <property name="serviceId" value="https://**" /><br />                     </bean></span></p> <p><span style="color: red;">                    <bean class="org.jasig.cas.services.RegisteredServiceImpl"><br />                         <property name="id" value="2" /><br />                         <property name="name" value="IMAPS" /><br />                         <property name="description" value="Only Allows HTTPS Urls" /><br />                         <property name="serviceId" value="imaps://**" /><br />                     </bean></span></p> <p><span style="color: red;">                    <bean class="org.jasig.cas.services.RegisteredServiceImpl"><br />                         <property name="id" value="3" /><br />                         <property name="name" value="IMAP" /><br />                         <property name="description" value="Only Allows IMAP Urls" /><br />                         <property name="serviceId" value="imap://**" /><br />                     </bean><br />                 </list><br />             </property>--><br />            </bean></span></p> <p> 淇敼WEB-INF\view\jsp\protocol\2.0\casServiceValidationSuccess.jsp鏂囦歡錛屽涓嬶細</p> <p><%@ page session="false"%><br /> <%@ taglib prefix="c" uri="<a %</a>><br /> <%@ taglib uri="<a prefix="fn"%><br /> <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'><br />  <cas:authenticationSuccess><br />   <cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.id)}</cas:user><br />   <c:if test="${not empty pgtIou}"><br />    <cas:proxyGrantingTicket>${pgtIou}</cas:proxyGrantingTicket><br />   </c:if><br />   <c:if test="${fn:length(assertion.chainedAuthentications) > 1}"><br />    <cas:proxies><br />     <c:forEach var="proxy" items="${assertion.chainedAuthentications}"<br />      varStatus="loopStatus" begin="0"<br />      end="${fn:length(assertion.chainedAuthentications)-2}" step="1"><br />      <cas:proxy>${fn:escapeXml(proxy.principal.id)}</cas:proxy><br />     </c:forEach><br />    </cas:proxies><br />   </c:if><br />  <span style="color: red;">  <c:if<br />    test="${fn:length(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.attributes)<br /> <br /> > <br /> 0}"><br />    <cas:attributes><br />     <c:forEach <br /> var="attr"<br />      items="${assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.attributes}"<br />      varStatus="loopStatus" <br /> begin="0"<br />      end="${fn:length(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.attributes)-1}"<br />      step="1"><br />      <cas:${fn:escapeXml(attr.key)}>${fn:escapeXml(attr.value)}</cas:${fn:escapeXml(attr.key)}><br />     </c:forEach><br />    </cas:attributes><br />   </c:if><br /> </span> </cas:authenticationSuccess><br /> </cas:serviceResponse><br /> 瀹㈡埛绔厤緗?<br /> 1.榪囨護鍣–AS Validation Filter錛?br /> <filter><br />   <filter-name>CAS Validation Filter</filter-name><br />   <filter-class><span style="color: red;"> org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</span></filter-class><br />   <init-param><br />     <param-name>casServerUrlPrefix</param-name><br />     <param-value>http://domainserver:8081/cas</param-value><br />   </init-param><br /> </filter><br /> 鍦ㄥ鎴風鑾峰彇淇℃伅<br /> AttributePrincipal principal = (AttributePrincipal) request.getUserPrincipal();<br /> String loginName = principal.getName();//鑾峰彇鐢ㄦ埛鍚?br /> Map<String, Object> attributes = principal.getAttributes();<br /> if(attributes != null) {<br />  System.out.println(attributes.get("userId"));<br />  System.out.println(attributes.get("passwordHint")); <br /> }</p> <p> </p> <p><br />  <br /> </p> <img src ="http://m.tkk7.com/tufanshu/aggbug/343290.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2011-01-21 10:06 <a href="http://m.tkk7.com/tufanshu/archive/2011/01/21/343290.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JForum 鐨?SSO闆嗘垚鐨勯棶棰樿В鍐?/title><link>http://m.tkk7.com/tufanshu/archive/2008/06/26/210852.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Thu, 26 Jun 2008 08:54:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2008/06/26/210852.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/210852.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2008/06/26/210852.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/210852.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/210852.html</trackback:ping><description><![CDATA[鍏充簬JForum璁哄潧鐨勫熀鏈儏鍐靛氨涓嶅湪姝や粙緇嶄簡錛屽畼鏂圭綉鍧錛歸ww.jforum.net.jforum璁哄潧緋葷粺鐨勫畨瑁呬篃寰堢畝鍗曪紝鎸夌収瀹樻柟鏂囨。錛屾垨鑰単oogle涓涓嬶紝鍩烘湰閮藉彲浠ユ悶瀹氾紝鍦ㄦ灝變笉鍦ㄤ粙緇嶄簡銆傚ぇ姒傛弿榪頒竴涓嬫垜浣跨敤jforum鐨勬儏鍐碉細<br /> 1.搴旂敤鏈嶅姟鍣細weblogic8.1<br /> 2.鏁版嵁搴擄細oracle10g<br /> 3.宸叉湁涓涓數瀛愬晢鍔$綉绔欙紝闇瑕佸拰jforum榪涜綆鍗曠殑闆嗘垚錛屾彁渚泂so錛堝崟鐐圭櫥褰曠殑鍔熻兘錛夈?br /> 4.璇存槑錛氬凡鏈夌殑鐢靛瓙鍟嗗姟緗戠珯鍩熷悕錛歨ttp://www.123.com jforum鍩熷悕錛歸ww.123.com/forum,鐢靛瓙鍟嗗姟緗戠珯鍜宩froum鍦ㄧ粺涓鍙版湇鍔″櫒鍜屽悓涓搴旂敤鏈嶅姟鍣ㄤ笅錛屽鏋滃垎寮鍙兘浼氬瓨鍦╯ession鎴朿ookie璁塊棶鐨勯棶棰樸?br /> 5.JForum鐗堟湰錛?.1.8<br /> 涓嬮潰綆瑕佺殑浠嬬粛涓涓嬩嬌鐢╟ookie榪涜jforum鍜岀數瀛愬晢鍔$綉绔欑殑sso闆嗘垚鐨勮繃紼嬶細<br /> (1)瀹炵幇net.jforum.sso鎺ュ彛<br /> <span style="font-size: 8pt;"><span style="font-family: Verdana;">public class CookieUserSSO implements SSO {<br />     static final Logger  logger       = Logger.getLogger(CookieUserSSO.class.getName());<br /> <br />     public String authenticateUser(RequestContext request) {<br />         // login cookie set by my web LOGIN application<br />         Cookie cookieNameUser = ControllerUtils.getCookie(SystemGlobals<br />                 .getValue(ConfigKeys.COOKIE_NAME_USER));<br />         String username = null;<br /> <br />         if (cookieNameUser != null) {<br />             username = cookieNameUser.getValue();<br />         }<br />         logger.info("cookie username="+username);<br />         System.out.println("cookie username="+username);<br />         return username; // return username for jforum<br />         // jforum will use this name to regist database or set in HttpSession<br />     }<br /> <br />     public boolean isSessionValid(UserSession userSession,<br />             RequestContext request) {<br />         Cookie cookieNameUser = ControllerUtils.getCookie(SystemGlobals<br />                 .getValue(ConfigKeys.COOKIE_NAME_USER)); // user cookie<br />         String remoteUser = null;<br /> <br />         if (cookieNameUser != null) {<br />             remoteUser = cookieNameUser.getValue(); // jforum username<br />         }<br /> <br />         if (remoteUser == null<br />                 && userSession.getUserId() != SystemGlobals<br />                         .getIntValue(ConfigKeys.ANONYMOUS_USER_ID)) {<br />             // user has since logged out<br />             return false;<br />         } else if (remoteUser != null<br />                 && userSession.getUserId() == SystemGlobals<br />                         .getIntValue(ConfigKeys.ANONYMOUS_USER_ID)) {<br />             // anonymous user has logged in<br />             return false;<br />         } else if (remoteUser != null<br />                 && !remoteUser.equals(userSession.getUsername())) {<br />             // not the same user (cookie and session)<br />             return false;<br />         }        <br />         return true; // myapp user and forum user the same. valid user.<br />     }<br /> <br /> }<br /> (2)淇敼SystemGlobals.properties涓殑閰嶇疆錛?br />     淇敼</span></span><span style="font-size: 8pt;"><span style="font-family: Verdana;">SystemGlobals.properties鏂囦歡涓殑涓涓嬪睘鎬х殑鍐呭錛?br />     authentication.type = sso<br />     sso.implementation = net.jforum.sso.CookieUserSSO<br />     sso.redirect = http://www.123.com/login.jsp //鍙牴鎹疄闄呯殑鐧誨綍欏甸潰鍦板潃榪涜淇敼<br /> <br />     cookie.name.user = 123UserInfo //鐢靛瓙鍟嗗姟緗戠珯涓繚瀛樼殑cookie鍚嶇О錛屽彲鏍規嵁瀹為檯鎯呭喌淇敼<br /> <br /> (3)淇敼web搴旂敤涓殑鐧誨綍鍜屾敞閿閮ㄥ垎鐨勯昏緫錛?br />     <strong>鐧誨綍閮ㄥ垎鍔犲叆浠ヤ笅浠g爜錛?br />     </strong></span></span>...<br />     <span style="font-size: 8pt;">Cookie cookie = new Cookie("springTourUserInfo", sname);<br />      cookie.setMaxAge(-1);<br />      cookie.setPath("/");//cookie鍙湪鍚屼竴搴旂敤鏈嶅姟鍣ㄦ湁鏁?br />      response.addCookie(cookie);</span><br />    ...<br />     <span style="font-size: 8pt;"><strong>娉ㄩ攢閮ㄥ垎鍔犲叆浠ヤ笅浠g爜錛?/strong></span><strong></strong><br />     ......<br />       <span style="font-size: 8pt;">Cookie cookie = new Cookie("springTourUserInfo", "");<br />       cookie.setMaxAge(0); // delete the cookie.<br />       cookie.setPath("/");<br />       response.addCookie(cookie);</span> <br />     ......<br /> <span style="font-size: 8pt;">(4)鍦ㄧ數瀛愬晢鍔$綉绔欏鍔犺鍧涚殑閾炬帴錛?br />     <a href="/forum">璁哄潧</a><br /> <br /> 鍩烘湰閰嶇疆瀹屾暣錛屾祴璇曢氳繃錛屽鏈夐棶棰橈紝嬈㈣繋浜ゆ祦錛?br /> <br /> 鎰熻阿緗戝弸鎻愪緵鐨勮祫鏂欙細<br /> http://www.lifevv.com/java/doc/20080305224358885.html?page=0<br /> http://www.99inf.net/SoftwareDev/Java/54230.htm錛堜綔鑰咃細鐜嬩繚鏀匡級<br /> <br /> </span><br /> <span style="font-size: 8pt;"><span style="font-family: Verdana;">    <br /> </span></span><br /> <img src ="http://m.tkk7.com/tufanshu/aggbug/210852.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2008-06-26 16:54 <a href="http://m.tkk7.com/tufanshu/archive/2008/06/26/210852.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>apache2.2.6+tomcat5.5.17閰嶇疆璇存槑http://m.tkk7.com/tufanshu/archive/2007/12/24/170126.html闆湴瀛ら縛闆湴瀛ら縛Mon, 24 Dec 2007 10:03:00 GMThttp://m.tkk7.com/tufanshu/archive/2007/12/24/170126.htmlhttp://m.tkk7.com/tufanshu/comments/170126.htmlhttp://m.tkk7.com/tufanshu/archive/2007/12/24/170126.html#Feedback1http://m.tkk7.com/tufanshu/comments/commentRss/170126.htmlhttp://m.tkk7.com/tufanshu/services/trackbacks/170126.html鍚屾牱錛岀粡榪囦笉鏂殑鎽哥儲鍜岀綉鍙嬬殑甯姪錛岀粓浜庢悶瀹氫簡錛氾級錛屼富瑕佺殑闂榪樻槸鍑哄湪鎴戠殑鏈嶅姟鍣ㄤ笂鐨勫師鍥狅紝涓嶇煡閬撲負浠涔堬紝鎴戠殑鏈嶅姟鍣ㄤ笂閮ㄧ講浜唖qlite3.0瀵艱嚧apache2.2.6濮嬬粓鏃犳硶榪愯錛屾繪槸鎻愮ず鎵句笉鍒?libsqlite3.so.0",涓嶅緱浠ワ紝鍙兘鎹㈠彴鏈嶅姟鍣ㄦ祴璇曪紝杞繪澗鎼炲畾錛岀幇灝嗚繃紼嬫弿榪板涓嬶紝涓鍏卞弬鑰冿細
涓.瀹夎apache2.2.6
    1.    tar fvxz httpd-2.2.2.tar.gz
    2.    榪涘叆瑙e帇鍚庣殑鐩綍銆傝繘琛岄厤緗細
          ./configure --prefix=/usr/apache --enable-module=so --enable-proxy --enable-proxy-ajp --enable-forward         --enable-proxy-connect --enable-proxy-http --enable-so --enable-deflate --enable-headers --enable-include
    瑙i噴錛?br />           -- prefix=/usr/apache鏄厤緗皢瑕佸畨瑁呭埌鐨勭洰褰曚綅緗紱
          --enable-module=so閰嶇疆Apache鏀寔Dynamic Shared Objects (DSO)妯″紡;
          --enable-* 閰嶇疆娣誨姞鐩稿簲鐨勬ā鍧?
    3.    緙栬瘧錛堢紪璇戝鏋滀笉鎴愬姛錛岀‘璁や竴涓嬩綘鐨刲inux鏄惁瀹夎鏈夌紪璇戞墍闇瑕佺殑c鐜鍜屽叾浠栭渶瑕佺殑綾誨簱錛夛細
           make
    4.    瀹夎錛?br />             make install
    5.    緙栬緫/usr/apache/conf/httpd.conf鏂囦歡錛屾妸绔彛鏀逛負80錛堝埆璺焧omcat鐨勭鍙e啿紿侊級錛?br />            ServerName:80
浜屻佸畨瑁卼omcat5.5.17
    鐩存帴瑙e帇鍘嬬緝鍖呭埌鎸囧畾鐩綍灝卞彲浠ワ紝鍐嶆灝變笉澶氬皯璇翠簡錛堝綋鐒訛紝鏈濂藉湪榪涜浠ヤ笂涓ら」鎿嶄綔鍓嶅厛鎸夎濂絡dk錛?.5鎴栦互涓婄増鏈級
涓夈佺畝鍗曠殑apche2.2.6+tomcat5.5.17閰嶇疆璇存槑錛?br />     浣跨敤
浣跨敤proxy_ajp鏁村悎apache鍜宼omcat錛岀敱浜嶢pache2.2瀵逛互寰鐗堟湰鏈夎緝澶ф敼鍔?寮曡繘浜唒roxy 妯″潡,鎵浠pache2.2鍜孴omcat5.5鐨勯厤緗渶瑕佺敤鍒癿od_proxy.so絳夋枃浠?涓嶅啀浣跨敤jk 鎴?jk2 絳塼omcat榪炴帴鍣? .鍩烘湰閰嶇疆濡備笅:
(涓)鍔犺澆瑙f瀽妯″潡
    windows涓嬶紝鎴杔inux閲囩敤鍔ㄦ佸姞杞?DSO)妯″紡涓嬮渶閰嶇疆銆傚墠闈㈡垜浠殑linux緙栬瘧鏃舵妸涓嬮潰鐨勬ā鍧楀祵鍏ュ埌浜?nbsp;   apache涓紝鎵浠ヤ笉鐢ㄥ啀鍔犺澆錛屽洜姝や笅闈㈢殑涓よ涔熶笉鐢ㄥ啀httpd.conf鏂囦歡涓坊鍔犱簡
        LoadModule proxy_module modules/mod_proxy.so
        LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
(浜?浣跨敤proxy_ajp浠g悊, 涓嬮潰鐨勯厤緗紝鏄妸鎵鏈夌洰褰曞叏鐢ㄤ唬鐞?br />      浣跨敤vi緙栬緫鍣ㄦ墦寮apache鐨勯厤緗枃浠?conf/httpd.conf,鍦?LoadModule××××××琛岀殑鍚庨潰娣誨姞         浠ヤ笅涓よ鍗沖彲錛?br />         ProxyPass / ajp://127.0.0.1:8009/
        ProxyPassReverse / ajp://127.0.0.1:8009/
(涓?紱佹浣跨敤proxy_ajp浠g悊鐨勭洰褰曪細
     濡傛灉瀵逛簬鏌愪簺鐩綍涓嶆兂浣跨敤proxy_ajp浠g悊杞彂錛屽彲浠ユ寜鐓у涓嬮厤緗紙閰嶇疆鏂瑰紡鍚屼笂闈紙浜岋級鐨勬搷         浣滐級錛?br />       ProxyPass /images/ !      錛堢姝mages鐩綍涓嬬殑鍐呭浣跨敤proxy_ajp浠g悊杞彂錛?br />       閰嶇疆鍒扮幇鍦紝閲嶅惎涓涓媋pache錛屽氨鍙氳繃apache鏉ヨ闂畉omcat鐨勬湇鍔′簡銆?br />
鐗瑰埆楦h阿錛歨ttp://groups.csdn.net/Apache/topic/b70ad273-f66f-4699-83c0-e11d354d262a.aspx



闆湴瀛ら縛 2007-12-24 18:03 鍙戣〃璇勮
]]>
鎵句笉鍒癈.TLD鐨勯棶棰?/title><link>http://m.tkk7.com/tufanshu/archive/2006/12/04/85371.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Mon, 04 Dec 2006 07:27:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2006/12/04/85371.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/85371.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2006/12/04/85371.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/85371.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/85371.html</trackback:ping><description><![CDATA[鍦ㄩ儴緗瞨oller3.0鐨勬簮浠g爜鐨勬椂鍊欙紝姣忔鍚姩tomcat鍚庤闂欏電殑鏃跺欏氨鎶ラ敊錛屾彁紺烘壘涓嶅埌c.tld,浣嗘槸standard.jar鍜宩stl.jar閮戒互鏀懼埌lib鐩綍涓嬩簡錛岄儊闂蜂箣鏋侊紝鏈鍚庡彂鐜版槸鍥犱負鍦╨ib涓嬫斁浜嗕竴涓猨sp-api.jar鐨勫寘瀵艱嚧鐨?br />錛屽彧瑕佸皢璇ュ寘浠巐ib涓嬬Щ闄ゅ嵆鍙簡錛屽湪姝ゆ劅璋㈢綉緇滀笂涓嶅悵璧愭暀鐨勬湅鍙嬩滑錛氾級<img src ="http://m.tkk7.com/tufanshu/aggbug/85371.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2006-12-04 15:27 <a href="http://m.tkk7.com/tufanshu/archive/2006/12/04/85371.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>roller2.3婧愪唬鐮侀儴緗茬瑪褰?/title><link>http://m.tkk7.com/tufanshu/archive/2006/11/01/78479.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Wed, 01 Nov 2006 07:28:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2006/11/01/78479.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/78479.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2006/11/01/78479.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/78479.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/78479.html</trackback:ping><description><![CDATA[ <p>1.棣栧厛鏄幓涓嬭澆rller2.3鐨勬簮浠g爜鏂囦歡錛屼笅杞藉湴鍧錛?a >http://rollerweblogger.org/</a><br />鐢變簬roller閲囩敤浜唜doclet錛屾墍浠ュ湪涓嬭澆鐨勬簮浠g爜涓湁浜涘唴瀹規槸娌℃湁鐨勶紝涓昏緙哄皯鐨勫唴瀹瑰涓嬶細<br />聽聽聽(1)package org.roller.presentation.forms<br />聽聽聽(2)src涓嬬己灝戠浉鍏崇殑<font face="Times New Roman, serif">hbm</font>鏂囦歡<br />聽聽聽(3)<font face="Times New Roman, serif">version.properties</font><br />聽聽聽(4)roller.tld<br />2.鐢變簬緙哄皯浠ヤ笂鐨勪笢瑗匡紝瀵艱嚧婧愪唬鐮佸鍏ュ伐紼嬪悗錛岀紪璇戦兘涓嶈兘閫氳繃銆傛垜涓嶆槸澶噦xdoclet鐨勪嬌鐢紝鎵浠ュ彧濂界己浠涔堬紝灝辯粰浠栦粈涔堜簡錛屽敖閲忔弧瓚充粬鐨勮姹備簡銆傚湪roller-src錛坮oller2.3瑙e帇鍚庣殑鏂囦歡錛変笅鏈塧nt鐨勮剼鏈紝鎵浠ユ垜鐚滄兂錛岄氳繃鑴氭湰錛屼竴瀹氬彲浠ョ敓鎴愭墍鏈夌己灝戠殑鏂囦歡錛屼簨瀹炰篃紜疄濡傛錛屽彧鏄湪浣跨敤ant鑴氭湰鐢熸垚roller web鐨勮繃紼嬩篃鏄潕鍧風殑錛氾級錛屼富瑕佹槸搴斾負roller寮鍙戝皬緇勪負浜嗙渷浜嬶紝鎶婁竴浜涘紑婧愮殑絎笁鏂瑰寘緇欏幓鎺変簡錛屾墍浠ラ渶瑕佽嚜宸辯粰琛ヤ笂銆備笉鐒跺氨浼氱敓鎴愪笉鎴愬姛銆傜幇璁板綍濡備笅錛?br />(1)鍔犱笂hibernate3.2.1.jar<br />聽聽聽聽聽聽鍦?roller/src/tools鐩綍涓嬪緩绔?hibernate-3.1/lib鏂囦歡澶癸紝灝唄ibernate3.jar鏂囦歡copy鍒拌鐩綍涓嬮潰<br />(2)鍔犱笂j2ee.jar<br />聽聽聽 灝唈2ee.jar(鎴杍boss-j2ee.jar)copy鍒?roller-src/tools/buildtime/xdoclet-1.2.3/鏂囦歡澶逛笅<br />(3)娣誨姞javamail鐨勭浉鍏沖寘錛歮ail.jar,actiivation.jar<br />聽聽聽灝唌ail.jar,activation.jar copy鍒?roller-src/tools/lib鐩綍涓嬮潰銆?br />鐒跺悗鍦╳indows涓嬭繘鍏oller-src鐩綍錛屼嬌鐢ㄤ笅闈㈠懡浠ゅ嵆鍙敓鎴恟oller web,鍚屾椂鍙互鐢熸垚浠ヤ笂緙虹渷鐨勬枃浠訛細<br /><br />> build all<br />鐒跺悗灝卞彲浠ュ湪roller-src/build鐩綍瀵繪壘浣犻渶瑕佺殑鏂囦歡錛屽悓鏃朵篃鏈夊彂甯冨ソ鐨剅oller web浜?br /><br /><br />roller2.3鐨勫畨瑁呭彂甯冨彲浠ュ弬鑰價oller瀹樻柟鍙戝竷鐨勫畨瑁呮枃妗e嵆鍙?br /><br />澶у姛鍛婃垚錛屽彲浠ュ紑濮嬪涔犲拰淇敼roller2.3鐨勬簮鐮佷簡錛侊細錛?/p> <img src ="http://m.tkk7.com/tufanshu/aggbug/78479.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2006-11-01 15:28 <a href="http://m.tkk7.com/tufanshu/archive/2006/11/01/78479.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>tomcat 鏈嶅姟鍣ㄦ姏鍑簊ocket寮傚父鈥滄枃浠舵墦寮澶鈥濈殑闂http://m.tkk7.com/tufanshu/archive/2006/07/31/60981.html闆湴瀛ら縛闆湴瀛ら縛Mon, 31 Jul 2006 03:39:00 GMThttp://m.tkk7.com/tufanshu/archive/2006/07/31/60981.htmlhttp://m.tkk7.com/tufanshu/comments/60981.htmlhttp://m.tkk7.com/tufanshu/archive/2006/07/31/60981.html#Feedback0http://m.tkk7.com/tufanshu/comments/commentRss/60981.htmlhttp://m.tkk7.com/tufanshu/services/trackbacks/60981.html
璀﹀憡: Reinitializing ServerSocket
2006-7-28 15:07:40 org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
涓ラ噸: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80] ignored exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
聽at java.net.PlainSocketImpl.socketAccept(Native Method)
聽at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
聽at java.net.ServerSocket.implAccept(ServerSocket.java:450)
聽at java.net.ServerSocket.accept(ServerSocket.java:421)
聽at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
聽at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407)
聽at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70)
聽at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
聽at java.lang.Thread.run(Thread.java:595)

鍘熸湰浠ヤ負鏄痶omcat鐨勯厤緗垨鏄簲鐢ㄦ湰韜殑闂錛?璋鋒瓕"涓鎶婂悗鎵嶅彂鐜幫紝璇ラ棶棰樼殑鏍規湰鍘熷洜鏄敱浜庣郴緇熸枃浠惰祫婧愮殑闄愬埗瀵艱嚧鐨勩傚叿浣撳彲浠ュ弬鑰?a >http://www.bea.com.cn/support_pattern/Too_Many_Open_Files_Pattern.html
鐨勮鏄庛傚叿浣撶殑瑙e喅鏂瑰紡鍙互鍙傝冧竴涓嬶細
1銆倁limit -a 鏌ョ湅緋葷粺鐩墠璧勬簮闄愬埗鐨勮瀹氥?br />聽聽聽[root@test security]# umlimit -a
-bash: umlimit: command not found
[root@test security]# ulimit -a
core file size聽聽聽聽聽聽聽 (blocks, -c) 0
data seg size聽聽聽聽聽聽聽聽 (kbytes, -d) unlimited
file size聽聽聽聽聽聽聽聽聽聽聽聽 (blocks, -f) unlimited
max locked memory聽聽聽聽 (kbytes, -l) unlimited
max memory size聽聽聽聽聽聽 (kbytes, -m) unlimited
open files聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 (-n) 1024
pipe size聽聽聽聽聽聽聽聽聽 (512 bytes, -p) 8
stack size聽聽聽聽聽聽聽聽聽聽聽 (kbytes, -s) 8192
cpu time聽聽聽聽聽聽聽聽聽聽聽聽 (seconds, -t) unlimited
max user processes聽聽聽聽聽聽聽聽聽聽聽 (-u) 7168
virtual memory聽聽聽聽聽聽聽 (kbytes, -v) unlimited
[root@test security]#
閫氳繃浠ヤ笂鍛戒護錛屾垜浠彲浠ョ湅鍒皁pen files 鐨勬渶澶ф暟涓?024
閭d箞鎴戜滑鍙互閫氳繃涓涓嬪懡浠や慨鏀硅鍙傛暟鐨勬渶澶у?br />2. ulimit -n 4096
[root@test security]# ulimit -n 4096
[root@test security]# ulimit -a
core file size聽聽聽聽聽聽聽 (blocks, -c) 0
data seg size聽聽聽聽聽聽聽聽 (kbytes, -d) unlimited
file size聽聽聽聽聽聽聽聽聽聽聽聽 (blocks, -f) unlimited
max locked memory聽聽聽聽 (kbytes, -l) unlimited
max memory size聽聽聽聽聽聽 (kbytes, -m) unlimited
open files聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 (-n) 4096
pipe size聽聽聽聽聽聽聽聽聽 (512 bytes, -p) 8
stack size聽聽聽聽聽聽聽聽聽聽聽 (kbytes, -s) 8192
cpu time聽聽聽聽聽聽聽聽聽聽聽聽 (seconds, -t) unlimited
max user processes聽聽聽聽聽聽聽聽聽聽聽 (-u) 7168
virtual memory聽聽聽聽聽聽聽 (kbytes, -v) unlimited

榪欐牱鎴戜滑灝變慨鏀逛簡緋葷粺鍦ㄥ悓涓鏃墮棿鎵撳紑鏂囦歡璧勬簮鐨勬渶澶ф暟錛屽熀鏈В鍐充互涓婇棶棰樸?br />
鍙﹀鎴戜滑鍙互閫氳繃lsof聽 -p [榪涚▼鐨?pid]鏉ユ煡鐪嬬郴緇熷綋鍓嶆墦寮鐨勬枃浠惰祫婧愶紝鍙互浜嗚В涓嶅悓鏃舵湡緋葷粺鐨勬枃浠惰祫婧愮殑浣跨敤鎯呭喌錛屽彲鏍規嵁鎯呭喌榪涜緋葷粺璧勬簮鐨勯厤緗?br />

闆湴瀛ら縛 2006-07-31 11:39 鍙戣〃璇勮
]]>
hsql鐨勪嬌鐢?/title><link>http://m.tkk7.com/tufanshu/archive/2005/12/26/25499.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Mon, 26 Dec 2005 13:44:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2005/12/26/25499.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/25499.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2005/12/26/25499.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/25499.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/25499.html</trackback:ping><description><![CDATA[<P>鏈榪戝湪涓涓厖鍊煎鉤鍙頒笂浣跨敤浜咹SQL鏉ヨ褰曠敤鎴風殑鍏呭艱褰?鏈潵鎵鏈夌殑璁板綍鏄啓鍒版枃浠墮噷闈㈢殑,浣嗘槸鐢變簬浣跨敤ORACLE鐨勬儻鎬ф濈淮瀵艱嚧鎴戞氮璐逛簡鍗婂ぉ鐨勬椂闂?鍏蜂綋鎯呭喌鏄繖鏍?<BR>鎴戜嬌鐢ㄧ殑鏄疕SQL鐨処N-PROCESS(Standalone)妯″紡,榪欐牱鍦╓EB鍚姩鐨勬椂鍊?鎴戝氨浼氬幓鍒涘緩鏁版嵁搴?鎸夌収HSQL鐨勬枃妗?濡傛灉瀛樺湪<dbname>.script鏂囦歡鐨勮瘽,鏁版嵁搴撳氨浼氬皢鍘嗗彶鏁版嵁鎻掑叆鍒版暟鎹簱涓?浣嗘槸鍦ㄨ繖閲屾垜鏀句簡涓涓儻鎬х殑閿欒,鎴戜滑鍦∣RCALE鎴栨槸鍏朵粬鐨勫父鐢ㄦ暟鎹簱涓垱寤鴻〃鏃?涓鑸鍏堝垹闄ゅ氨琛?璁╁悗鍦ㄥ垱寤烘柊鐨勮〃,榪欐牱鎴戝氨鎶奌SQL鐨勫巻鍙茶褰曢兘鍒犻櫎浜?閮侀椃鍟?榪欏彲鏄敤鎴風殑鍏呭艱褰曞晩,浠ュ悗鎴戞庝箞瀵瑰笎鍟?:)榪樺ソ鎴戞湁澶囦喚.<BR>鍦℉SQL鏇存湰涓嶉渶瑕佽繖鏍風殑鎿嶄綔,浠栬嚜宸變細鍘誨仛榪欐牱鐨勪簨鎯?濡傛灉<dbname>.script瀛樺湪,浠栧氨鐩存帴鎵ц浜嗚繖涓猻cript,濡傛灉娌℃湁浠栨墠鍥炲幓鍒涘緩鏂扮殑鏁版嵁搴撳拰琛ㄧ粨鏋?</P><img src ="http://m.tkk7.com/tufanshu/aggbug/25499.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2005-12-26 21:44 <a href="http://m.tkk7.com/tufanshu/archive/2005/12/26/25499.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jdk1.4鍗囩駭鍒癑DK1.5鐨勯棶棰?/title><link>http://m.tkk7.com/tufanshu/archive/2005/11/17/20309.html</link><dc:creator>闆湴瀛ら縛</dc:creator><author>闆湴瀛ら縛</author><pubDate>Thu, 17 Nov 2005 12:28:00 GMT</pubDate><guid>http://m.tkk7.com/tufanshu/archive/2005/11/17/20309.html</guid><wfw:comment>http://m.tkk7.com/tufanshu/comments/20309.html</wfw:comment><comments>http://m.tkk7.com/tufanshu/archive/2005/11/17/20309.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://m.tkk7.com/tufanshu/comments/commentRss/20309.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/tufanshu/services/trackbacks/20309.html</trackback:ping><description><![CDATA[<P>鏈榪戝皢鎵嬩笂鐨勯」鐩?tomcat5.0+spring+struts)鐨刯dk1.4鍗囩駭鍒?.5鐨勬椂鍊?鍑虹幇浜嗕竴鍫嗙殑闂,緇忚繃涓嶆噲鐨勫姫鍔涘拰緗戜笂鏈嬪弸鐨勬彁紺虹粓浜庡皢闂瑙e喅浜?鐜板湪璁板綍濡備笅<BR>1.java.lang.UnsupportedClassVersionError: com/mdcchina/userinfo/logic/UserManager (Unsupported major.minor version 49.0)鎻愮ず濡備笂鐨勯敊璇?寰堟槸閮侀椃<BR>緇忚繃鐮旂┒鍜屾瘮杈冨湪涓や釜涓嶅悓鐜涓嬬殑緙栬瘧榪愯,緇堜簬鍙戠幇榪欎釜涓昏鏄敱浜庢垜鐨勬満瀛愪笂瀹夎浜嗕袱涓笉鍚岀増鏈殑JDK瀵艱嚧鐨?鎴戞兂寰堝鐨勬湅鍙嬪湪灝濊瘯鏂扮殑JDK鐨勬椂鍊?鍙兘涓嶄細鍒犻櫎1.4鐨勭増鏈?浣嗘槸瑕佹敞鎰忕殑鏄灝咼AVA_HOME,CLASS_PATH,PATH絳夌瓑鐨勭幆澧冨彉閲忛兘淇敼鎴愮浉鍏崇殑JDK1.5鐨勭洰褰曚笅闈㈠幓,鍥犱負1.5鐩稿浜庝互鍓嶇殑鐗堟湰鐨勫彉鍖栨瘮杈冨ぇ.<BR>2.涓婇潰鐨勯棶棰樻帓闄ゅ悗,鍦ㄨ繍琛孴OMCAT5.0鏃跺欑敱鍑虹幇浜嗗涓嬬殑閿欒:<BR>2005-11-17 19:38:47 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception<BR>org.apache.jasper.JasperException: Unable to compile class for JSP</P> <P>Generated servlet error:<BR>C:\application\Tomcat 5.0\work\Catalina\localhost\mlinkweb\org\apache\jsp\layouts\layout_005findex_jsp.java:7: cannot access java.lang.Object</P> <P><BR>Generated servlet error:<BR>bad class file: C:\application\Java\jdk1.5.0\jre\lib\rt.jar(java/lang/Object.class)<BR>class file has wrong version 49.0, should be 48.0<BR>Please remove or make sure it appears in the correct subdirectory of the classpath.<BR>public final class layout_005findex_jsp extends org.apache.jasper.runtime.HttpJspBase<BR>             ^<BR>1 error<BR><BR>榪欎釜闂榪欐槸璁╂垜閮侀椃涔嬫瀬鍟?^_^)<BR>鏈鍚庡湪SUN鐨凧AVA璁哄潧閲岄潰鎵懼埌浜嗙瓟妗?鍙灝咼DK1.5鐨凩IB涓嬮潰鐨凾OOLS.JAR瑕嗙洊TOMCAT5.0鐩綍/common/lib涓嬮潰鐨則ools.jar,鐒跺悗閲嶅惎TOMCAT5.0灝卞彲浠ヤ簡</P><img src ="http://m.tkk7.com/tufanshu/aggbug/20309.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/tufanshu/" target="_blank">闆湴瀛ら縛</a> 2005-11-17 20:28 <a href="http://m.tkk7.com/tufanshu/archive/2005/11/17/20309.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://zzxngk.com" target="_blank">xxxxx做受大片视频免费</a>| <a href="http://yuyang0752.com" target="_blank">亚洲jjzzjjzz在线播放</a>| <a href="http://fsweicheng.com" target="_blank">欧洲美女大片免费播放器视频</a>| <a href="http://ahzlgj.com" target="_blank">男人的好免费观看在线视频</a>| <a href="http://pecbj.com" target="_blank">亚洲精品美女久久久久</a>| <a href="http://my637.com" target="_blank">中国人xxxxx69免费视频</a>| <a href="http://taixin668.com" target="_blank">亚洲三级电影网站</a>| <a href="http://www330330.com" target="_blank">8x8x华人永久免费视频</a>| <a href="http://0515bh.com" target="_blank">亚洲网址在线观看</a>| <a href="http://8099456.com" target="_blank">在线天堂免费观看.WWW</a>| <a href="http://tom-erc20.com" target="_blank">国产精品亚洲综合久久</a>| <a href="http://0755host.com" target="_blank">在线播放免费人成视频在线观看 </a>| <a href="http://meinvtaotu.com" target="_blank">免费高清av一区二区三区</a>| <a href="http://jl910.com" target="_blank">亚洲综合色婷婷在线观看</a>| <a href="http://cykj-tech.com" target="_blank">免费高清在线影片一区</a>| <a href="http://xawsfkaisuo.com" target="_blank">暖暖免费中文在线日本</a>| <a href="http://tuopumao.com" target="_blank">亚洲精品午夜国产VA久久成人</a>| <a href="http://yw762.com" target="_blank">日韩成人免费视频</a>| <a href="http://phlinhng.com" target="_blank">亚洲国产模特在线播放</a>| <a href="http://my94ok.com" target="_blank">日韩视频免费一区二区三区</a>| <a href="http://szicon.com" target="_blank">美女视频黄频a免费大全视频</a>| <a href="http://xxx2222.com" target="_blank">亚洲精品高清一二区久久</a>| <a href="http://simupiao.com" target="_blank">日韩精品无码免费专区网站</a>| <a href="http://xx16xx.com" target="_blank">久久精品国产亚洲精品2020</a>| <a href="http://7788mgqb.com" target="_blank">歪歪漫画在线观看官网免费阅读</a>| <a href="http://xp189.com" target="_blank">亚洲爆乳精品无码一区二区</a>| <a href="http://tao-zhe.com" target="_blank">亚洲国产一区二区三区</a>| <a href="http://lhtjdj.com" target="_blank">久久久久久国产精品免费免费男同 </a>| <a href="http://sqmdjz.com" target="_blank">亚洲AV无码乱码麻豆精品国产</a>| <a href="http://ksp33.com" target="_blank">久久免费福利视频</a>| <a href="http://xzgfbxg.com" target="_blank">亚洲一级视频在线观看</a>| <a href="http://sdcwpfw.com" target="_blank">国产又长又粗又爽免费视频</a>| <a href="http://fanqi5.com" target="_blank">国产精品黄页免费高清在线观看</a>| <a href="http://554ka.com" target="_blank">亚洲精品线在线观看</a>| <a href="http://beidemei.com" target="_blank">女人18毛片a级毛片免费视频</a>| <a href="http://77133144.com" target="_blank">成人免费网站视频www</a>| <a href="http://tv886.com" target="_blank">67pao强力打造67194在线午夜亚洲</a>| <a href="http://arkinbokis.com" target="_blank">三年片在线观看免费大全</a>| <a href="http://aidannis.com" target="_blank">一区二区三区AV高清免费波多</a>| <a href="http://6363388.com" target="_blank">亚洲国产一区在线</a>| <a href="http://26672814.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>