锘??xml version="1.0" encoding="utf-8" standalone="yes"?>77777亚洲午夜久久多人,处破女第一次亚洲18分钟,亚洲综合中文字幕无线码http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397347.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Wed, 03 Apr 2013 04:12:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/04/03/397347.htmlhttp://www.tkk7.com/weishuangshuang/comments/397347.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/04/03/397347.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/397347.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/397347.html

Java閬嶅巻Map
public static void main(String[] args) {

  Map<String, String> map = new HashMap<String, String>();
  map.put("1", "value1");
  map.put("2", "value2");
  map.put("3", "value3");
  
  //絎竴縐嶏細(xì)鏅亶浣跨敤錛屼簩嬈″彇鍊?br />  System.out.println("閫氳繃Map.keySet閬嶅巻key鍜寁alue錛?);
  for (String key : map.keySet()) {
   System.out.println("key= "+ key + " and value= " + map.get(key));
  }
  
  //絎簩縐?br />  System.out.println("閫氳繃Map.entrySet浣跨敤iterator閬嶅巻key鍜寁alue錛?);
  Iterator<Map.Entry<String, String>> it = map.entrySet().iterator();
  while (it.hasNext()) {
   Map.Entry<String, String> entry = it.next();
   System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue());
  }
  
  //絎笁縐嶏細(xì)鎺ㄨ崘錛屽挨鍏舵槸瀹歸噺澶ф椂
  System.out.println("閫氳繃Map.entrySet閬嶅巻key鍜寁alue");
  for (Map.Entry<String, String> entry : map.entrySet()) {
   System.out.println("key= " + entry.getKey() + " and value= " + entry.getValue());
  }

  //絎洓縐?/font>
  System.out.println("閫氳繃Map.values()閬嶅巻鎵鏈夌殑value錛屼絾涓嶈兘閬嶅巻key");
  for (String v : map.values()) {
   System.out.println("value= " + v);
  }
 }

Java閬嶅巻Set

瀵?set 鐨勯亶鍘? 
1.榪唬閬嶅巻錛? 
Set<String> set = new HashSet<String>();  
Iterator<String> it = set.iterator();  
while (it.hasNext()) {  
  String str = it.next();  
  System.out.println(str);  
}  
  
2.for寰幆閬嶅巻錛? 
for (String str : set) {  
      System.out.println(str);  
}  
  
  
浼樼偣榪樹綋鐜板湪娉涘瀷 鍋囧 set涓瓨鏀劇殑鏄疧bject  
  
Set<Object> set = new HashSet<Object>();  
for寰幆閬嶅巻錛? 
for (Object obj: set) {  
      if(obj instanceof Integer){  
                int aa= (Integer)obj;  
             }else if(obj instanceof String){  
               String aa = (String)obj  
             }  
              ........  
}  

褰撲竴涓漢鎵句笉鍒板嚭璺殑鏃跺欙紝鏈濂界殑鍔炴硶灝辨槸灝嗗綋鍓嶈兘鍋氬ソ鐨勪簨鎯呭仛鍒版瀬鑷達(dá)紝鍋氬埌鏃犱漢鑳藉強(qiáng)銆?/div>


]]>ORACLE鍚屼竴涓暟鎹簱瀵煎叆鏃訛紝鏁版嵁榪樹繚瀛樺湪鍘熸潵鐨勮〃絀洪棿涓?http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397346.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Wed, 03 Apr 2013 04:07:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/04/03/397346.htmlhttp://www.tkk7.com/weishuangshuang/comments/397346.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/04/03/397346.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/397346.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/397346.html浠婂ぉ鍦ㄧ爺絀朵簡涓涓嬪叧浜嶰RACLE鐨勫鍏ュ鍑虹殑鍔熻兘錛屽懆浜斿揩瑕佷笅鐝殑鏃跺欑粰鍚屼簨鏂板緩涓涓〃絀洪棿錛屽皢鍚屼竴涓暟鎹簱涓殑鏌愪釜鐢ㄦ埛涓嬬殑琛ㄥ鍏ユ柊鐨勮〃絀洪棿涓婏紝寤哄ソ琛ㄧ┖闂村拰鐢ㄦ埛鍚庯紝鐩存帴鐢?nbsp;exp ,imp 鏉ュ鍏ユ暟鎹埌鏂扮殑琛ㄧ┖闂達(dá)紝鏌ユ槸鍙戠幇鍚庢潵瀵煎叆鐨勬暟鎹繕鍦ㄥ師鏉ョ殑琛ㄧ┖闂翠笂錛岋紙鍛ㄤ簲閭eぉ鐨勬垜鏄敤宸ュ叿緙栬緫DMP鏂囦歡錛屼慨鏀歸噷鐨勮〃絀洪棿鍚嶅悗瀵煎叆鐨勶級(jí)錛屽悗鏉ユ兂璧鋒潵浜唀ygle鐨勪功涓婂啓浜嗗叧浜庤繖涓殑闂錛屼簬鏄粖澶╁氨鏉ヨ瘯楠屼簡涓涓嬨?/p>

絎竴縐嶏細(xì)淇敼鐢ㄦ埛鐨勪竴浜涙潈闄愩?/strong>

棣栧厛浣跨敤sytem甯愭埛鐧婚檰

--鍒涘緩鏂拌〃絀洪棿鐨勭敤鎴?/strong>

SQL> create user pangzi identified by pangzi default tablespace pangzi temporary tablespace temp;

鐢ㄦ埛宸插垱寤恒?/p>

--鎺堢粰鏂扮敤鎴蜂竴鑸殑鏉冮檺

SQL> grant export full database to pangzi;

鎺堟潈鎴愬姛銆?/p>

SQL> grant import full database to pangzi;

鎺堟潈鎴愬姛銆?/p>

SQL> grant connect,resource to pangzi;

鎺堟潈鎴愬姛銆?/p>

SQL> grant create procedure to pangzi;

鎺堟潈鎴愬姛銆?/p>

SQL> grant create job to pangzi;

鎺堟潈鎴愬姛銆?/p>SQL> grant create view to pangzi;

鎺堟潈鎴愬姛銆?/p>

SQL> grant create synonym to pangzi;

鎺堟潈鎴愬姛銆?/p>

--浠庤繖閲屽紑濮嬪皢鏄鍔犵殑錛屼負(fù)浜嗕嬌瀵煎叆鐨勬暟鎹紝涓嶆斁鍦ㄥ師鏉ョ殑琛ㄧ┖闂翠笂

SQL> grant dba to pangzi;

--鏀跺洖鐢ㄦ埛鐨剈mlimited tablespace鏉冮檺

SQL> revoke unlimited tablespace from pangzi;

--璁劇疆鏂板垱寤虹殑鐢ㄦ埛鍙嬌鐢╯yb琛ㄧ┖闂寸殑澶у皬0錛堝師鏁版嵁鎵鍦ㄧ殑琛ㄧ┖闂翠負(fù)syb錛?/strong>

SQL> alter user pangzi quota 0 on syb;

--璁劇疆鏂板垱寤虹殑鐢ㄦ埛鍙嬌鐢╬angzi琛ㄧ┖闂寸殑澶у皬涓嶉檺鍒?/strong>

 

SQL> alter user pangzi quota unlimited on pangzi;

--鏀跺洖DBA鏉冮檺

SQL> revoke dba from pangzi;

鎵ц瀵煎叆鏁版嵁

C:\Users\dyspangzi>imp pangzi/pangzi@testdev file=syb.dmp full=y

 

Import: Release 10.2.0.3.0 - Production on 鏄熸湡鍏?nbsp;4鏈?nbsp;21 17:48:54 2012

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

 

榪炴帴鍒? Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

 

緇忕敱甯歌璺緞鐢?nbsp;EXPORT:V10.02.01 鍒涘緩鐨勫鍑烘枃浠?/p>

 

璀﹀憡: 榪欎簺瀵硅薄鐢?nbsp;SYB 瀵煎嚭, 鑰屼笉鏄綋鍓嶇敤鎴?/p>

 

宸茬粡瀹屾垚 ZHS16GBK 瀛楃闆嗗拰 AL16UTF16 NCHAR 瀛楃闆嗕腑鐨勫鍏?/p>

. 姝e湪灝?nbsp;SYB 鐨勫璞″鍏ュ埌 PANGZI

. . 姝e湪瀵煎叆琛?nbsp;                    "ALL_SALES"瀵煎叆浜?nbsp;        360 琛?/p>

. . 姝e湪瀵煎叆琛?nbsp;                      "COUPONS"瀵煎叆浜?nbsp;          6 琛?/p>

. . 姝e湪瀵煎叆琛?nbsp;                    "CUSTOMERS"瀵煎叆浜?nbsp;          5 琛?/p>

. .涓棿閮ㄥ垎鍐呭鐪佺暐錛岄兘鏄鍏ョ殑淇℃伅

 

 

. . 姝e湪瀵煎叆琛?nbsp;                     "REG_EXPS"瀵煎叆浜?nbsp;          1 琛?/p>

. . 姝e湪瀵煎叆琛?nbsp;                "SALARY_GRADES"瀵煎叆浜?nbsp;          4 琛?/p>

鍗沖皢鍚敤綰︽潫鏉′歡...

鎴愬姛緇堟瀵煎叆, 娌℃湁鍑虹幇璀﹀憡銆?/p>

瀵煎叆鎴愬姛錛屾垜浠湅瀵肩殑琛ㄥ凡緇忓湪鏂扮殑琛ㄧ┖闂翠腑浜?/strong>

SQL> show user
USER 涓?"PANGZI"
SQL> select table_name,tablespace_name from user_tables;

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
DYSPANGZI                      PANGZI
CUSTOMERS                      PANGZI
PRODUCT_TYPES                  PANGZI
PRODUCTS                       PANGZI
PURCHASES                      PANGZI
EMPLOYEES                      PANGZI
SALARY_GRADES                  PANGZI
PURCHASES_WITH_TIMESTAMP       PANGZI
PURCHASES_TIMESTAMP_WITH_TZ    PANGZI
PURCHASES_WITH_LOCAL_TZ        PANGZI
COUPONS                        PANGZI

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
PROMOTIONS                     PANGZI
ORDER_STATUS                   PANGZI
PRODUCT_CHANGES                PANGZI
MORE_PRODUCTS                  PANGZI
MORE_EMPLOYEES                 PANGZI
DIVISIONS                      PANGZI
JOBS                           PANGZI
EMPLOYEES2                     PANGZI
ALL_SALES                      PANGZI
PRODUCT_PRICE_AUDIT            PANGZI
REG_EXPS                       PANGZI

宸查夋嫨22琛屻?nbsp;                     

絎簩縐嶏細(xì)浣跨敤EXPDP鍜孖MPDP鏉ュ鍏ュ拰瀵煎嚭

       浣跨敤expdp鏉ュ鍑猴紝棣栧厛瑕佷負(fù)涓涓弬鏁版潵鎸囧畾涓涓礬寰?#8212;—directory錛宔xpdp鏄湪鏈嶅姟鍣ㄧ宸ヤ綔錛屽鍑虹殑鏂囦歡闇瑕佹斁鍦ㄦ湰鍦扮洰褰曪紝榪欎釜鍙傛暟灝辨槸淇濆瓨瀵煎嚭鏂囦歡鐨勪綅緗傝繖涓彲浠ヨ嚜宸卞垱寤猴紝涔熷彲浠ユ槸榛樿鐨勶紝鎴戣嚜宸卞垱寤轟簡涓涓紝鍚嶅瓧鏄痚xpdir

SQL> CREATE OR REPLACE DIRECTORY expdir AS '/var/backup';

 

鐩綍宸插垱寤恒?/p>

 

SQL> select * from dba_directories;

 

OWNER        DIRECTORY_NAME      DIRECTORY_PATH

-------------------   -------------------------------  -----------------------------------------

SYS             ADMIN_DIR            /ade/aime_10.2_lnx_push/oracle/md/admin

 

SYS             DATA_PUMP_DIR       /usr/app/oracle/product/10.2.0/db_1/rdbms/log/

 

SYS             WORK_DIR             /ade/aime_10.2_lnx_push/oracle/work

 

SYS             EXPDIR                /var/backup

--緇欑敤鎴鋒巿浜堣鍐欐潈闄?/strong>

 

 

SQL> grant read,write on directory expdir to syb;

寮濮嬪鍑烘暟鎹?/strong>

[oracle@dyspangzi ~]$ expdp dumpfile=syb.dmp directory=expdir;

Export: Release 10.2.0.1.0 - Production on Saturday, 21 April, 2012 18:06:46

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "SYB"."SYS_EXPORT_SCHEMA_01":  dumpfile=syb.dmp directory=expdir
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.375 MB
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
. . exported "SYB"."DYSPANGZI"                           48.50 KB     659 rows
. . exported "SYB"."ALL_SALES"                           13.68 KB     360 rows
       涓棿瀵煎嚭淇℃伅鐪佺暐

.  . exported "SYB"."REG_EXPS"                            5.437 KB       1 rows
. . exported "SYB"."SALARY_GRADES"                       5.710 KB       4 rows
. . exported "SYB"."PRODUCT_PRICE_AUDIT"                     0 KB       0 rows
Master table "SYB"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYB.SYS_EXPORT_SCHEMA_01 is:
  /var/backup/syb.dmp
Job "SYB"."SYS_EXPORT_SCHEMA_01" successfully completed at 18:07:11

 

瀵煎嚭鎴愬姛鍚庢煡鐪嬩竴涓嬪垰鎵嶅垱寤虹洰褰曢噷杈圭殑鍐呭

[root@dyspangzi var]# cd backup
[root@dyspangzi backup]# ls -l
鎬昏 720
-rw-r--r-- 1 oracle oinstall   3472 04-21 18:07 export.log
-rw-r----- 1 oracle oinstall 729088 04-21 18:07 syb.dmp

澶氫簡涓や釜鏂囦歡錛屼竴涓槸鏃ュ織鏂囦歡涓涓槸瀵煎嚭鐨勬暟鎹枃浠訛紝鍦ㄥ鍏ョ殑鏃跺欓渶瑕佽繖涓や釜鏂囦歡銆備笅闈㈠紑濮嬪鍏ャ?/p>

===================================================================================

鍑虹幇浜嗙涓涓敊璇?/strong>

[oracle@dyspangzi ~]$ impdp pangzi/pangzi dumpfile=syb.dmp directory=expdir remap_tablespace=syb:pangzi

Import: Release 10.2.0.1.0 - Production on Saturday, 21 April, 2012 18:45:35

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-39087: directory name EXPDIR is invalid

鍑虹幇浜嗛敊璇紝鍚庢潵鍙戠幇榪欎釜鏄洜涓烘柊鐢ㄦ埛pangzi娌℃湁瀵圭洰褰曠殑璇誨啓鏉冮檺閫犳垚鐨勶紝浜庢槸鍔犱笂鏉冮檺

SQL> grant read,write on directory expdir to pangzi;

鎺堟潈鎴愬姛銆?/p>

==================================================================================

鍑虹幇浜嗙浜屼釜閿欒

[oracle@dyspangzi ~]$ impdp pangzi/pangzi dumpfile=syb.dmp directory=expdir remap_tablespace=syb:pangzi

Import: Release 10.2.0.1.0 - Production on Saturday, 21 April, 2012 18:47:38

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31655: no data or metadata objects selected for job
ORA-39154: Objects from foreign schemas have been removed from import
Master table "PANGZI"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "PANGZI"."SYS_IMPORT_FULL_01":  pangzi/******** dumpfile=syb.dmp directory=expdir remap_tablespace=syb:pangzi
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Job "PANGZI"."SYS_IMPORT_FULL_01" successfully completed at 18:47:41

榪欎釜鏄敱浜庡師鏉ョ殑鐢ㄦ埛鍜岀幇鍦ㄧ殑涓嶄竴鏍蜂簡錛屽姞涓婅繖涓弬鏁板氨濂戒簡  remap_schema=syb:pangzi

=====================================================================================================

涓嬮潰鏄病鏈変換浣曢敊璇殑瀵煎叆浜?/strong>

[oracle@dyspangzi ~]$ impdp pangzi/pangzi dumpfile=syb.dmp directory=expdir remap_schema=syb:pangzi remap_tablespace=syb:pangzi

Import: Release 10.2.0.1.0 - Production on Saturday, 21 April, 2012 18:49:24

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "PANGZI"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "PANGZI"."SYS_IMPORT_FULL_01":  pangzi/******** dumpfile=syb.dmp directory=expdir remap_schema=syb:pangzi remap_tablespace=syb:pangzi
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
. . imported "PANGZI"."DYSPANGZI"                        48.50 KB     659 rows
. . imported "PANGZI"."ALL_SALES"                        13.68 KB     360 rows
     涓棿閮ㄥ垎瀵煎叆淇℃伅鐪佺暐

. . imported "PANGZI"."PURCHASES_WITH_TIMESTAMP"         5.609 KB       1 rows
. . imported "PANGZI"."REG_EXPS"                         5.437 KB       1 rows
. . imported "PANGZI"."SALARY_GRADES"                    5.710 KB       4 rows
. . imported "PANGZI"."PRODUCT_PRICE_AUDIT"                  0 KB       0 rows
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
Processing object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
Job "PANGZI"."SYS_IMPORT_FULL_01" successfully completed at 18:49:37

鎴愬姛瀵煎叆錛侊紒錛侊紒

鏌ョ湅榛樿鐨勮〃絀洪棿

SQL> select table_name,tablespace_name from user_tables;

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
DYSPANGZI                      PANGZI
CUSTOMERS                      PANGZI
PRODUCT_TYPES                  PANGZI
PRODUCTS                       PANGZI
PURCHASES                      PANGZI
EMPLOYEES                      PANGZI
SALARY_GRADES                  PANGZI
PURCHASES_WITH_TIMESTAMP       PANGZI
PURCHASES_TIMESTAMP_WITH_TZ    PANGZI
PURCHASES_WITH_LOCAL_TZ        PANGZI
COUPONS                        PANGZI

TABLE_NAME                     TABLESPACE_NAME
------------------------------ ------------------------------
PROMOTIONS                     PANGZI
ORDER_STATUS                   PANGZI
PRODUCT_CHANGES                PANGZI
MORE_PRODUCTS                  PANGZI
MORE_EMPLOYEES                 PANGZI
DIVISIONS                      PANGZI
JOBS                           PANGZI
EMPLOYEES2                     PANGZI
ALL_SALES                      PANGZI
PRODUCT_PRICE_AUDIT            PANGZI
REG_EXPS                       PANGZI

宸查夋嫨22琛屻?/p>

姝よ〃絀洪棿涓病鏈夌儲(chǔ)寮曪紝鎵浠ョ涓縐嶆柟娉曚篃娌℃湁鎶ラ敊錛屽鏋滃嚭鐜版湁绱㈠紩鐨勭涓縐嶆柟娉曡繕寰楀鍔犲嚑姝ワ紝絳夋垜鏄庡ぉ鎵懼埌鍛ㄤ簲閭d釜鏁版嵁鍐嶆潵鍐嶇潃鍋氳瘯楠屻?/strong>

-----------------------------------------------------------

浠婂ぉ鐗規(guī)剰鍘誨叕鍙告壘鏉ヤ簡閭eぉ瀵肩殑鏁版嵁搴擄紝鍥炴潵鍋氬疄楠屻傞噰鐢ㄧ涓縐嶆柟娉曚笉鍙錛岃櫧鐒惰鍙互浣跨敤IMP  鍔爄ndexs鍙傛暟鏉ュ鍑轟竴浜涚儲(chǔ)寮曪紝浣嗘槸瀵煎叆鐨勬椂鍊欐繪湁鑾悕鍏跺鐨勯敊璇紝浼拌榪樻槸鎴戞病寮勫ソ錛屾墍浠ヤ負(fù)浜嗙渷浜嬭繕鏄洿鎺ョ敤絎簩縐嶅惂錛屾柟渚匡紝鏃犻敊銆?/strong>



]]>
Oracle 鎶婁竴涓〃涓殑鏁版嵁鎻掑叆鍒板彟澶栦竴涓〃涓?/title><link>http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397344.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Wed, 03 Apr 2013 04:05:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397344.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/397344.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397344.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/397344.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/397344.html</trackback:ping><description><![CDATA[<p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">1.鍦?a target="_blank" title="Oracle" style="color: #b32bd5; ">Oracle</a>涓彲浠ョ敤涓嬮潰涓ょ錛?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">01: <br />     create table newtable   as select * from oldtable;//鐢ㄤ簬澶嶅埗鍓嶆湭鍒涘緩鏂拌〃newtable涓嶅瓨鍦ㄧ殑鎯呭喌 <br />02: <br />      insert into newtable   select * from oldtable;//宸茬粡鍒涘緩浜嗘柊琛╪ewtable 鐨勬儏鍐?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">娉ㄦ剰錛氱涓縐嶆柟寮忓彧鏄鍒朵簡琛ㄧ粨鏋勶紝浣嗘槸涓婚敭浠涔堢殑騫舵病鏈夊鍒惰繘鍘伙紝鎵浠ョ敤鐨勬椂鍊欒灝忓績鍦ㄦ剰銆?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">2.濡傛灉鎯崇畝鍗曞揩閫熺殑澶嶅埗琛ㄧ粨鏋勶紝鑰屼笉闇瑕乷ldtable閲岄潰鐨勬暟鎹?鍙互鐢ㄤ笅闈㈢殑璇彞錛?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">    create table newtable   as  select * from oldtable where 1=2;(鎶婃暟鎹繃婊ゆ帀)</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">3.濡傝繃newtable 鍜宱ldtable鐨勮〃緇撴瀯涓嶅悓錛屽彲浠ヤ嬌鐢ㄤ笅闈㈢殑鏂瑰紡:</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; "> create table newtable  as select  s.c1,s.c2  from oldtable s;</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; "> </p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">4.濡傛灉鎯抽噸鏂板懡鍚峮ewtable鐨勫垪鍚嶏細(xì)</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">鍦╫racle涓?</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; "> create table  newtable(id,name1) as select  s.c1,s.c2  from oldtable s;</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">鎴栬?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; "> create table  newtable as select  s.c1 ,s.c2  from oldtable s;</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">鍦╩ysql涓亹鎬曞彧鑳界敤絎簩縐嶆柟寮忎簡銆?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">5.濡傛灉鏄彧闇瑕佹妸涓閮ㄥ垎鐨刼ldtable涓殑鏁版嵁娣誨姞鍒皀ewtable涓傚彲浠ヨ繖鏍鳳細(xì)</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; "> create table newtable   as (select * from oldtable where ...);//鍔爓here榪囨護(hù)鏉′歡</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">6.鏈甯歌鐨勬儏鍐墊槸id鍒楁柊琛ㄤ腑瑕佺敤錛屽茍涓斿拰鏃ц〃涓殑涓嶅悓錛屼嬌鐢ㄤ笅闈㈢殑璇彞灝卞彲浠ヤ簡錛堟垜浠彲浠ラ噸鏂板緩涓涓猻equence錛?/p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">create table yang(id,name) as select hibernate_sequence.nextval,t.ename from emp t;</p><p style="color: #333333; font-family: tahoma, 瀹嬩綋; line-height: 22px; background-color: #efefef; ">7.瑕佹敞鎰忥紝瀵煎嚭琛ㄧ殑鏃跺欎笉鑳界敤select...into璇彞銆?/p><img src ="http://www.tkk7.com/weishuangshuang/aggbug/397344.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2013-04-03 12:05 <a href="http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397344.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ssh 鐧婚檰redhat linux鏃朵腑鏂囨樉紺轟貢鐮佽В鍐蟲柟娉?/title><link>http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397345.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Wed, 03 Apr 2013 04:05:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397345.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/397345.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397345.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/397345.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/397345.html</trackback:ping><description><![CDATA[<span style="color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">鏂規(guī)硶1錛?/span><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">鍦╯hell涓墽琛孡ANG=en 灝嗚璦璁句負(fù)鑻辮灝卞彲浠ヤ簡.SSH涓嬪緢澶氫腑鏂囬兘涓嶆敮鎸?</div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">鏂規(guī)硶2錛?/div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">鍦ㄤ嬌鐢╯sh榪滅▼鎺у埗redhat鏈嶅姟鍣ㄦ椂錛屼腑鏂囨樉紺轟負(fù)涔辯爜銆傝繖涓棶棰樺洶鎵頒簡濂戒箙錛屽悗鏉ュ彂鐜頒慨鏀筰18n榪欎釜鏂囦歡鑳藉淇涔辯爜銆?/div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; "> </div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">鏂規(guī)硶濡備笅錛氫慨鏀?etc/sysconfig/i18n鏂囦歡錛屽皢鍏舵敼鎴愪互涓嬪唴瀹癸細(xì)</div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">LANG="zh_CN.GB18030"<br style="padding: 0px; margin: 0px; " />LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"<br style="padding: 0px; margin: 0px; " />SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"<br style="padding: 0px; margin: 0px; " />SYSFONT="lat0-sun16"</div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">閲嶅惎鏈哄櫒錛岄棶棰樺簲璇ヨВ鍐充簡銆?/div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">鏂規(guī)硶3錛?/div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">濡傛灉浣犵敤鐨勬槸putty 錛屼綘鍙鍦ㄥ瓧絎︾紪鐮侀噷閫夋嫨utf-8灝辨甯鎬簡</div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; "> </div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">琛ュ厖錛氳繖鏍峰仛鐨勫悗鏋滄槸錛屽湪linux鍚姩鏃訛紝閭d簺鎻愮ず鏂囧瓧涓枃閮藉彉鎴愪簡“錛?#8221;絎﹀彿銆傚鏋滀笉涔?fàn)鎯殑璇潪畣ssh鏄劇ず绔敼鎴愯嫳鏂囧惂銆傚涓嬶細(xì)</div><div style="margin: 0px; color: #555555; font-family: 瀹嬩綋, 'Arial Narrow', arial, serif; line-height: 28px; background-color: #ffffff; ">LANG=en_US  </div><img src ="http://www.tkk7.com/weishuangshuang/aggbug/397345.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2013-04-03 12:05 <a href="http://www.tkk7.com/weishuangshuang/archive/2013/04/03/397345.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java瀹炵幇DES鍔犲瘑綆楁硶http://www.tkk7.com/weishuangshuang/archive/2013/03/29/397153.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Fri, 29 Mar 2013 07:58:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/03/29/397153.htmlhttp://www.tkk7.com/weishuangshuang/comments/397153.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/03/29/397153.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/397153.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/397153.html涓銆?/span>java瀹炵幇DES鍔犲瘑綆楁硶
涓轟簡瀹炵幇涓瀵瑰瘑閽ュ鏁翠釜欏圭洰鎵鏈夊姞瀵嗚В瀵嗘枃浠墮兘閫傜敤鐨勬柟娉?閲囩敤鍏堢敓鎴愪竴瀵瑰瘑閽?淇濆瓨鍒皒ml鏂囦歡涓?浠ュ悗鑾峰緱縐佸寵鍜屽叕閽ュ彧闇瑕佷粠xml鏂囦歡涓彇寰楀氨鍙互浜?
/**
* 鎶婃垚鐢熺殑涓瀵瑰瘑閽ヤ繚瀛樺埌DesKey.xml鏂囦歡涓?/span>
*/
public static void saveDesKey(){     
    try {
        SecureRandom sr = new SecureRandom();
        //涓烘垜浠夋嫨鐨凞ES綆楁硶鐢熸垚涓涓狵eyGenerator瀵硅薄
        KeyGenerator kg = KeyGenerator.getInstance ("DES" );
        kg.init (sr);
        FileOutputStream fos = new FileOutputStream("C:/DesKey.xml");
      ObjectOutputStream oos = new ObjectOutputStream(fos);
        //鐢熸垚瀵嗛挜
        Key key = kg.generateKey();
      oos.writeObject(key);
      oos.close();
    } catch (Exception e) {
      e.printStackTrace();
    }
}




鑾峰彇瀵嗛挜鏂規(guī)硶濡備笅:

/**

* 鑾峰緱DES鍔犲瘑鐨勫瘑閽ャ傚湪浜ゆ槗澶勭悊鐨勮繃紼嬩腑搴旇瀹氭椂鏇?/span>
* 鎹㈠瘑閽ャ傞渶瑕丣CE鐨勬敮鎸侊紝濡傛灉jdk鐗堟湰浣庝簬1.4錛屽垯闇瑕?/span>
* 瀹夎jce-1_2_2鎵嶈兘姝e父浣跨敤銆?/span>
* @return   Key 榪斿洖瀵圭О瀵嗛挜
*/
    public static Key getKey() {
        Key kp = null;
        try {
              String fileName = "conf/DesKey.xml";
              InputStream is = DesUtil.class.getClassLoader()
                      .getResourceAsStream(fileName);
              ObjectInputStream oos = new ObjectInputStream(is);
              kp = (Key) oos.readObject();
              oos.close();
        } catch (Exception e) {
              e.printStackTrace();
        }
        return kp;
    }


鏂囦歡閲囩敤DES綆楁硶鍔犲瘑鏂囦歡

/**
* 鏂囦歡file榪涜鍔犲瘑騫朵繚瀛樼洰鏍囨枃浠禿estFile涓?br />

* @param file
*         
瑕佸姞瀵嗙殑鏂囦歡 濡?/span>c:/test/srcFile.txt
* @param destFile
*         鍔犲瘑鍚庡瓨鏀劇殑鏂囦歡鍚?nbsp;濡俢:/鍔犲瘑鍚庢枃浠?/span>.txt
*/

public static void encrypt(String file, String destFile) throws Exception {

        Cipher cipher = Cipher.getInstance("DES");

        cipher.init(Cipher.ENCRYPT_MODE, getKey());

        InputStream is = new FileInputStream(file);

        OutputStream out = new FileOutputStream(dest);

        CipherInputStream cis = new CipherInputStream(is, cipher);

        byte[] buffer = new byte[1024];

        int r;

        while ((r = cis.read(buffer)) > 0) {

              out.write(buffer, 0, r);

        }

        cis.close();

        is.close();

        out.close();

    }


鏂囦歡閲囩敤DES綆楁硶瑙e瘑鏂囦歡


/**
鏂囦歡file榪涜鍔犲瘑騫朵繚瀛樼洰鏍囨枃浠禿estFile涓?br />

* @param file
*         
宸插姞瀵嗙殑鏂囦歡 濡俢:/鍔犲瘑鍚庢枃浠?/span>.txt
* @param destFile
*         瑙e瘑鍚庡瓨鏀劇殑鏂囦歡鍚?nbsp;濡俢:/ test/瑙e瘑鍚庢枃浠?/span>.txt
*/

public static void decrypt(String file, String dest) throws Exception {
        Cipher cipher = Cipher.getInstance("DES");
        cipher.init(Cipher.DECRYPT_MODE, getKey());
        InputStream is = new FileInputStream(file);
        OutputStream out = new FileOutputStream(dest);
        CipherOutputStream cos = new CipherOutputStream(out, cipher);
        byte[] buffer = new byte[1024];
        int r;
        while ((r = is.read(buffer)) >= 0) {
              cos.write(buffer, 0, r);
        }
        cos.close();
        out.close();
        is.close();
    } 

]]>
linux鏈嶅姟鍣≧PM鍖呭埗浣?/title><link>http://www.tkk7.com/weishuangshuang/archive/2013/03/22/396834.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Fri, 22 Mar 2013 01:59:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2013/03/22/396834.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/396834.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2013/03/22/396834.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/396834.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/396834.html</trackback:ping><description><![CDATA[<strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">1銆佹煡鐪嬫搷浣滅郴緇熺増鏈拰鍐呮牳鐗堟湰</strong><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#uname –a</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#more /etc/redhat-release</p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">2</strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">銆佸垱寤虹浉鍏崇洰褰?/strong><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">/usr/src/redhat/SOURCES //瀛樻斁婧愪唬鐮侊紝琛ヤ竵錛屽浘鏍囩瓑鏂囦歡銆?/p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "><br style="word-wrap: break-word; " />/usr/src/redhat/SPECS //瀛樻斁鐢ㄤ簬綆$悊rpm鍒朵綔榪涚▼鐨剆pec鏂囦歡銆?/p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "><br style="word-wrap: break-word; " />/usr/src/redhat/BUILD //瑙e帇鍚庣殑鏂囦歡瀛樻斁鍦ㄨ繖閲屻?/p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "><br style="word-wrap: break-word; " />/usr/src/redhat/RPMS //瀛樻斁鐢眗pmbuild鍒朵綔濂界殑浜岃繘鍒跺寘銆?/p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "><br style="word-wrap: break-word; " />/usr/src/redhat/SRPMS //瀛樻斁鐢眗pmbuild鍒朵綔濂界殑婧愮爜鍖呫?/p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#mkdir -p /usr/src/redhat/</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#cd /usr/src/redhat/</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#mkdir SOURCES SPECS BUILD RPMS SRPMS</p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">3</strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">銆佷笅杞?/strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">Nginx</strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">婧愮爜鍖?/strong><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">涓嬭澆婧愮爜鍖呭埌SOURCES鐩綍錛屼笉闇瑕佽В鍘?/p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#wget <a target="_blank" style="word-wrap: break-word; color: #336699; ">http://nginx.org/download/nginx-1.3.9.tar.gz</a></p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><span style="color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">4銆佹墜宸ュ垱寤篠PEC鏂囦歡</span><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">鐢變簬spec鏂囦歡鏄敱spec璇█緙栧啓鐨勶紝璇鋒敞鎰弒pec璇█鐨勮娉曘?/p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#cd /usr/src/redhat/SPECS/</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#cat < nginx.spec > EOC</p><table cellspacing="0" style="word-wrap: break-word; empty-cells: show; border-collapse: collapse; border-style: solid; border-color: #e3edf5; table-layout: auto; width: 696px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; line-height: 21px; text-align: start; background-color: #ffffff; "><tbody style="word-wrap: break-word; "><tr style="word-wrap: break-word; "><td width="568" style="word-wrap: break-word; padding: 4px; border-style: solid; border-color: #e3edf5; overflow: hidden; ">  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Summary:  High Performance Web Server</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Name:  nginx</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Version:  1.3.9</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Release:  el5</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">License:  GPL</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Group:  Applications/Server</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Source:  <a target="_blank" style="word-wrap: break-word; color: #336699; ">http://nginx.org/download/nginx-1.3.9.tar.gz</a></p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">URL:  <a target="_blank" style="word-wrap: break-word; color: #336699; ">http://nginx.org/</a></p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Distribution:  Linux</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">Packager:  JingSheng <<a href="mailto:jingsheng1@staff.sina.com.cn" target="_blank" style="word-wrap: break-word; color: #336699; ">jingsheng1@staff.sina.com.cn</a>></p>  <br style="word-wrap: break-word; " />  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">%description</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">nginx  [engine x] is a HTTP and reverse proxy server</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">%prep</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">useradd  nginx -s /sbin/nologin</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">rm -rf  $RPM_BUILD_DIR/nginx-1.3.9</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">zcat  $RPM_SOURCE_DIR/nginx-1.3.9.tar.gz | tar -xvf -</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">%build</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">cd  $RPM_BUILD_DIR/nginx-1.3.9</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">./configure  --user=nginx --group=nginx --prefix=/usr/local/nginx/ --with-http_stub_status_module  --with-http_ssl_module</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">make</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">%install</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">cd  $RPM_BUILD_DIR/nginx-1.3.9</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">make  install</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">%preun</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">if [ -z  "`ps aux | grep nginx | grep -v grep`" ];then</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">killall  nginx >/dev/null</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">exit 0</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">fi</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">%files</p>  <p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; ">/usr/local/nginx</p>  </td></tr></tbody></table><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#:浠?寮澶存槸娉ㄩ噴錛宺pm浼?xì)蹇界暐瀹冦?br style="word-wrap: break-word; " />Summary錛氱畝鍗曟弿榪拌蔣浠躲?br style="word-wrap: break-word; " />Name 錛氬畾涔塺pm鐨勫悕縐般?br style="word-wrap: break-word; " />Version: 瀹氫箟杞歡鐗堟湰<br style="word-wrap: break-word; " />Release: 鍙戣鐗堟湰<br style="word-wrap: break-word; " />License: 瀹氫箟璁稿彲璇?br style="word-wrap: break-word; " />Group: 杞歡鍒嗙被<br style="word-wrap: break-word; " />Source: 婧愮爜涓嬭澆鍦板潃<br style="word-wrap: break-word; " />URL: 婧愮爜鐩稿叧緗戠珯<br style="word-wrap: break-word; " />Distribution: 鍙戣鐗堢郴鍒?br style="word-wrap: break-word; " />Packager: 鎵撳寘浜虹殑淇℃伅</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">scription:杞歡璇︾粏鎻忚堪錛屽彲澶氳<br style="word-wrap: break-word; " />%prep 錛氳蔣浠剁紪璇戜箣鍓嶇殑澶勭悊錛屽瑙e帇銆?br style="word-wrap: break-word; " />%build 錛氬紑濮嬬紪璇戣蔣浠訛紝濡俶ake<br style="word-wrap: break-word; " />%install :寮濮嬪畨瑁呰蔣浠訛紝濡俶ake install<br style="word-wrap: break-word; " />%files :鎸囧畾鍝簺鏂囦歡闇瑕佽鎵撳寘錛屽/usr/local/nginx<br style="word-wrap: break-word; " />%preun :瀹氫箟鍗歌澆涔嬪墠鐨勫姩浣滐紝濡傛潃鎺夎繘紼嬨?/p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">5</strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">銆佸紑濮?/strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">RPM</strong><strong style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">鍒朵綔</strong><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">鍦ㄥ埗浣淩PM鍖呬箣鍓嶏紝闇瑕佸畨瑁呭繀瑕佺殑緙栬瘧宸ュ叿</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">#yum install -y gcc rpm-build pcre-devel</p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">寮濮嬬紪璇戠敓鎴恟pm鍖?/p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "># rpmbuild-bb nginx.spec</p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "></p><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; ">娉ㄦ剰錛氬鏋滃畨瑁呯敓鎴愭姤閿欙紝璇峰皢瀹夎榪囩殑涓滀笢鍏ㄩ儴鍘婚櫎錛屽啀閲嶆柊鎵撳寘</p><br style="word-wrap: break-word; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; " /><p align="left" style="word-wrap: break-word; margin: 0px; padding: 0px; color: #444444; font-family: Tahoma, Helvetica, SimSun, sans-serif; background-color: #ffffff; "># rpm –qpl *.rpm 鏌ョ湅rpm鍖呭惈鍝簺</p><img src ="http://www.tkk7.com/weishuangshuang/aggbug/396834.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2013-03-22 09:59 <a href="http://www.tkk7.com/weishuangshuang/archive/2013/03/22/396834.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Xmanager榪滅▼榪炴帴Redhat5http://www.tkk7.com/weishuangshuang/archive/2013/02/28/395874.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Thu, 28 Feb 2013 12:06:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/02/28/395874.htmlhttp://www.tkk7.com/weishuangshuang/comments/395874.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/02/28/395874.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/395874.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/395874.html鏈榪戜竴鐩村湪鎶樿吘linux錛宑entos銆乺edhat瑁呬簡鍙堣錛屽埌鏈鍚庤繕鏄浜唕edhat銆?/p>

浠ュ墠澶氬皯鎺ヨЕ榪噇inux錛屼絾鏄兘涓嶆繁鍏ワ紙榪欐铏界劧涔熸槸鐨瘺錛屼絾鏄◢寰煡閬撲簡涓浜涗笢涓滐紝鐜板湪灝卞崠浜嗭級(jí)錛岃繖嬈′粠闆跺紑濮嬭嚜宸辨姌鑵緇inux錛岀‘瀹炴槸琚玪inux鎶樿吘浜嗐俵inux璺焪indows紜疄鏈夊緢澶氫笉鍚岋紝鏈夋満浼?xì)鍐嵕lх畫浠嬬粛錛岃繖嬈″厛璇翠竴涓嬩嬌鐢╔manager榪滅▼榪炴帴Redhat鐨勭粡鍘嗐?/p>

Xmanager涓嶅璇翠簡錛屾槸涓嬈鵑潪甯鎬笉閿欑殑綆$悊宸ュ叿銆備絾鏄紝濡傛灉瑕佽Xmanager榪滅▼榪炴帴redhat錛屽叾瀹炶繙紼嬭繛鎺ワ紝涓昏榪樻槸鎯寵鍋氭垚璺焪indows鐨勮繙紼嬫闈竴鏍風(fēng)殑涓滆タ錛屽浘褰㈢晫闈㈡柟渚垮暒錛?br />

鍙槸榪欐閰嶇疆Xmanager鐩稿綋鐥涜嫤錛屾寜鐓х綉涓婂悇縐嶈祫鏂欏redhat榪涜閰嶇疆錛岀劧鍚庝笉鍋滅殑reboot錛屼絾鏄紝xmanager鎬繪槸榪炰笉涓娿?br />

榪欏叾涓紝淇敼鐨勬枃浠跺寘鎷細(xì)

/usr/share/gdm/defaults.conf榪欎釜gdm鐨勯厤緗枃浠訛紝涓昏鏄互涓嬪唴瀹癸細(xì)

Enable=true

DisplaysPerHost=10

Port=177

榪樻湁/etc/inittab鏂囦歡錛屼富瑕佹槸棣栧厛榛樿綰у埆涓?錛岃繖涓枃浠惰矊浼煎湪瀹夎鐨勬椂鍊欏氨宸茬粡榛樿涓?浜嗐俰d:5:initdefault:

鐒跺悗鏈鍚庝竴琛岀殑“x:5:respawn:/etc/X11/prefdm -nodaemon”璋冩暣涓猴細(xì)

x:5:respawn:/usr/sbin/gdm

褰撶劧錛岃繕寰楁敼錛?/p>

渚濈劧鏄?usr/share/gdm/defaults.conf錛屽湪[security]涓皟鏁翠互涓嬬殑鍊鹼細(xì)

AllowRoot=true

AllowRemoteRoot=true

AllowRemoteAutoLogin=true

濡傛灉寮鐫闃茬伀澧欙紝閭h繕鏄鏀懼紑177绔彛錛屾垜鏆傛椂鎶婇槻鐏鍏充簡銆?/p>

reboot錛乺eboot鎬繪槸寰堥噸瑕佺殑錛?/p>

濡傛灉涓婅堪璋冩暣瀹屾垚涔嬪悗錛屼緷鐒舵棤娉曡繛鎺ワ紝鎴戝氨鏄繖鏍風(fēng)殑鎯呭喌錛岃繛鎺ヤ笉涓婂晩錛侊紒錛侊紒

鍙堥殢渚挎壘浜嗗嚑綃囨枃绔狅紝涔熻璺焗osts鏂囦歡鏈夊叧緋誨摝錛?br />

鎵撳紑/etc/hosts鏂囦歡涓鐪嬶紝絀虹殑錛侊紒錛?/p>

鍦ㄥ叾涓姞涓?27.0.0.1 localhost錛宺eboot錛屾垜鎬繪槸鍠滄reboot錛岃繖鏍鋒瘮杈冨共鍑錛佹瘮杈冨交搴曪紒

鍦╔start涓厤緗ソ鐩稿簲鐨勫弬鏁幫紝涓瀹氳鍦–ommond涓夋嫨“GNOME”錛岃繖鏍峰啀Run錛孹browser灝嗕箙榪濈殑redhat妗岄潰鎵撳紑浜嗭紒



]]>
SecureCRT浣跨敤SSH榪炴帴linux瓚呮椂鍚庤嚜鍔ㄦ柇寮http://www.tkk7.com/weishuangshuang/archive/2013/02/28/395873.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Thu, 28 Feb 2013 12:04:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/02/28/395873.htmlhttp://www.tkk7.com/weishuangshuang/comments/395873.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/02/28/395873.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/395873.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/395873.html浠婂ぉ寮鍙戠殑鍚屼簨錛屽拰鎴戣

SecureCRT榪炴帴鍒癐DC鏈嶅姟鍣紝鑰佽秴鏃舵柇寮錛屽獎(jiǎng)鍝嶅伐浣滀簡

鐮旂┒浜嗕笅銆?/p>

鍥犱負(fù)瀹㈡埛绔笌鏈嶅姟鍣?/strong>涔嬮棿瀛樺湪璺敱鍣紝闃茬伀澧欎互鍙?qiáng)湄?fù)浜嗘湰韜殑瀹夊叏鎬э紝鍦ㄨ秴榪囩壒瀹氱殑鏃墮棿鍚庡氨浼?xì)鎶娊I洪棽榪炴帴鏂紑銆傛垨鑰呮槸鏈嶅姟鍣ㄧ璁劇疆浜嗘柇寮絀洪棽榪炴帴銆?br style="line-height: normal !important; word-break: break-all" />瑙e喅鏂規(guī)硶錛?/font>
鏃㈢劧浼?xì)鏂紑瓚呮椂鐨勭┖闂茶繛鎺ワ紝閭d箞鎴戜滑灝卞簲璇ヨ瀹㈡埛绔笌鏈嶅姟鍣ㄤ箣闂寸殑榪炴帴“蹇?#8221;璧鋒潵錛屾柟娉曟湁涓や釜:
浠庢湇鍔″櫒鏂歸潰鍏ユ墜錛?br style="line-height: normal !important; word-break: break-all" />淇敼/etc/ssh/sshd_config閰嶇疆鏂囦歡 ClientAliveInterval 300錛堥粯璁や負(fù)0錛?br style="line-height: normal !important; word-break: break-all" />榪欎釜鍙傛暟鐨勬槸鎰忔濇槸姣?鍒嗛挓錛屾湇鍔″櫒鍚戝鎴風(fēng)鍙戜竴涓秷鎭紝鐢ㄤ簬淇濇寔榪炴帴
service sshd reload 鐢熸晥
浠庡鎴風(fēng)鍏ユ墜錛?br style="line-height: normal !important; word-break: break-all" />涓婇潰鏄厤緗渶瑕佹湇鍔″櫒鏉冮檺錛屽鏋滄病鏈夋湇鍔″櫒鏉冮檺鍒欏彲浠ヤ嬌鐢ㄨ繖涓柟娉曪紝鍏舵濇兂鏄細(xì)瀹㈡埛绔悜鏈嶅姟鍣ㄥ彂涓涓秷鎭紝鐢ㄤ簬淇濇寔榪炴帴
secureCRT鍦ㄩ夐」 緇堢 鍙嶇┖闂?涓緗瘡闅斿灝戠鍙戦佷竴涓瓧絎︿覆錛屾垨鑰呮槸NO-OP鍗忚鍖?br style="line-height: normal !important; word-break: break-all" />putty錛歱utty -> Connection -> Seconds between keepalives ( 0 to turn off ), 榛樿涓?, 鏀逛負(fù)300


CentOS 5榪滅▼SSH榪炴帴瓚呮椂璁懼畾
鎿嶄綔緋葷粺錛欳entOS 5.6    SSH鐗堟湰錛歄penSSH_4.3p2
緗戜笂寰堝鏂囩珷閮借錛岃繙紼婼SH榪炴帴鐨勮秴鏃惰瀹氭槸鍦?etc/ssh/sshd_config閲岋紝浣跨敤ClientAliveInterval鍜孋lientAliveCountMax閫夐」錛屾垜鍘熸潵涔熻繖涔堣涓虹殑錛屼笉榪囦竴鐩存病閰嶇疆榪囪秴鏃躲?/span>
浠婂ぉ閰嶇疆浜嗕竴涓嬶紝鍙戠幇榪欎釜鏄笉瀵圭殑錛屾紜殑閰嶇疆鏄湪/etc/profile閲岋紝浣跨敤TMOUT閫夐」榪涜鎺у埗錛屽TMOUT=300錛岃瀹氳秴鏃墮棿闅斾負(fù)300縐掋?/span>


]]>
鍏充簬澶氱敤鎴瘋繙紼嬫闈㈢殑瀹炵幇鈥斺擶IN7 鐗?/title><link>http://www.tkk7.com/weishuangshuang/archive/2013/01/06/393877.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Sun, 06 Jan 2013 08:00:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2013/01/06/393877.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/393877.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2013/01/06/393877.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/393877.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/393877.html</trackback:ping><description><![CDATA[<p>榪滅▼妗岄潰鏈嶅姟浣垮眬鍩熺綉 (LAN) 涓婄殑璁$畻鏈哄彲浠ヨ繛鎺ュ埌鏈嶅姟鍣紙涔熺О涓鴻繙紼嬭綆楁満錛夊茍榪愯浣嶄簬鏈嶅姟鍣ㄤ笂鐨勭▼搴忋傝繖鍙互鍙渶瑕佸湪1鍙版満鍣ㄤ笂瀹夎搴旂敤紼嬪簭錛屽叾浠栨満鍣ㄥ叡浜嬌鐢ㄣ傝繙紼嬫闈㈣繛鎺ヤ嬌鐢ㄨ繙紼嬫闈㈡湇鍔℃妧鏈紝浣夸竴鍙拌綆楁満鍙繙紼嬫帶鍒跺彟涓鍙拌綆楁満銆?/p><p>windows 榪滅▼緇堢鏈嶅姟鏄崟鐢ㄦ埛鐨勶紝涔熷氨鏄閫氳繃榪滅▼鐧誨綍鍒版湇鍔″櫒鏃訛紝鏈嶅姟鍣ㄦ湰鍦板皢榛戝睆銆傚浣曞仛鍒頒笉綆$敤鏈湴鐧誨綍榪樻槸榪滅▼鐧誨綍錛屽悓涓鏃跺埢瀹硅澶氫釜鐢ㄦ埛鎿嶄綔鏈嶅姟鍣ㄨ綆楁満銆?/p><p>棣栧厛錛?/p><p>瑕佸畨瑁呭伐鍏峰寘錛岄渶瑕佷粠寰蔣涓嬭澆(榪滅▼鏈嶅姟鍣ㄧ鐞嗗伐鍏?<a >http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d</a> )錛屽畨瑁呭崌綰у寘鍚庯紝鍦ㄦ帶鍒墮潰鏉?-紼嬪簭鍜屽姛鑳?-鎵撳紑鎴栧叧闂璚INDOWS鍔熻兘---榪滅▼鏈嶅姟鍣ㄧ鐞嗗伐鍏?-瑙掕壊綆$悊宸ュ叿--榪滅▼妗岄潰鏈嶅姟宸ュ叿錛岄変腑鍓嶉潰鐨勯夋嫨妗嗐?br />鍦ㄥ紑濮?-鍛戒護(hù)妗嗚緭鍏md,鍦ㄥ脊鍑虹殑Dos鐣岄潰杈撳叆netstat -na ,濡傛灉鍑虹幇 3389 绔彛錛屽氨璇存槑榪滅▼緇堢宸茬粡鍚姩浜嗐?/p><p>鐒跺悗錛?/p><p>1, 涓嬭澆 琛ヤ竵UniversalTermsrvPatch錛屽姛鑳藉氨鏄幓闄ゅ崟鐢ㄦ埛鐧婚檰鐨勯檺鍒訛紝鍏佽澶氫漢澶氱敤鎴峰悓鏃跺茍琛岃闂櫥褰曘?br />2, 鏍規(guī)嵁浣犵殑緋葷粺榪愯瀵瑰簲鐨勭▼搴忥細(xì)<br /> 32浣嶇郴緇熻榪愯 UniversalTermsrvPatch-x86.exe;<br /> 64浣嶇郴緇熻榪愯 UniversalTermsrvPatch-x64.exe銆?br />3, 闇瑕佺鐞嗗憳鏉冮檺銆傚彸閿偣紼嬪簭錛岄夋嫨浠ョ鐞嗗憳韜喚榪愯銆?br />4, 鐮磋В鍚庨渶瑕侀噸鍚敓鏁堛?br />5, 澶囦喚鏂囦歡錛?\windows\system32\termsrv.dll.backup.(濡傛灉鎯寵繕鍘熻緗?璇峰皢澶囦喚鏂囦歡鏀瑰悕涓簍ermsrv.dll鏇挎崲鐮磋В鐨勬枃浠跺嵆鍙?</p><p>榪滅▼妗岄潰鐨勫叾瀹冨彲鑳界殑璁劇疆錛?br /> 榪愯gpedit.msc鎵撳紑緇勭瓥鐣ワ紝璁$畻鏈洪厤緗紞綆$悊妯℃澘錛峎indows緇勪歡錛嶈繙紼嬫闈㈡湇鍔★紞榪滅▼妗岄潰浼?xì)璇濅咐L満-榪炴帴-“闄愬埗榪炴帴鏁伴噺”錛屽鏋滃皢鐘舵佽緗負(fù)“紱佺敤”鎴?#8220;鏈厤緗?#8221;錛屽垯鍦?#8220;緇勭瓥鐣?#8221;綰у埆涓婁笉寮哄埗闄愬埗榪炴帴鐨勬暟閲忋?/p><img src ="http://www.tkk7.com/weishuangshuang/aggbug/393877.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2013-01-06 16:00 <a href="http://www.tkk7.com/weishuangshuang/archive/2013/01/06/393877.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Windows Server2003榪滅▼妗岄潰澶氱敤鎴瘋繛鎺ョ殑闂http://www.tkk7.com/weishuangshuang/archive/2013/01/06/393874.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Sun, 06 Jan 2013 07:59:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/01/06/393874.htmlhttp://www.tkk7.com/weishuangshuang/comments/393874.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/01/06/393874.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/393874.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/393874.html鍦╓indows 2003緋葷粺涓婄殑榪滅▼妗岄潰瀹為檯涓婂氨鏄粓绔湇鍔★紝铏界劧榪滅▼妗岄潰鏈鍒濆湪Windows XP涓婂氨宸茬粡瀛樺湪錛屼絾鐢變簬Windows XP鐨勮繙紼嬫闈㈠姛鑳斤紝鍙兘鎻愪緵涓涓敤鎴蜂嬌鐢ㄨ綆楁満錛屽洜姝や嬌鐢ㄧ巼騫朵笉楂樸傝學(xué)indows 2003鎻愪緵鐨勮繙紼嬫闈㈠姛鑳藉垯鍙緵澶氱敤鎴峰悓鏃朵嬌鐢紝鍦ㄥ叾涓婂彲浠ヨ繍琛岀▼搴忋佷繚瀛樻枃浠跺拰浣跨敤緗戠粶璧勬簮錛屽湪寰堝鏂歸潰鍙互鍍忎嬌鐢ㄧ粓绔竴鏍鳳紝騫朵笖鍦ㄧ鐞嗗強(qiáng)閰嶇疆鏂歸潰姣斿師鏉ョ殑緇堢鏈嶅姟鏇存柟渚褲傝鏇村ソ鍦板彂鎸ヨ繙紼嬫闈㈢殑浣滅敤灝辮瀵硅繙紼嬫闈㈣繘琛岀浉搴旂殑閰嶇疆銆?www.2cto.com  
  緇勭瓥鐣ョ紪璇戝櫒錛坓pedit.msc錛夐厤緗?/div>
 
浣跨敤緇勭瓥鐣ョ紪璇戝櫒閰嶇疆鐢ㄦ埛榪滅▼榪炴帴鏁頒互鍙?qiáng)鐢ㄦ埛浼?xì)璇濇暟錛?/div>
1錛?#8220;寮濮?#8221;—>“榪愯”杈撳叆gpedit.msc鍥炶濺鎵撳紑緇勭瓥鐣ョ紪璇戝櫒->“璁$畻鏈洪厤緗?#8221;->“綆$悊妯℃澘”->“windows緇勪歡”->“緇堢鏈嶅姟”,鍙充晶榧犳爣鍙抽敭閫夋嫨“闄愬埗榪炴帴鏁?#8221;鎵撳紑灞炴э紝閫夋嫨“璁劇疆”—>閫夋嫨“宸插惎鐢?#8221;錛? “TS    鍏佽鐨勬渶澶ц繛鎺ユ暟”濉啓浣犳墍闇瑕佺殑鏁伴噺錛屼緥濡傦細(xì)20銆傜‘瀹氬畬鎴愭渶澶ц繛鎺ユ暟闄愬埗璁劇疆銆傚弻鍑?#8220;浼?xì)璇?#8221;->閫夋嫨“涓烘柇寮鐨勪細(xì)璇濊緗椂闂撮檺鍒?#8221;鍙抽敭閫夋嫨灞炴?銆?#8220;璁劇疆”->xuanze閫夋嫨“宸插惎鐢?#8221;-銆?#8220;緇撴潫鏂紑榪炴帴浼?xì)璇?#8221;濉啓鍚堥傜殑鏃墮棿錛屼簲鍒嗛挓涓哄ソ銆?/div>
 
銆銆緇堢鏈嶅姟閰嶇疆(Tscc.msc)鐨勪嬌鐢?/div>
 
銆銆浣跨敤緇堢鏈嶅姟閰嶇疆鍙互鏇存敼鏈湴璁$畻鏈轟笂璇ヨ繛鎺ョ殑灞炴с佹坊鍔犳柊榪炴帴鎴栬緗湇鍔″櫒銆傛墦寮“鎺у埗闈㈡澘”—銆?#8220;綆$悊宸ュ叿”錛屽崟鍑?#8220;緇堢鏈嶅姟鍣ㄩ厤緗?#8221;鍚姩緇堢鏈嶅姟閰嶇疆紿楀彛銆?/div>
 
銆銆1 鍗曞嚮宸﹁竟紿楀彛鐨?#8220;榪炴帴”欏癸紝鍙寵竟紿楀彛鍗沖嚭鐜板彲閫夌殑RDP-TCP榪炴帴錛屽彸鍑?#8220;RDP-TCP”錛岄?#8220;灞炴?#8221;鍑虹幇RDP-Tcp灞炴у璇濇錛屼富瑕侀厤緗湁:
銆銆(1)榪炴帴鏁拌緗?鍙湪“緗戝崱”閫夐」涓洿鏀廣傝緗洿澶氬湴榪炴帴鏁板彲浣挎洿澶氱殑鐢ㄦ埛鍚屾椂鐧誨綍鏈嶅姟鍣ㄣ傞粯璁ゆ渶澶氬悓鏃朵袱涓敤鎴瘋繛鎺ワ紝濡傛灉鎯寵浣?涓互涓婄殑鐢ㄦ埛鍚屾椂浣跨敤榪滅▼妗岄潰鍔熻兘錛屽垯蹇呴』瀹夎緇堢鏈嶅姟錛屽畨瑁呭悗灝卞彲浠ヤ換鎰忚瀹氱敤鎴鋒暟鍒躲? www.2cto.com  
銆銆瀹夎緇堢鏈嶅姟鍙氳繃Windows鐨?#8220;娣誨姞/鍒犻櫎紼嬪簭”—銆?#8220;娣誨姞/鍒犻櫎Windows緇勪歡”涓紝閫変腑“緇堢鏈嶅姟鍣?#8221;鏉ユ坊鍔狅紝鏍規(guī)嵁闇瑕佸畬鎴愮浉搴旈厤緗紝瀹屾垚緇堢鏈嶅姟瀹夎錛岄噸鍚満鍣ㄧ敓鏁堛?/div>
銆銆鐢變簬姣忎釜鐢ㄦ埛榪炴帴榪滅▼妗岄潰鍚庢渶灝忓崰鐢?2MB宸﹀彸鐨勫唴瀛橈紝鍥犳鍙牴鎹湇鍔″櫒鍐呭瓨澶у皬鏉ヨ瀹氱敤鎴鋒暟錛屼竴鑸敤鎴鋒暟涓嶈澶錛屼互鍏嶅獎(jiǎng)鍝嶆ц兘銆傚256MB鍐呭瓨鍙瀹氱敤鎴鋒暟8涓乏鍙籌紝512MB鍐呭瓨鍙瀹?0~30涓?/div>
銆銆(2)璋冩暣棰滆壊鍒嗚鯨鐜?棰滆壊娣卞害):鍦?#8220;瀹㈡埛绔緗?#8221;欏逛腑銆傞檺鍒墮鑹叉繁搴﹀彲浠ュ寮鴻繛鎺ユц兘錛屽挨鍏舵槸瀵逛簬鎱㈤熼摼鎺ワ紝騫朵笖榪樺彲浠ュ噺杞繪湇鍔″櫒璐熻澆銆?#8220;榪滅▼妗岄潰”榪炴帴鐨勫綋鍓嶉粯璁ゆ渶澶ч鑹叉繁搴﹁緗負(fù) 16 浣嶃?/div>
銆銆閫変腑“棰滆壊娣卞害鏈澶у?#8221;錛屽彲淇敼闄愬畾鐨勬渶澶ч鑹叉繁搴︿負(fù)8銆?5銆?6鎴?4浣嶃傝嫢涓嶉変腑錛屽垯浣跨敤鐧誨綍鐨勫鎴風(fēng)棰滆壊璁劇疆銆?/div>
銆銆(3)璁╁鎴瘋嚜鍔ㄧ櫥褰?鍦?#8220;鐧誨綍璁劇疆”閫夐」鍗′笂銆傝繖瀵規(guī)櫘閫氬簲鐢ㄩ潪甯告柟渚匡紝鍙姞蹇櫥褰曢熷害錛屾彁楂樻湇鍔℃晥鐜囥?/div>
銆銆瑕佷嬌鐢ㄨ嚜鍔ㄧ櫥褰曪紝闇閫変腑“鎬繪槸浣跨敤涓嬪垪鐧誨綍淇℃伅”錛屽湪“鐢ㄦ埛鍚?#8221;涓紝閿叆鍏佽鑷姩鐧誨綍鍒版湇鍔″櫒鐨勭敤鎴風(fēng)殑鍚嶇О錛屽湪“瀵嗙爜”鍜?#8220;紜瀵嗙爜”涓紝閿叆璇ョ敤鎴風(fēng)殑瀵嗙爜銆?榪欐牱瀹㈡埛绔繛鎺ユ椂灝嗕笉鐢ㄥ啀杈撳叆鐢ㄦ埛鍚嶅拰瀵嗙爜錛岃岃嚜鍔ㄨ繘鍏indows 2003妗岄潰(娉ㄦ剰:鑻ユ鍚庡啀鏈夌敤鎴風(fēng)櫥褰曪紝閭d箞鍘熸潵鐨勮繛鎺ュ皢琚柇寮)銆傝嫢杈撳叆涓嶅畬鏁達(dá)紝鍒欑櫥褰曟椂榪樹細(xì)瑕佹眰杈撳叆鐢ㄦ埛鍚嶆垨瀵嗙爜銆?/div>
銆銆濡傝鎯蟲洿瀹夊叏鐨勪嬌鐢ㄦ湇鍔″櫒錛屽垯搴旈変腑“鎬繪槸鎻愮ず瀵嗙爜”浠ユ寚瀹氳鐢ㄦ埛鍦ㄧ櫥褰曞埌鏈嶅姟鍣ㄤ箣鍓嶅緇堣琚彁紺鴻緭鍏ュ瘑鐮侊紝浠庤岄檺鍒跺鎴風(fēng)鐨勮嚜鍔ㄧ櫥褰曘?/div>
銆銆(4)瀵硅繛鎺ヨ嚜鍔ㄩ檺鍒剁鐞?鍗曞嚮“浼?xì)璇?#8221;欏規(guī)潵璁懼畾銆備富瑕佺敤鏉ヨ瀹氳秴鏃剁殑闄愬埗錛屼互渚塊噴鏀句細(xì)璇濇墍鍗犵敤鐨勮祫婧愶紝“緇撴潫宸叉柇寮鐨勪細(xì)璇?#8221;鍜?#8220;絀洪棽浼?xì)璇濋檺鍒?#8221;鐨勬椂闂達(dá)紝涓鑸簲鐢ㄨ涓?鍒嗛挓杈冨ソ銆傚瀹夊叏鎬ц姹傞珮鐨勪篃鍙瀹?#8220;媧誨姩浼?xì)璇濋檺鍒?#8221;鐨勬椂闂淬?#8220;杈懼埌浼?xì)璇濋檺鍒舵垨鑰呰繛鎺ヨ涓柇鏃?#8221;涓嬬殑閫夐」錛屾渶濂介?#8220;緇撴潫浼?xì)璇?#8221;錛岃繖鏍瘋繛鎺ユ墍鍗犵殑璧勬簮灝變細(xì)琚噴鏀俱?/div>
銆銆(5)璁劇疆鍔犲瘑綰у埆:鍗曞嚮“甯歌”欏癸紝鍙寚瀹氬湪緇堢鏈嶅姟浼?xì)璇濇湡闂村Q屽浜庡鎴風(fēng)涓庤繙紼嬭綆楁満涔嬮棿鍙戦佺殑鎵鏈夋暟鎹槸鍚﹀己鍒跺姞瀵嗙駭鍒傚垎鍥涗釜綰у埆:絎﹀悎 FIPS(鏈楂樼駭鍒殑鍔犲瘑)銆侀珮(鍔犲瘑鏁版嵁緇忚繃寮?128 浣嶅姞瀵嗐?銆佸鎴風(fēng)鍏煎(鍔犲瘑鏁版嵁緇忚繃瀹㈡埛绔敮鎸佺殑鏈澶у瘑閽ュ己搴﹀姞瀵?鍜屼綆(浠庢湇鍔″櫒鍙戦佸埌瀹㈡埛绔殑鏁版嵁灝嗕笉浼?xì)琚姞瀵?銆?/div>
銆銆(6)鍚敤緇堢瀹㈡埛闊抽:鍦?#8220;瀹㈡埛绔緗?#8221;欏逛笅杈癸紝榛樿涓虹鐢紝浠ヨ妭綰︽湇鍔″櫒璧勬簮銆傚綋鐢ㄦ埛灝戞椂 錛屽崟鍑?#8220;闊抽鏄犲皠”鍘繪帀琚鐢ㄧ殑閫夐」錛屼嬌緇堢瀹㈡埛鑳戒嬌鐢ㄥ濯掍綋璁懼銆傚綋鐒?dòng)灱屽鎴风璁〗帡鏈轰篃蹇厵寤瑁呮湁澹板崱銆? www.2cto.com  
銆銆濡傛灉鏈夊涓敤鎴瘋繛鎺ュ埌鐩稿悓鐨勬湇鍔″櫒錛屽垯浼?xì)浠ュ悓涓涓敤鎴峰悕鐧誨綍銆?/div>
 
銆銆(7)鍚敤椹卞姩鍣ㄦ槧灝?姝ら」鍙柟渚跨粓绔笌鏈嶅姟鍣ㄧ鐩橀棿鏂囦歡鐨勭浉浜掍紶閫併傚惎鐢ㄥ悗鏈湴椹卞姩鍣ㄥ皢浣滀負(fù)緗戠粶椹卞姩鍣ㄦ樉紺哄湪緇堢涓?/div>
 
銆銆鍚屾牱榪樻湁鎵撳嵃鏈恒佸壀璐存澘銆乧om绔彛絳変篃鍙緗槧灝勩備絾姣忚緗竴涓兘瑕佸崰鐢ㄤ竴瀹氱殑緋葷粺璧勬簮;鎵浠ワ紝涓鑸敤鎴鋒渶濂界鐢ㄣ?/div>
 
銆銆(8)鏈嶅姟鍣ㄧ殑瀹夊叏璁劇疆:鍦?#8220;鏉冮檺”欏癸紝鍙夋嫨緇勬垨鐢ㄦ埛錛岄檺鍒跺叾瀵圭粓绔殑閰嶇疆鏉冮檺銆傚彟澶栵紝鐢變簬鍙湁Administrators 鍜?Remote Desktop Users 緇勭殑鎴愬憳鍙互浣跨敤緇堢鏈嶅姟榪炴帴涓庤繙紼嬭綆楁満榪炴帴錛屾墍浠ュ彲瀵逛笉鍚岀敤鎴峰垎緇勭鐞嗭紝瀵逛簬瑕佹眰瀹夊叏鎬ч珮鐨勶紝鍙埄鐢∟TFS鍒嗗尯璁劇疆涓嶅悓鐢ㄦ埛鐨勬潈闄愩?/div>
 
“鏈嶅姟鍣ㄨ緗?#8221;—銆?#8220;闄愬埗姣忎釜鐢ㄦ埛浣跨敤涓涓細(xì)璇?#8221;鍙抽敭閫夋嫨灞炴э紝鍘婚櫎“闄愬埗姣忎釜鐢ㄦ埛浣跨敤涓涓細(xì)璇?#8221;鐨勫嬀閫夛紝紜瀹屾垚璁劇疆銆?/div>
  鏁翠釜澶氱敤鎴風(fēng)殑榪滅▼榪炴帴璁劇疆鍒版緇撴潫銆?/div>

]]>鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡http://www.tkk7.com/weishuangshuang/archive/2013/01/06/393876.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Sun, 06 Jan 2013 07:59:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2013/01/06/393876.htmlhttp://www.tkk7.com/weishuangshuang/comments/393876.htmlhttp://www.tkk7.com/weishuangshuang/archive/2013/01/06/393876.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/393876.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/393876.html
鍦ㄨ繙紼嬬鐞嗘柟闈紝W(xué)indows Server 2003緋葷粺涓涓渶鏄庢樉鐨勮繘姝ュ氨鏄鍔犱簡“榪滅▼妗岄潰”鍔熻兘銆傝繖鏍蜂竴鏉ワ紝浠嶹indows 2000淇濈暀涓嬫潵鐨勭粓绔湇鍔′技涔庡氨鏄懼緱鏈夌偣澶氫綑浜嗐傜劧鑰屾儏鍐靛茍涓嶆槸榪欐牱錛屽洜涓哄湪涓嶅畨瑁?#8220;緇堢鏈嶅姟鍣?#8221;鐨勫墠鎻愪笅錛?#8220;榪滅▼妗岄潰”鍔熻兘鐨勫彲綆$悊鎬ф瘮杈冩湁闄愩傛惌寤虹粓绔湇鍔″櫒浠ュ悗錛屽Windows 2000 Server鍜學(xué)indows Server 2003緋葷粺鐨勮繙紼嬬鐞嗘搷浣滃皢鏇村姞鐏墊椿銆?br />鍦╓indows Server 2003錛圫P1錛変腑榛樿娌℃湁瀹夎緇堢鏈嶅姟鍣ㄧ粍浠訛紝鐢ㄦ埛闇瑕佹墜鍔ㄦ坊鍔犺緇勪歡銆傚畨瑁呯粓绔湇鍔$粍浠剁殑姝ラ濡備笅鎵榪幫細(xì)

姝ラ/鏂規(guī)硶

  1. 絎?姝ワ紝鍦ㄥ紑濮嬭彍鍗曚腑渚濇鍗曞嚮“鎺у埗闈㈡澘”→“娣誨姞鎴栧垹闄ょ▼搴?#8221;鑿滃崟欏癸紝鎵撳紑“娣誨姞鎴栧垹闄ょ▼搴?#8221;紿楀彛銆傜劧鍚庡崟鍑?#8220;娣誨姞/鍒犻櫎Windows緇勪歡”鎸夐挳錛屾墦寮“Windows緇勪歡鍚戝”瀵硅瘽妗嗐傚湪“緇勪歡”鍒楄〃涓変腑“緇堢鏈嶅姟鍣?#8221;澶嶉夋錛屽鍥?008112107鎵紺恒?br />鍥?008112107 閫変腑“緇堢鏈嶅姟鍣?#8221;澶嶉夋
    鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡
  2. 絎?姝ワ紝鎵撳紑“閰嶇疆璀﹀憡”瀵硅瘽妗嗭紝鎻愮ず鐢ㄦ埛鍏充簬IE瀹夊叏閰嶇疆鏂歸潰鐨勪俊鎭傚洜涓洪厤緗粓绔湇鍔″櫒鐨勭洰鐨勪富瑕佹槸涓轟簡榪滅▼綆$悊Windows Server 2003鏈嶅姟鍣紝瀵逛簬嫻忚Internet鏂歸潰鐨勮姹傚茍涓嶉珮錛屽洜姝ょ洿鎺ュ崟鍑?#8220;鏄?#8221;鎸夐挳銆傝繑鍥?#8220;Windows緇勪歡”瀵硅瘽妗嗭紝閫変腑“緇堢鏈嶅姟鍣ㄦ巿鏉?#8221;澶嶉夋錛屽茍鍗曞嚮“涓嬩竴姝?#8221;→“涓嬩竴姝?#8221;鎸夐挳鍗沖彲錛屽鍥?008112108鎵紺恒?br />鍥?008112108 “閰嶇疆璀﹀憡”瀵硅瘽妗?/div>
    鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡
  3. 絎?姝ワ紝鍦ㄦ墦寮鐨勪負(fù)搴旂敤紼嬪簭鍏煎鎬ч夋嫨榛樿鏉冮檺瀵硅瘽妗嗕腑鍒楀嚭涓ょ瀹夎妯″紡錛屽嵆“瀹屾暣瀹夊叏妯″紡”鍜?#8220;瀹芥澗瀹夊叏妯″紡”銆傞夋嫨涓嶅悓鐨勬ā寮忎細(xì)搴旂敤鍒癢indows Server 2003緋葷粺鐨勪笉鍚屽畨鍏ㄧ駭鍒傞変腑“瀹屾暣瀹夊叏妯″紡”鍗曢夋錛屽茍鍗曞嚮“涓嬩竴姝?#8221;鎸夐挳錛屽鍥?008112109鎵紺恒?br />鍥?008112109 閫変腑“瀹屾暣瀹夊叏妯″紡”鍗曢夋
    鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡
  4. 絎?姝ワ紝鎵撳紑鎸囧畾緇堢鏈嶅姟鍣ㄨ鍙瘉鏈嶅姟鍣ㄥ璇濇錛屾彁紺虹敤鎴瘋緇堢鏈嶅姟鍣ㄥ繀欏誨湪120澶╁唴涓嶹indows Server 2003緇堢鏈嶅姟鍣ㄨ鍙瘉鏈嶅姟鍣ㄨ繛鎺ユ墠鑳戒繚璇佹甯鎬嬌鐢ㄣ傜敱浜庡湪“Windows緇勪歡”瀵硅瘽妗嗕腑閫変腑浜?#8220;緇堢鏈嶅姟鍣ㄦ巿鏉?#8221;澶嶉夋錛屽垯鎰忓懗鐫榪欏彴Windows Server 2003緇堢鏈嶅姟鍣ㄥ皢鍚屾椂浣滀負(fù)璁稿彲璇佹湇鍔″櫒銆傚洜姝ら変腑“浣跨敤涓嬪垪璁稿彲璇佹湇鍔″櫒”鍗曢夋錛屽茍鍦ㄧ紪杈戞涓緭鍏ヨ繖鍙版湇鍔″櫒鐨勫悕縐版垨IP鍦板潃銆傝緗畬姣曞崟鍑?#8220;涓嬩竴姝?#8221;鎸夐挳錛屽鍥?008112110鎵紺恒?br />鍥?008112110 杈撳叆璁稿彲璇佹湇鍔″櫒IP鍦板潃
    鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡
  5. 絎?姝ワ紝鍦ㄦ墦寮鐨勭粓绔湇鍔″櫒鎺堟潈妯″紡瀵硅瘽妗嗕腑錛岃姹傜敤鎴鋒寚瀹氳繖鍙扮粓绔湇鍔″櫒浣跨敤鐨勬巿鏉冩ā寮忋傞変腑“姣忚澶囨巿鏉冩ā寮?#8221;鍗曢夋錛屽茍鍗曞嚮“涓嬩竴姝?#8221;鎸夐挳錛屽鍥?008112111鎵紺恒?br />鍥?00811211 閫変腑“姣忚澶囨巿鏉冩ā寮?#8221;鍗曢夋
    鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡
  6. 絎?姝ワ紝鎵撳紑“緇堢鏈嶅姟鍣ㄦ巿鏉冨畨瑁呯▼搴?#8221;瀵硅瘽妗嗭紝瑕佹眰鐢ㄦ埛閫夋嫨瀹夎璁稿彲璇佹湇鍔″櫒鏁版嵁搴撶殑璺緞銆備竴鑸彲浠ヤ繚鎸侀粯璁よ礬寰勶紝騫跺崟鍑?#8220;涓嬩竴姝?#8221;鎸夐挳錛屽鍥?008112112鎵紺恒?br />鍥?008112112 閫夋嫨璁稿彲璇佹湇鍔″櫒鏁版嵁搴撹礬寰?/div>
    鍦╓indows Server 2003涓畨瑁呯粓绔湇鍔″櫒緇勪歡
  7. 絎?姝ワ紝W(xué)indows緇勪歡鍚戝寮濮嬪畨瑁呯粓绔湇鍔″櫒鍜岀粓绔湇鍔″櫒鎺堟潈緇勪歡錛屽湪瀹夎榪囩▼涓姹傛彁渚沇indows Server 2003錛圫P1錛夌郴緇熺殑瀹夎鍏夌洏鎴栨寚瀹氬畨瑁呯▼搴忚礬寰勩傚畬鎴愬畨瑁呭悗鍗曞嚮“瀹屾垚”鎸夐挳鍏抽棴Windows緇勪歡鍚戝錛屽茍鎸夌収鎻愮ず閲嶆柊鍚姩璁$畻鏈恒?/div>


]]>SAX瑙f瀽XMLhttp://www.tkk7.com/weishuangshuang/archive/2012/12/25/393468.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Tue, 25 Dec 2012 08:52:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2012/12/25/393468.htmlhttp://www.tkk7.com/weishuangshuang/comments/393468.htmlhttp://www.tkk7.com/weishuangshuang/archive/2012/12/25/393468.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/393468.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/393468.htmlpackage com;
  
  import java.io.FileInputStream;
  import java.io.InputStream;
  import java.util.ArrayList;
  import java.util.List;
  
  import javax.xml.parsers.SAXParser;
  import javax.xml.parsers.SAXParserFactory;
  
  import org.xml.sax.Attributes;
  import org.xml.sax.SAXException;
  import org.xml.sax.helpers.DefaultHandler;
  
  /**
   * SAX瑙f瀽XML錛屼簨浠墮┍鍔?/div>
   * 鍙湁涓ょ鑺傜偣
   * Element Node鍏冪礌鑺傜偣
   * Text Node鏂囨湰鑺傜偣 
   */
  public class SaxResolveXML {
 
  public static void main(String[] args){
  try {
  SaxResolveXML saxResolveXML = new SaxResolveXML();
  InputStream inStream = new FileInputStream("D:\\xml.xml");
  List<Person> list = saxResolveXML.getList(inStream);
  for(Person person : list){
  System.out.println(person.toString());
  }
  } catch (Exception e) {
  e.printStackTrace();
  }
 
  }
 
  public List<Person> getList(InputStream inStream) throws Exception {
  SAXParserFactory factory = SAXParserFactory.newInstance();
  SAXParser parse = factory.newSAXParser();
  SaxResolve saxResolve = new SaxResolve();
  parse.parse(inStream, saxResolve);
  inStream.close();
  return saxResolve.getPerson();
  }
 
  private final class SaxResolve extends DefaultHandler {
 
  private List<Person> list = null;
  private Person person = null;
  private String tag = null;
 
  public List<Person> getPerson(){
  return list;
  }
 
  //寮濮嬫枃妗d簨浠?/div>
  public void startDocument() throws SAXException {
  //鍒濆鍖?/div>
  list = new ArrayList<Person>();
  }
  
  //寮濮嬪厓绱犺娉曚簨浠? 鍙傛暟璇存槑錛氬懡鍚嶇┖闂淬佷笉甯﹀懡鍚嶇┖闂寸殑鏍囩鍚嶃佸惈鏈夊懡鍚嶇┖闂村墠緙鐨勬爣絳懼悕銆佸睘鎬?/div>
  public void startElement(String uri, String localName, String qName,
  Attributes atts) throws SAXException {
  if("person".equals(qName)){
  person = new Person();
  person.setId(Integer.parseInt(atts.getValue(0)));
  }
  tag = qName;
  }
 
  //瑙﹀彂鏂囨湰鑺傜偣浜嬩歡  鍙傛暟璇存槑錛氭暣涓獂ml鍐呭鐨勫瓧絎︿覆銆佸綋鍓嶈鍒版枃鏈被鍨嬬殑寮濮嬩綅緗佸綋鍓嶈鍒版枃鏈殑鏁版嵁闀垮害
  public void characters(char[] ch, int start, int length)
  throws SAXException {
  if(tag != null){
  String data = new String(ch, start, length);
  if(tag.equals("name")){
  person.setName(data);
  }else if(tag.equals("age")){
  person.setAge(Integer.parseInt(data));
  }
  }
  }
 
  //緇撴潫鍏冪礌璇硶浜嬩歡  鍙傛暟璇存槑錛氬懡鍚嶇┖闂淬佷笉甯﹀懡鍚嶇┖闂寸殑鏍囩鍚嶃佸惈鏈夊懡鍚嶇┖闂村墠緙鐨勬爣絳懼悕
  public void endElement(String uri, String localName, String qName)
  throws SAXException {
  if("person".equals(qName)){
  list.add(person);
  person = null;
  //瀵硅薄璁句負(fù)絀?/div>
  }
  tag = null;
  }
  }
 
 
  /*//寮濮嬫枃妗d簨浠?/div>
  public void startDocument() throws SAXException {
 
  }
  
  //寮濮嬪厓绱犺娉曚簨浠? 鍙傛暟璇存槑錛氬懡鍚嶇┖闂淬佷笉甯﹀懡鍚嶇┖闂寸殑鏍囩鍚嶃佸惈鏈夊懡鍚嶇┖闂村墠緙鐨勬爣絳懼悕銆佸睘鎬?/div>
  public void startElement(String uri, String localName, String qName,
  Attributes atts) throws SAXException {
 
  }
 
  //瑙﹀彂鏂囨湰鑺傜偣浜嬩歡  鍙傛暟璇存槑錛氭暣涓獂ml鍐呭鐨勫瓧絎︿覆銆佸綋鍓嶈鍒版枃鏈被鍨嬬殑寮濮嬩綅緗佸綋鍓嶈鍒版枃鏈殑鏁版嵁闀垮害
  public void characters(char[] ch, int start, int length)
  throws SAXException {
 
  }
 
  //緇撴潫鍏冪礌璇硶浜嬩歡  鍙傛暟璇存槑錛氬懡鍚嶇┖闂淬佷笉甯﹀懡鍚嶇┖闂寸殑鏍囩鍚嶃佸惈鏈夊懡鍚嶇┖闂村墠緙鐨勬爣絳懼悕
  public void endElement(String uri, String localName, String qName)
  throws SAXException {
 
  }
  
  public void endDocument() throws SAXException {
 
  }
  
  public void endPrefixMapping(String prefix) throws SAXException {
 
  }
  
  public void ignorableWhitespace(char[] ch, int start, int length)
  throws SAXException {
 
  }
  
  public void processingInstruction(String target, String data)
  throws SAXException {
 
  }
  
  public void setDocumentLocator(Locator locator) {
 
  }
  
  public void skippedEntity(String name) throws SAXException {
 
  }
  
  public void startPrefixMapping(String prefix, String uri)
  throws SAXException {
 
  }*/
 
  }
  
 
 
 
 xml鏂囦歡濡備笅錛?/div>
 <?xml version="1.0" encoding="UTF-8"?>
  <persons>
      <person id="1">
          <name>liming</name>
          <age>23</age>
      </person>
      <person id="2">
          <name>lixiangmei</name>
          <age>24</age>
      </person>
  </persons>
  
 
 
 


]]>linux 瀹夎matlab錛岃繍琛屾椂鎵句笉鍒板悇縐嶆枃浠剁殑瑙e喅鏂規(guī)http://www.tkk7.com/weishuangshuang/archive/2012/11/16/391464.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Fri, 16 Nov 2012 08:24:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2012/11/16/391464.htmlhttp://www.tkk7.com/weishuangshuang/comments/391464.htmlhttp://www.tkk7.com/weishuangshuang/archive/2012/11/16/391464.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/391464.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/391464.html



export LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/runtime/glnx86:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/os/glnx86:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/java/jre/glnx86/jre/lib/i386/native_threads:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/java/jre/glnx86/jre/lib/i386/server:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/sys/java/jre/glnx86/jre/lib/i386
export XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Compiler_Runtime/v716/X11/app-defaults

鎶婁互涓婁袱琛屽姞鍏ョ郴緇熺殑鐜鍙橀噺閲岄潰錛氬叿浣撴搷浣滃涓嬶細(xì)
vi /etc/profile
鎸?i 灝卞彲浠ョ紪杈戣繖涓枃浠訛紝寮濮嬪鍒?br />鎶婁笂闈袱琛屾嫹璐濆埌榪欎釜鏂囦歡鐨勬渶涓嬮潰鐒跺悗淇濆瓨灝卞彲浠ヤ簡錛?br />淇濆瓨閫鍑烘椂鍏堟寜涓涓?#8220;ESC”錛岀劧鍚庡啀鎸?#8220;:wq”灝卞彲浠ヤ繚瀛橀鍑轟簡錛?img src ="http://www.tkk7.com/weishuangshuang/aggbug/391464.html" width = "1" height = "1" />

]]>
鍚憃racle鏁版嵁搴撳瓨鍌ㄦ枃浠訛紝騫惰鍑烘枃浠?/title><link>http://www.tkk7.com/weishuangshuang/archive/2012/10/19/389866.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Fri, 19 Oct 2012 05:17:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2012/10/19/389866.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/389866.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2012/10/19/389866.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/389866.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/389866.html</trackback:ping><description><![CDATA[<div>/**</div><div> <span style="white-space:pre"> </span> * 浠庢暟鎹簱涓煡璇RI鍜孠LO妯″瀷鐨勬暟鎹紝騫朵笅杞藉埌鏈湴</div><div> <span style="white-space:pre"> </span> * @param dataTime         鏃舵</div><div> <span style="white-space:pre"> </span> * @param outIRIFilePath   IRI鏂囦歡涓嬭澆鍒版湰鍦扮殑璺緞</div><div> <span style="white-space:pre"> </span> * @param outKLOFilePath   KLO鏂囦歡涓嬭澆鍒版湰鍦扮殑璺緞</div><div> <span style="white-space:pre"> </span> * @param outAnaFilePath   鎻掑兼枃浠朵笅杞藉埌鏈湴鐨勮礬寰?/div><div> <span style="white-space:pre"> </span> */</div><div> <span style="white-space:pre"> </span>@SuppressWarnings("static-access")</div><div> <span style="white-space:pre"> </span>public static void selectBlogInfo(String dataTime, String outIRIFilePath, String outKLOFilePath, String outAnaFilePath) {</div><div> <span style="white-space:pre"> </span>try {</div><div> <span style="white-space:pre"> </span>Connection con = DBConnectionManager.getInstance().getConnection();</div><div> <span style="white-space:pre"> </span>Statement st = con.createStatement();</div><div> <span style="white-space:pre"> </span>String sql = "select * from MODELTEC where DATATIME=to_date('"+dataTime+"', 'YYYY-mm-dd HH24')";</div><div> <span style="white-space:pre"> </span>ResultSet rs = st.executeQuery(sql);</div><div> <span style="white-space:pre"> </span>if (rs.next()) {</div><div> <span style="white-space:pre"> </span>Blob blod = rs.getBlob("IRIDATA");</div><div> <span style="white-space:pre"> </span>InputStream reader = blod.getBinaryStream();</div><div> <span style="white-space:pre"> </span>dataTime = dataTime.replaceAll("-", "");</div><div> <span style="white-space:pre"> </span>dataTime = dataTime.replaceAll(" ", "");</div><div> <span style="white-space:pre"> </span>String iriFilePath = outIRIFilePath+"\\"+dataTime+"0000.iri.grd";</div><div> <span style="white-space:pre"> </span>File file = new File(iriFilePath);</div><div> <span style="white-space:pre"> </span>OutputStream writer;</div><div> <span style="white-space:pre"> </span>writer = new BufferedOutputStream(new FileOutputStream(file));</div><div> <span style="white-space:pre"> </span>byte buf[] = new byte[1024];</div><div> <span style="white-space:pre"> </span>for (int i = 0; (i = reader.read(buf)) > 0;) {</div><div> <span style="white-space:pre"> </span>writer.write(buf, 0, i);</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>writer.close();</div><div> <span style="white-space:pre"> </span>reader.close();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>blod = rs.getBlob("IRIDATA");</div><div> <span style="white-space:pre"> </span>reader = blod.getBinaryStream();</div><div> <span style="white-space:pre"> </span>String kloFilePath = outKLOFilePath+"\\"+dataTime+"0000.klo.grd";</div><div> <span style="white-space:pre"> </span>file = new File(kloFilePath);</div><div> <span style="white-space:pre"> </span>writer = new BufferedOutputStream(new FileOutputStream(file));</div><div> <span style="white-space:pre"> </span>buf = new byte[1024];</div><div> <span style="white-space:pre"> </span>for (int i = 0; (i = reader.read(buf)) > 0;) {</div><div> <span style="white-space:pre"> </span>writer.write(buf, 0, i);</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>writer.close();</div><div> <span style="white-space:pre"> </span>reader.close();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>blod = rs.getBlob("ANADATA");</div><div> <span style="white-space:pre"> </span>reader = blod.getBinaryStream();</div><div> <span style="white-space:pre"> </span>String anaFilePath = outAnaFilePath+"\\"+dataTime+"0000.grd";</div><div> <span style="white-space:pre"> </span>file = new File(anaFilePath);</div><div> <span style="white-space:pre"> </span>writer = new BufferedOutputStream(new FileOutputStream(file));</div><div> <span style="white-space:pre"> </span>buf = new byte[1024];</div><div> <span style="white-space:pre"> </span>for (int i = 0; (i = reader.read(buf)) > 0;) {</div><div> <span style="white-space:pre"> </span>writer.write(buf, 0, i);</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>writer.close();</div><div> <span style="white-space:pre"> </span>reader.close();</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>DBConnectionManager.closeConnection();</div><div> <span style="white-space:pre"> </span>if(con!=null){con.close();}</div><div> <span style="white-space:pre"> </span>if(st!=null){st.close();}</div><div> <span style="white-space:pre"> </span>if(rs!=null){rs.close();}</div><div> <span style="white-space:pre"> </span>} catch (SQLException e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>} catch (FileNotFoundException e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>} catch (IOException e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>}</div><div> </div><div> <span style="white-space:pre"> </span>/**</div><div> <span style="white-space:pre"> </span> * 鎶奍RI鍜孠LO妯″瀷鐨勬枃浠朵笂浼犲埌鏁版嵁搴撲腑</div><div> <span style="white-space:pre"> </span> * @param dataTime     鏃舵</div><div> <span style="white-space:pre"> </span> * @param iriFilePath  瑕佷笂浼營RI鏂囦歡鐨勭粷瀵硅礬寰?/div><div> <span style="white-space:pre"> </span> * @param kloFilePath  瑕佷笂浼燢LO鏂囦歡鐨勬嵁瀵硅礬寰?/div><div> <span style="white-space:pre"> </span> * @param ANAFilePath  瑕佷笂浼犳彃鍊兼枃浠剁殑鎹璺緞</div><div> <span style="white-space:pre"> </span> */</div><div> <span style="white-space:pre"> </span>@SuppressWarnings("static-access")</div><div> <span style="white-space:pre"> </span>public static void insertBlogInfo(String dataTime, String IRIFilePath, String KLOFilePath, String ANAFilePath) {</div><div> <span style="white-space:pre"> </span>try {</div><div> <span style="white-space:pre"> </span>Connection con = DBConnectionManager.getInstance().getConnection();</div><div> <span style="white-space:pre"> </span>// 澶勭悊浜嬪姟</div><div> <span style="white-space:pre"> </span>boolean defaultCommit;</div><div> <span style="white-space:pre"> </span>defaultCommit = con.getAutoCommit();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>con.setAutoCommit(false);</div><div> <span style="white-space:pre"> </span>Statement st = con.createStatement();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>String sql = "select * from MODELTEC where DATATIME=to_date('"+dataTime+"', 'YYYY-mm-dd HH24')";</div><div> <span style="white-space:pre"> </span>ResultSet rs = st.executeQuery(sql);</div><div> <span style="white-space:pre"> </span>if(rs.next()){</div><div> <span style="white-space:pre"> </span>System.out.println(dataTime+"鏃舵宸茬粡鍏ュ簱錛?);</div><div> <span style="white-space:pre"> </span>return ;</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>// 鎻掑叆涓涓┖瀵硅薄</div><div> <span style="white-space:pre"> </span>sql = "insert into MODELTEC(ID, DATATIME, IRIDATA, KLODATA, ANADATA) values(" +</div><div> <span style="white-space:pre"> </span>"SEQU_MODEL_ID.nextval, " +</div><div> <span style="white-space:pre"> </span>"to_date('"+dataTime+"','YYYY-mm-dd HH24'), " +</div><div> <span style="white-space:pre"> </span>"empty_blob(), " +</div><div> <span style="white-space:pre"> </span>"empty_blob(), " +</div><div> <span style="white-space:pre"> </span>"empty_blob())";</div><div> <span style="white-space:pre"> </span>st.executeUpdate(sql);</div><div> <span style="white-space:pre"> </span>// 鐢╢or update鏂瑰紡閿佸畾鏁版嵁琛?/div><div> <span style="white-space:pre"> </span>sql = "select IRIDATA,KLODATA,ANADATA from  MODELTEC where DATATIME=to_date('"+dataTime+"', 'YYYY-mm-dd HH24') for update";</div><div> <span style="white-space:pre"> </span>rs = st.executeQuery(sql);</div><div> <span style="white-space:pre"> </span>if (rs.next()) {</div><div> <span style="white-space:pre"> </span>// 寰楀埌java.sql.Blob瀵硅薄錛岀劧鍚嶤ast涓簅racle.sql.BLOB</div><div> <span style="white-space:pre"> </span>BLOB blob = (BLOB) rs.getBlob("IRIDATA");</div><div> <span style="white-space:pre"> </span>// 鍒版暟鎹簱鐨勮緭鍑烘祦</div><div> <span style="white-space:pre"> </span>OutputStream outStream = blob.getBinaryOutputStream();</div><div> <span style="white-space:pre"> </span>// 榪欓噷鐢ㄤ竴涓枃浠舵ā鎷熻緭鍏ユ祦</div><div> <span style="white-space:pre"> </span>InputStream fin = new FileInputStream(new File(IRIFilePath));</div><div> <span style="white-space:pre"> </span>// 灝嗚緭鍏ユ祦鍐欏埌杈撳嚭嫻?/div><div> <span style="white-space:pre"> </span>byte[] b = new byte[blob.getBufferSize()];</div><div> <span style="white-space:pre"> </span>int len = 0;</div><div> <span style="white-space:pre"> </span>while ((len = fin.read(b)) != -1) {</div><div> <span style="white-space:pre"> </span>outStream.write(b, 0, len);</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>// 渚濇鍏抽棴錛堟敞鎰忛『搴忥級(jí)</div><div> <span style="white-space:pre"> </span>fin.close();</div><div> <span style="white-space:pre"> </span>outStream.flush();</div><div> <span style="white-space:pre"> </span>outStream.close();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>// 寰楀埌java.sql.Blob瀵硅薄錛岀劧鍚嶤ast涓簅racle.sql.BLOB</div><div> <span style="white-space:pre"> </span>blob = (BLOB) rs.getBlob("KLODATA");</div><div> <span style="white-space:pre"> </span>// 鍒版暟鎹簱鐨勮緭鍑烘祦</div><div> <span style="white-space:pre"> </span>outStream = blob.getBinaryOutputStream();</div><div> <span style="white-space:pre"> </span>// 榪欓噷鐢ㄤ竴涓枃浠舵ā鎷熻緭鍏ユ祦</div><div> <span style="white-space:pre"> </span>fin = new FileInputStream(new File(IRIFilePath));</div><div> <span style="white-space:pre"> </span>// 灝嗚緭鍏ユ祦鍐欏埌杈撳嚭嫻?/div><div> <span style="white-space:pre"> </span>b = new byte[blob.getBufferSize()];</div><div> <span style="white-space:pre"> </span>len = 0;</div><div> <span style="white-space:pre"> </span>while ((len = fin.read(b)) != -1) {</div><div> <span style="white-space:pre"> </span>outStream.write(b, 0, len);</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>// 渚濇鍏抽棴錛堟敞鎰忛『搴忥級(jí)</div><div> <span style="white-space:pre"> </span>fin.close();</div><div> <span style="white-space:pre"> </span>outStream.flush();</div><div> <span style="white-space:pre"> </span>outStream.close();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>// 寰楀埌java.sql.Blob瀵硅薄錛岀劧鍚嶤ast涓簅racle.sql.BLOB</div><div> <span style="white-space:pre"> </span>blob = (BLOB) rs.getBlob("ANADATA");</div><div> <span style="white-space:pre"> </span>// 鍒版暟鎹簱鐨勮緭鍑烘祦</div><div> <span style="white-space:pre"> </span>outStream = blob.getBinaryOutputStream();</div><div> <span style="white-space:pre"> </span>// 榪欓噷鐢ㄤ竴涓枃浠舵ā鎷熻緭鍏ユ祦</div><div> <span style="white-space:pre"> </span>fin = new FileInputStream(new File(ANAFilePath));</div><div> <span style="white-space:pre"> </span>// 灝嗚緭鍏ユ祦鍐欏埌杈撳嚭嫻?/div><div> <span style="white-space:pre"> </span>b = new byte[blob.getBufferSize()];</div><div> <span style="white-space:pre"> </span>len = 0;</div><div> <span style="white-space:pre"> </span>while ((len = fin.read(b)) != -1) {</div><div> <span style="white-space:pre"> </span>outStream.write(b, 0, len);</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>// 渚濇鍏抽棴錛堟敞鎰忛『搴忥級(jí)</div><div> <span style="white-space:pre"> </span>fin.close();</div><div> <span style="white-space:pre"> </span>outStream.flush();</div><div> <span style="white-space:pre"> </span>outStream.close();</div><div> <span style="white-space:pre"> </span></div><div> <span style="white-space:pre"> </span>con.commit();</div><div> <span style="white-space:pre"> </span>/* 鎭㈠鍘熸彁浜ょ姸鎬?*/</div><div> <span style="white-space:pre"> </span>con.setAutoCommit(defaultCommit);</div><div> <span style="white-space:pre"> </span>DBConnectionManager.closeConnection();</div><div> <span style="white-space:pre"> </span>if(con!=null){con.close();}</div><div> <span style="white-space:pre"> </span>if(st!=null){st.close();}</div><div> <span style="white-space:pre"> </span>if(rs!=null){rs.close();}</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>} catch (SQLException e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>} catch (FileNotFoundException e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>} catch (IOException e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>} catch (Exception e) {</div><div> <span style="white-space:pre"> </span>e.printStackTrace();</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>}</div><img src ="http://www.tkk7.com/weishuangshuang/aggbug/389866.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2012-10-19 13:17 <a href="http://www.tkk7.com/weishuangshuang/archive/2012/10/19/389866.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java Data銆丼tring銆丩ong涓夌鏃ユ湡綾誨瀷涔嬮棿鐨勭浉浜掕漿鎹?/title><link>http://www.tkk7.com/weishuangshuang/archive/2012/09/27/388712.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Thu, 27 Sep 2012 09:07:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2012/09/27/388712.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/388712.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2012/09/27/388712.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/388712.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/388712.html</trackback:ping><description><![CDATA[<div>    <span id="qakgqmu" class="Apple-tab-span" style="white-space:pre"> </span>// date綾誨瀷杞崲涓篠tring綾誨瀷</div><div> <span style="white-space:pre"> </span>// formatType鏍煎紡涓簓yyy-MM-dd HH:mm:ss//yyyy騫碝M鏈坉d鏃?HH鏃秏m鍒唖s縐?/div><div> <span style="white-space:pre"> </span>// data Date綾誨瀷鐨勬椂闂?/div><div> <span style="white-space:pre"> </span>public static String dateToString(Date data, String formatType) {</div><div> <span style="white-space:pre"> </span>return new SimpleDateFormat(formatType).format(data);</div><div> <span style="white-space:pre"> </span>}</div><div> </div><div> <span style="white-space:pre"> </span>// long綾誨瀷杞崲涓篠tring綾誨瀷</div><div> <span style="white-space:pre"> </span>// currentTime瑕佽漿鎹㈢殑long綾誨瀷鐨勬椂闂?/div><div> <span style="white-space:pre"> </span>// formatType瑕佽漿鎹㈢殑string綾誨瀷鐨勬椂闂存牸寮?/div><div> <span style="white-space:pre"> </span>public static String longToString(long currentTime, String formatType)</div><div> <span style="white-space:pre"> </span>throws ParseException {</div><div> <span style="white-space:pre"> </span>Date date = longToDate(currentTime, formatType); // long綾誨瀷杞垚Date綾誨瀷</div><div> <span style="white-space:pre"> </span>String strTime = dateToString(date, formatType); // date綾誨瀷杞垚String</div><div> <span style="white-space:pre"> </span>return strTime;</div><div> <span style="white-space:pre"> </span>}</div><div> </div><div> <span style="white-space:pre"> </span>// string綾誨瀷杞崲涓篸ate綾誨瀷</div><div> <span style="white-space:pre"> </span>// strTime瑕佽漿鎹㈢殑string綾誨瀷鐨勬椂闂達(dá)紝formatType瑕佽漿鎹㈢殑鏍煎紡yyyy-MM-dd HH:mm:ss//yyyy騫碝M鏈坉d鏃?/div><div> <span style="white-space:pre"> </span>// HH鏃秏m鍒唖s縐掞紝</div><div> <span style="white-space:pre"> </span>// strTime鐨勬椂闂存牸寮忓繀欏昏涓巉ormatType鐨勬椂闂存牸寮忕浉鍚?/div><div> <span style="white-space:pre"> </span>public static Date stringToDate(String strTime, String formatType)</div><div> <span style="white-space:pre"> </span>throws ParseException {</div><div> <span style="white-space:pre"> </span>SimpleDateFormat formatter = new SimpleDateFormat(formatType);</div><div> <span style="white-space:pre"> </span>Date date = null;</div><div> <span style="white-space:pre"> </span>date = formatter.parse(strTime);</div><div> <span style="white-space:pre"> </span>return date;</div><div> <span style="white-space:pre"> </span>}</div><div> </div><div> <span style="white-space:pre"> </span>// long杞崲涓篋ate綾誨瀷</div><div> <span style="white-space:pre"> </span>// currentTime瑕佽漿鎹㈢殑long綾誨瀷鐨勬椂闂?/div><div> <span style="white-space:pre"> </span>// formatType瑕佽漿鎹㈢殑鏃墮棿鏍煎紡yyyy-MM-dd HH:mm:ss//yyyy騫碝M鏈坉d鏃?HH鏃秏m鍒唖s縐?/div><div> <span style="white-space:pre"> </span>public static Date longToDate(long currentTime, String formatType)</div><div> <span style="white-space:pre"> </span>throws ParseException {</div><div> <span style="white-space:pre"> </span>Date dateOld = new Date(currentTime); // 鏍規(guī)嵁long綾誨瀷鐨勬縐掓暟鐢熷懡涓涓猟ate綾誨瀷鐨勬椂闂?/div><div> <span style="white-space:pre"> </span>String sDateTime = dateToString(dateOld, formatType); // 鎶奷ate綾誨瀷鐨勬椂闂磋漿鎹負(fù)string</div><div> <span style="white-space:pre"> </span>Date date = stringToDate(sDateTime, formatType); // 鎶奡tring綾誨瀷杞崲涓篋ate綾誨瀷</div><div> <span style="white-space:pre"> </span>return date;</div><div> <span style="white-space:pre"> </span>}</div><div> </div><div> <span style="white-space:pre"> </span>// string綾誨瀷杞崲涓簂ong綾誨瀷</div><div> <span style="white-space:pre"> </span>// strTime瑕佽漿鎹㈢殑String綾誨瀷鐨勬椂闂?/div><div> <span style="white-space:pre"> </span>// formatType鏃墮棿鏍煎紡</div><div> <span style="white-space:pre"> </span>// strTime鐨勬椂闂存牸寮忓拰formatType鐨勬椂闂存牸寮忓繀欏葷浉鍚?/div><div> <span style="white-space:pre"> </span>public static long stringToLong(String strTime, String formatType)</div><div> <span style="white-space:pre"> </span>throws ParseException {</div><div> <span style="white-space:pre"> </span>Date date = stringToDate(strTime, formatType); // String綾誨瀷杞垚date綾誨瀷</div><div> <span style="white-space:pre"> </span>if (date == null) {</div><div> <span style="white-space:pre"> </span>return 0;</div><div> <span style="white-space:pre"> </span>} else {</div><div> <span style="white-space:pre"> </span>long currentTime = dateToLong(date); // date綾誨瀷杞垚long綾誨瀷</div><div> <span style="white-space:pre"> </span>return currentTime;</div><div> <span style="white-space:pre"> </span>}</div><div> <span style="white-space:pre"> </span>}</div><div> </div><div> <span style="white-space:pre"> </span>// date綾誨瀷杞崲涓簂ong綾誨瀷</div><div> <span style="white-space:pre"> </span>// date瑕佽漿鎹㈢殑date綾誨瀷鐨勬椂闂?/div><div> <span style="white-space:pre"> </span>public static long dateToLong(Date date) {</div><div> <span style="white-space:pre"> </span>return date.getTime();</div><div> <span style="white-space:pre"> </span>}</div><img src ="http://www.tkk7.com/weishuangshuang/aggbug/388712.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2012-09-27 17:07 <a href="http://www.tkk7.com/weishuangshuang/archive/2012/09/27/388712.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>linux鎿嶄綔FTP鐢ㄦ埛http://www.tkk7.com/weishuangshuang/archive/2012/09/27/388709.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Thu, 27 Sep 2012 09:00:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2012/09/27/388709.htmlhttp://www.tkk7.com/weishuangshuang/comments/388709.htmlhttp://www.tkk7.com/weishuangshuang/archive/2012/09/27/388709.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/388709.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/388709.htmluseradd 鐢ㄦ埛鍚?gpsin) -g 褰撳墠鐧誨綍鐢ㄦ埛(root) -d 鏍圭洰褰?/home/weiss) -s /sbin/nologin(涓嶆槸鐢ㄤ簬鐧誨綍)       
passwd 鐢ㄦ埛鍚?涓鴻鐢ㄦ埛鍒涘緩瀵嗙爜)
2銆佸垹闄ょ敤鎴?br />userdel 鐢ㄦ埛鍚?gpsin)
3銆佷慨鏀圭敤鎴鋒牴鐩綍
usermod -d 鏂扮洰褰?/home/wei) 鐢ㄦ埛鍚?gpsin)




]]>
鍛戒護(hù)鎿嶄綔ftphttp://www.tkk7.com/weishuangshuang/archive/2012/09/26/388575.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Wed, 26 Sep 2012 05:00:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2012/09/26/388575.htmlhttp://www.tkk7.com/weishuangshuang/comments/388575.htmlhttp://www.tkk7.com/weishuangshuang/archive/2012/09/26/388575.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/388575.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/388575.html涓涓鎵ц鐨刡at鏂囦歡 test.bat
鏂囦歡鍐呭錛歠tp -n -s:C:\\config.txt 127.0.0.1
鍙︿竴涓搷浣渇tp鐨勫懡浠ゆ枃浠?config.txt
鏂囦歡鍐呭錛?br />user user
pass
ls
put ......
get ...... 
bye

linux錛氬彧闇瑕佷竴涓枃浠跺嵆鍙篃灝辨槸sh鏂囦歡
test.sh
鏂囦歡鍐呭錛歠tp -i -n 127.0.0.1
user user pass
bin
ls
put ......
get ...... 
bye


ftp -nv 127.0.0.1 <<EOF
user user pass
bin
prompt
lcd /home
put ......
get ......
quit


]]>
c3p0榪炴帴姹?/title><link>http://www.tkk7.com/weishuangshuang/archive/2012/09/20/388187.html</link><dc:creator>鐢滃挅鍟?/dc:creator><author>鐢滃挅鍟?/author><pubDate>Thu, 20 Sep 2012 07:21:00 GMT</pubDate><guid>http://www.tkk7.com/weishuangshuang/archive/2012/09/20/388187.html</guid><wfw:comment>http://www.tkk7.com/weishuangshuang/comments/388187.html</wfw:comment><comments>http://www.tkk7.com/weishuangshuang/archive/2012/09/20/388187.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/weishuangshuang/comments/commentRss/388187.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/weishuangshuang/services/trackbacks/388187.html</trackback:ping><description><![CDATA[<div><span style="font-size: 8pt; ">package db;</span></div><div></div><div><span style="font-size: 8pt; ">import java.beans.PropertyVetoException;</span></div><div><span style="font-size: 8pt; ">import java.sql.Connection;</span></div><div><span style="font-size: 8pt; ">import java.sql.SQLException;</span></div><div></div><div><span style="font-size: 8pt; ">import com.mchange.v2.c3p0.ComboPooledDataSource;</span></div><div></div><div><span style="font-size: 8pt; ">public class DBPool {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">private ComboPooledDataSource dataSource;</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">public static Connection con;</span></div><div></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">public DBPool() {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">try {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource = new ComboPooledDataSource();</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setUser("test");</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setPassword("test");</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setJdbcUrl("jdbc:oracle:thin:@localhost:1521:orcl");</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setDriverClass("oracle.jdbc.driver.OracleDriver");</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setInitialPoolSize(2);</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setMinPoolSize(1);</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setMaxPoolSize(10);</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setMaxStatements(50);</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setMaxIdleTime(60);</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">dataSource.setAcquireRetryAttempts(3);   </span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">} catch (PropertyVetoException e) {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">public final static DBPool getInstance() {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">return new DBPool();</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">public final Connection getConnection() {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">try {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">return dataSource.getConnection();</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">} catch (SQLException e) {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">return null;</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div><br /><span style="font-size: 8pt; ">        //嫻嬭瘯鏂規(guī)硶</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">public static void main(String[] args) throws SQLException {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">con = DBPool.getInstance().getConnection();</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">System.out.println(con);</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">try {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">if (con != null){con.close();}</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">} catch (SQLException e) {</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">e.printStackTrace();</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div><span style="white-space:pre"> </span><span style="font-size: 8pt; ">}</span></div><div><span style="font-size: 8pt; ">}</span><br /><br /><br /><p style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; ">   <span style="font-size: 8pt; ">//鍒濆鍖栨椂鑾峰彇涓変釜榪炴帴錛屽彇鍊煎簲鍦╩inPoolSize涓巑axPoolSize涔嬮棿銆侱efault: 3 initialPoolSize  <br /></span><span style="font-size: 8pt; ">    cpds.setInitialPoolSize(initialPoolSize);   <br /></span><span style="font-size: 8pt; ">    //榪炴帴姹犱腑淇濈暀鐨勬渶澶ц繛鎺ユ暟銆侱efault: 15 maxPoolSize   <br /></span><span style="font-size: 8pt; ">    cpds.setMaxPoolSize(maxPoolSize);<br /></span><span style="font-size: 8pt; ">    //榪炴帴姹犱腑淇濈暀鐨勬渶灝忚繛鎺ユ暟銆?nbsp;  <br /></span><span style="font-size: 8pt; ">    cpds.setMinPoolSize(minPoolSize);<br /></span><span style="font-size: 8pt; ">    //鑾峰緱榪炴帴鐨勬渶澶х瓑寰呮縐掓暟銆侱efault: 1000 acquireRetryDelay<br /></span><span style="font-size: 8pt; ">    cpds.setAcquireRetryDelay(acquireRetryDelay);<br /></span><span style="font-size: 8pt; ">    //鏈澶х┖闂叉椂闂?60縐掑唴鏈嬌鐢ㄥ垯榪炴帴琚涪寮冦傝嫢涓?鍒欐案涓嶄涪寮冦侱efault: 0 maxIdleTime   <br /></span><span style="font-size: 8pt; ">    cpds.setMaxIdleTime(maxIdleTime);<br /></span><span style="font-size: 8pt; ">    //褰撹繛鎺ユ睜涓殑榪炴帴鑰楀敖鐨勬椂鍊檆3p0涓嬈″悓鏃惰幏鍙栫殑榪炴帴鏁般侱efault: 3 acquireIncrement   <br /></span><span style="font-size: 8pt; ">    //cpds.setAcquireIncrement(3);   <br /></span><span style="font-size: 8pt; ">    //姣?0縐掓鏌ユ墍鏈夎繛鎺ユ睜涓殑絀洪棽榪炴帴銆侱efault: 0 idleConnectionTestPeriod   <br /></span><span style="font-size: 8pt; ">    //cpds.setIdleConnectionTestPeriod(60);<br /></span><span style="font-size: 8pt; ">    //榪炴帴鍏抽棴鏃墮粯璁ゅ皢鎵鏈夋湭鎻愪氦鐨勬搷浣滃洖婊氥侱efault: false autoCommitOnClose   <br /></span><span style="font-size: 8pt; ">    //cpds.setAutoCommitOnClose(true);<br /></span><span style="font-size: 8pt; ">    //JDBC鐨勬爣鍑嗗弬鏁幫紝鐢ㄤ互鎺у埗鏁版嵁婧愬唴鍔犺澆鐨凱reparedStatements鏁伴噺銆備絾鐢變簬棰勭紦瀛樼殑statements灞炰簬鍗曚釜connection鑰屼笉鏄暣涓繛鎺ユ睜銆傛墍浠ヨ緗繖涓弬鏁伴渶瑕佽冭檻鍒板鏂歸潰鐨勫洜绱犮傚鏋渕axStatements涓巑axStatementsPerConnection鍧囦負(fù)0錛屽垯緙撳瓨琚叧闂侱efault: 0<br /></span><span style="font-size: 8pt; ">    //cpds.setMaxStatements(1);</span></p><p style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; "><span style="font-size: 8pt; ">    //maxStatementsPerConnection瀹氫箟浜嗚繛鎺ユ睜鍐呭崟涓繛鎺ユ墍鎷ユ湁鐨勬渶澶х紦瀛榮tatements鏁?br /></span><span style="font-size: 8pt; ">    //cpds.setMaxStatementsPerConnection(100);</span></p><p style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; "><span style="font-size: 8pt; ">    //瀹氫箟鎵鏈夎繛鎺ユ祴璇曢兘鎵ц鐨勬祴璇曡鍙ャ傚湪浣跨敤榪炴帴嫻嬭瘯鐨勬儏鍐典笅榪欎釜涓鏄捐憲鎻愰珮?gòu)箣璇曢熷害銆傛敞鎰忥細(xì)嫻嬭瘯鐨勮〃蹇呴』鍦ㄥ垵濮嬫暟鎹簮鐨勬椂鍊欏氨瀛樺湪銆侱efault: null preferredTestQuery  <br /></span><span style="font-size: 8pt; ">    //cpds.setPreferredTestQuery("select sysdate from dual");   <br /></span><span style="font-size: 8pt; ">    // 鍥犳ц兘娑堣楀ぇ璇峰彧鍦ㄩ渶瑕佺殑鏃跺欎嬌鐢ㄥ畠銆傚鏋滆涓簍rue閭d箞鍦ㄦ瘡涓猚onnection鎻愪氦鐨?nbsp;  <br /></span><span style="font-size: 8pt; ">    // 鏃跺欓兘灝嗘牎楠屽叾鏈夋晥鎬с傚緩璁嬌鐢╥dleConnectionTestPeriod鎴朼utomaticTestTable   <br /></span><span style="font-size: 8pt; ">    // 絳夋柟娉曟潵鎻愬崌榪炴帴嫻嬭瘯鐨勬ц兘銆侱efault: false testConnectionOnCheckout   <br /></span><span style="font-size: 8pt; ">    //cpds.setTestConnectionOnCheckout(true);<br /></span><span style="font-size: 8pt; ">    //濡傛灉璁句負(fù)true閭d箞鍦ㄥ彇寰楄繛鎺ョ殑鍚屾椂灝嗘牎楠岃繛鎺ョ殑鏈夋晥鎬с侱efault: false testConnectionOnCheckin   <br /></span><span style="font-size: 8pt; ">    //cpds.setTestConnectionOnCheckin(true);   <br /></span><span style="font-size: 8pt; ">    //瀹氫箟鍦ㄤ粠鏁版嵁搴撹幏鍙栨柊榪炴帴澶辮觸鍚庨噸澶嶅皾璇曠殑嬈℃暟銆侱efault: 30 acquireRetryAttempts   <br /></span><span style="font-size: 8pt; ">    //cpds.setAcquireRetryAttempts(30);     <br /></span><span style="font-size: 8pt; ">    //鑾峰彇榪炴帴澶辮觸灝嗕細(xì)寮曡搗鎵鏈夌瓑寰呰繛鎺ユ睜鏉ヨ幏鍙栬繛鎺ョ殑綰跨▼鎶涘嚭寮傚父銆備絾鏄暟鎹簮浠嶆湁鏁?nbsp;  <br /></span><span style="font-size: 8pt; ">    //淇濈暀錛屽茍鍦ㄤ笅嬈¤皟鐢╣etConnection()鐨勬椂鍊欑戶緇皾璇曡幏鍙栬繛鎺ャ傚鏋滆涓簍rue錛岄偅涔堝湪灝濊瘯   <br /></span><span style="font-size: 8pt; ">    //鑾峰彇榪炴帴澶辮觸鍚庤鏁版嵁婧愬皢鐢蟲槑宸叉柇寮騫舵案涔呭叧闂侱efault: false breakAfterAcquireFailure   <br /></span><span style="font-size: 8pt; ">    //cpds.setBreakAfterAcquireFailure(false);   </span></p><div>  <span style="font-size: 8pt; ">//涓ゆ榪炴帴涓棿闅旀椂闂達(dá)紝鍗曚綅姣銆侱efault: 1000 acquireRetryDelay</span></div><div><span style="font-size: 8pt; ">  cpds.setAcquireRetryDelay(60000);</span></div><div></div><br /><div clearfix"=""><h2><span style="font-size: 8pt; ">java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getClob(寮傚父瑙e喅鍔炴硶</span></h2></div> <div class="4i2owsu" id="content" mod-cs-content="" text-content="" clearfix"=""> <p><span style="font-size: 8pt; ">鏈榪戦亣鍒頒簡涓涓ご鐥涚殑闂錛屽彲鑳藉ぇ瀹朵篃閬囧埌榪囥傜粡榪囧鐣殑璇㈤棶涓庢煡鎵撅紝緇堜簬鐭ラ亾闂鍘熷洜鐨勬墍鍦細(xì)寮傚父鍐呭濡備笅錛?/span></p> <p><span style="font-size: 8pt; ">java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getClob(Ljava/lang/String;)Ljava/sql/Clob;</span></p> <p><span style="font-size: 8pt; ">闂鍘熷洜錛歄racle椹卞姩鐗堟湰涓嶅</span></p> <p><span style="font-size: 8pt; ">瑙e喅鍔炴硶錛氬湪Oracle鏈嶅姟鍣ㄤ笂鎵懼埌榪欎釜椹卞姩錛岀劧鍚巆p鍒癆pache鐨刲ib鐩綍涓嬶紝騫跺悓鏄慨鏀圭幆澧冨彉閲廲lasspath錛屼繚璇佽繖涓猯ib/classes12.jar鍦ㄦ渶鍓嶉潰錛涗慨鏀瑰畬鍚庯紝閲嶆柊鍚姩鏈嶅姟錛岄棶棰樺氨鍙互瑙e喅銆?br /></span></p><div>錛坥jdbc14.jar鍦?span style="font-size: 12px; ">classes12.jar鍓嶉潰錛?/span></div><p> </p></div></div><img src ="http://www.tkk7.com/weishuangshuang/aggbug/388187.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/weishuangshuang/" target="_blank">鐢滃挅鍟?/a> 2012-09-20 15:21 <a href="http://www.tkk7.com/weishuangshuang/archive/2012/09/20/388187.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>redhat鏂板緩鐢ㄦ埛浣滀負(fù)ftp鐢ㄦ埛http://www.tkk7.com/weishuangshuang/archive/2012/09/19/388067.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Wed, 19 Sep 2012 06:25:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2012/09/19/388067.htmlhttp://www.tkk7.com/weishuangshuang/comments/388067.htmlhttp://www.tkk7.com/weishuangshuang/archive/2012/09/19/388067.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/388067.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/388067.htmluseradd gpsin -g root -d /inraw -s /sbin/nologin     #璇ョ敤鎴蜂粎鐢ㄦ潵鏀寔FTP鏈嶅姟錛屽洜姝や笉蹇呰浠栫櫥褰曠郴緇?br />gpsin鏄痜tp鐧誨綍鐨勭敤鎴峰悕錛宺oot鎸囧畾鍝釜鐢ㄦ埛鍙互浣跨敤璇tp鐢ㄦ埛錛?d /inraw 鎸囧畾ftp鐨勬牴鐩綍錛?s /sbin/nologin涓嶇敤浜庣櫥褰?br />

passwd gpsin    緇檊psin鐢ㄦ埛璁劇疆瀵嗙爜


]]>RedHat 瀹夎rarhttp://www.tkk7.com/weishuangshuang/archive/2012/09/19/388066.html鐢滃挅鍟?/dc:creator>鐢滃挅鍟?/author>Wed, 19 Sep 2012 06:21:00 GMThttp://www.tkk7.com/weishuangshuang/archive/2012/09/19/388066.htmlhttp://www.tkk7.com/weishuangshuang/comments/388066.htmlhttp://www.tkk7.com/weishuangshuang/archive/2012/09/19/388066.html#Feedback0http://www.tkk7.com/weishuangshuang/comments/commentRss/388066.htmlhttp://www.tkk7.com/weishuangshuang/services/trackbacks/388066.html1.涓嬭澆

rarlinux-3.7.1.tar.zip

#unzip rarlinux-3.7.1.tar.zip

#cd rar

#make

#make install

榪愯 rar --help 鍙互鐪嬪埌甯姪淇℃伅錛屽鏋滃嚭鐜頒笅鍒椾俊鎭細(xì)
 #rar: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by rar)
 #rar: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required by rar)
 鍒欐墽琛岋細(xì)
 #cp -f rar_static /usr/local/bin/rar
 榪欐牱灝卞彲浠ヤ嬌鐢╮ar 鍛戒護(hù)浜嗐?/div>



]]> 主站蜘蛛池模板: 亚洲一区二区三区高清不卡| 在线视频网址免费播放| 久久午夜夜伦鲁鲁片无码免费| 永久黄网站色视频免费观看| 亚洲最新视频在线观看| 四虎影视久久久免费观看| 国产精品成人免费一区二区 | 日本免费xxxx| 亚洲精品国产精品乱码视色 | 亚洲美女视频免费| 久久国产一片免费观看| 国产精品酒店视频免费看| 亚洲伊人精品综合在合线| 无码人妻丰满熟妇区免费| 在线精品亚洲一区二区三区| 国产成人综合亚洲| 成人毛片免费观看| 亚洲黄色一级毛片| 国产在线精品免费aaa片| 亚洲乱码国产一区网址| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 亚洲国产精品碰碰| 在线观看亚洲免费视频| 国产精品视频永久免费播放| 亚洲校园春色小说| 99国产精品免费观看视频| 国产亚洲精品国产| 九九热久久免费视频| 亚洲日韩VA无码中文字幕| 特级毛片aaaa级毛片免费| 永久中文字幕免费视频网站| 中文字幕亚洲精品无码| 无码人妻久久一区二区三区免费丨| 久久久久亚洲精品日久生情| 国产成人免费视频| 久久精品7亚洲午夜a| 国产午夜免费高清久久影院| 亚洲日韩国产精品第一页一区| 一区二区三区在线观看免费| 亚洲精品无码久久毛片| 日韩精品免费一线在线观看 |