ann
          冰是沒有未來的,因為它的永恒
          posts - 107,comments - 34,trackbacks - 0
          06 2009 檔案
          linux script配置      摘要: Manipulating the start and stop order of Linux servicesThis document (7002295) is provided subject to the disclaimer at the end of this document.

          Environment
          Novell SUSE Linux
          Novell SUSE Linux Enterprise Server 9
          Novell SUSE Linux Enterprise Server 10
          Novell SUSE Linux Enterprise Desktop 10

          Situation
          In some circumstances, the start and stop order of a service needs to be manipulated.
          How to add start and stop orders to a custom service

          Resolu  閱讀全文
          posted @ 2009-06-30 17:05 冰是沒有未來的,因為它的永恒| 編輯
          linux安裝openMQ      摘要: 1. 下載openMQ安裝文件 openmq4_3-installer-Unix.zip 到/home/zhshp

          2. 解壓zip文件
          1) . 復制zip文件到opt/
          cp /home/zhshp/openmq4_3-installer-Unix.zip /opt/
          2) . 解壓zip
          cd /opt/
          unzip openmq4_3-installer-Unix.zip
          3. 安裝
          1) . 創建answerfile
          在 /opt/mq4_3-zip-installer/ 創建answerfile 例如 :見/home/zhshp/nswerfile
          2) . 安裝 installer -s -a answerfile
          3) 修改imqbroker配置文件:sudo vim etc/mq/imqbro  閱讀全文
          posted @ 2009-06-23 15:20 冰是沒有未來的,因為它的永恒| 編輯
          建立link      摘要: ln -s /data/tomcat /opt/tomcat  閱讀全文
          posted @ 2009-06-17 14:21 冰是沒有未來的,因為它的永恒| 編輯
          linux清空文件內容      摘要: :> domains/domain1/logs/server.log   閱讀全文
          posted @ 2009-06-17 13:59 冰是沒有未來的,因為它的永恒| 編輯
          nginx配置rewrite      摘要: 例子 修改$


          user syncher syncher;
          worker_processes 2;
          events {
          use epoll; # for linux
          worker_connections 1024;
          }


          http {
          include mime.types;
          default_type application/octet-stream;


          #access_log logs/access.log main;

          sendfile on;
          #tcp_nopush on;

          #keepalive_timeout 0;
          keepalive_timeout 65;

          gzip on;

          upstream tomcats {
            閱讀全文
          posted @ 2009-06-17 13:38 冰是沒有未來的,因為它的永恒| 編輯
          linux查看磁盤剩余空間      摘要: df -hl 查看磁盤剩余空間

          du -sm 文件夾
          返回該文件夾總M數  閱讀全文
          posted @ 2009-06-17 11:26 冰是沒有未來的,因為它的永恒| 編輯
          glassfish中load application順序問題      摘要: 解決的方案:部署在不同的domain中,并控制domain啟動的順序

          例子:applications: RestaurantCenter (比mobile先load);mobile。

          服務器: 內網192.168.1.18上
          glassfish的路徑:/opt/glassfish2.1

          1.首先,創建兩個domain :domain1,domain2
          創建domain1 :ant -f setup1.xml



          posted @ 2009-06-16 15:23 冰是沒有未來的,因為它的永恒| 編輯
          glassfish 已知問題和限制      摘要: 已知問題和限制
          http://docs.sun.com/app/docs/doc/820-7430/knownissuessges?a=view
            閱讀全文
          posted @ 2009-06-16 11:01 冰是沒有未來的,因為它的永恒| 編輯
          升級后啟動域時,您會在日志中看到以下異常。(6774663)      摘要: 說明
          可能會拋出以下異常:

          #|2008-11-19T01:44:37.422+0530|SEVERE|sun-appserver9.1|org.apache.catalina.session.ManagerBase|_ThreadID=17;_ThreadName=pool-1-thread-3;_Req uestID=cc0ddf54-a42e-400a-9788-e30d79a25d88;|PWC2768: IOException while loading persisted sessions: java.io.InvalidClassException: org.apache .catalina.session.StandardSession; local class incompatible: stream classdesc serialVersionUID = 8647852380089530442, local class serialVersi onUID = -8515037662877107054 java.io.InvalidClas  閱讀全文
          posted @ 2009-06-16 11:00 冰是沒有未來的,因為它的永恒| 編輯
          特定于 INTERNET EXPLORER 6.0/7.0 瀏覽器:導出負載平衡器配置文件會拋出錯誤 (6516068)      摘要: 說明
          (僅 Internet Explorer 6 和 7)當嘗試從 Internet Explorer 6 或 7 導出負載平衡器配置文件 (loadbalancer.xml) 時,瀏覽器會顯示錯誤消息,表示找不到 sun-loadbalancer_1_2.dtd DTD 文件。
          解決方法
          要保存此文件,請使用以下解決方法:
          在 Internet Explorer 中,在“負載平衡器”頁上單擊“導出”。
          將顯示“XML page cannot be displayed”消息。
          單擊錯誤框,然后從 Internet Explorer 中選擇“文件”->“另存為”。
          將 loadbalancer.xml 文件保存到所選目錄中。

            閱讀全文
          posted @ 2009-06-16 10:53 冰是沒有未來的,因為它的永恒| 編輯
          glassfish啟動 --java.rmi.server.ExportException      摘要: glassfish啟動的時候:

          .1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|UnknownException during st
          artup. Disable quick startup by setting system property com.sun.enterprise.server.ss.ASQuickStartup to false
          com.sun.appserv.server.ServerLifecycleException: java.rmi.server.ExportException: Port already in use: 0; nested exception is:
          java.net.BindException: Can't assign requested address
          at com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(  閱讀全文
          posted @ 2009-06-16 09:26 冰是沒有未來的,因為它的永恒| 編輯
          linux java main函數啟動的例子      摘要: java -cp "./WEB-INF/lib/*:./WEB-INF/classes" bran.RestaurantCenterJettyStarter
          nohup java -cp "./WEB-INF/lib/*:./WEB-INF/classes" bran.RestaurantCenterJettyStarter >log.log & 退出時候,不中斷  閱讀全文
          posted @ 2009-06-15 18:02 冰是沒有未來的,因為它的永恒| 編輯
          solr int Querying Ranges Problem      摘要: Ensure that the fieldType maps back to solr.SortableIntField rather
          than solr.IntField  閱讀全文
          posted @ 2009-06-13 17:45 冰是沒有未來的,因為它的永恒| 編輯
          unconpilable exception code in netbeans      摘要: have a little testcase:

          Class enumClass = TestEnum.class;
          System.out.println(TestEnum.我);
          Method method = null;
          method = enumClass.getDeclaredMethod("values", new Class[0]);
          Object[] values = (Object[]) method.invoke(null, new Object[0]);
          Assert.assertTrue(values.length > 0);
          System.out.println(values[0]);

          The method invocation blows out and complains uncompilable code

          The reason seems to   閱讀全文
          posted @ 2009-06-13 14:38 冰是沒有未來的,因為它的永恒| 編輯
          glassfish linux 安裝      摘要: 1.下載- ref : https://glassfish.dev.java.net/downloads/v2.1-b60e.html

          -
          2.解壓下載的jar # java -Xmx256m -jar glassxxx.jar
          3.復制到安裝的路徑下 copy th glassfish to /opt/glasfish2.1

          # cd glassfish2.1
          如果系統沒安裝ant # chmod -R +x lib/ant/bin

          make sure tomcat is not running on 8080, I changed to run on 18080



          4. 安裝 # lib/ant/bin/ant -f setup.xml

          cannot move the dir after the above step.


          ends results:

          create.domain:
          [exe  閱讀全文
          posted @ 2009-06-13 12:11 冰是沒有未來的,因為它的永恒| 編輯
          jetty starter 不檢查 端口是否被占用      摘要: jetty starter 不檢查 端口是否被占用

          connector.setReuseAddress(false);

          這樣就不能重復啟動同一個 jetty 了.
            閱讀全文
          posted @ 2009-06-12 15:15 冰是沒有未來的,因為它的永恒| 編輯
          solrj的相關網址      摘要: http://mxsfengg.javaeye.com/?show_full=true
          http://clayz.javaeye.com/?page=2&show_full=true
          http://mxsfengg.javaeye.com/blog/277913  閱讀全文
          posted @ 2009-06-03 11:55 冰是沒有未來的,因為它的永恒| 編輯
          Google geo API      摘要: http://ditu.google.com/maps/geo?output=json&oe=utf-8&q=要查的地址

          /**
          * a positive response:
          *
          *
          {
          "name": "上海金橋開發區",
          "Status": {
          "code": 200,
          "request": "geocode"
          },
          "Placemark": [
          {
          "id": "p1",
          "address": "中國上海市浦東新區金橋開發\r\r\n區",
          "AddressDetails": {
          "Country": {
          "CountryNameCode": "CN",
          "  閱讀全文
          posted @ 2009-06-03 09:57 冰是沒有未來的,因為它的永恒| 編輯
          為已經存在的數據庫添加GIS功能      摘要: PgAdmin, open up the SQL window by clicking the SQL button (the one with the pencil).
          Choose “File ? Open…” and navigate to

          C:\Program Files\PostgreSQL\8.3\share\contrib\lwpostgis.sql

          Press the “Run” button. (The green triangle.) The lwpostgis.sql file will execute, loading the PostGIS functions and objects into the “postgis” database.

          Choose “File ? Open…” and navigate to

          C:\Program Files\PostgreSQL\8.3\share\contrib\spatial_ref_sys.sql  閱讀全文
          posted @ 2009-06-03 09:55 冰是沒有未來的,因為它的永恒| 編輯
          成批轉換java 文件的編碼      摘要: netbeans項目中缺省使用 utf-8. 這要求所有的源文件使用 utf8 編碼有些源文件是從別的文件系統中拷貝出來, 可能使用別的編碼方式, 例如 iso-8859-1. 如果其中有 Ascii 擴展字符, 則 編譯的時候會抱怨有 并不認識的 unicode 編碼. (ummapped unicode characters)

          解決方法: 使用 GNU iconv 工具進行批處理轉換.

          - iconv 在 cygwin 中有發布, 需要 iconv2 包. 也有單獨的 windows 版本.

          - 在 一個臨時文件目錄兩種建立和源目錄相同的目錄結構: 拷貝過去以后, find . -name "*.*" | xargs rm, find . -name ".svn" | xargs rm -R
          - 在源文件目錄中: $ for a in `find . -name "*.java"`; do iconv -f iso-8859-1 -t utf-8 <"$a" > /tmp/"$a" ; done
          閱讀全文
          posted @ 2009-06-03 09:52 冰是沒有未來的,因為它的永恒| 編輯
          標記javabean 屬性不要映射到 xml      摘要: JTS Geometry 對象不能被 JAXB 映射成xml.

          可使用一下的方法避免指定的 java bean property 不被 xml 話

          在 bean 的class級別:

          @XmlAccessorType(XmlAccessType.FIELD) // for jaxb to ananlyze the object

          然后在 field 上面

          @XmlTransient


          如果沒有 XmlAccessorType, 則需要把 @XmlTransient 放在getter 上面.  閱讀全文
          posted @ 2009-06-03 09:44 冰是沒有未來的,因為它的永恒| 編輯

          當下,把心放下 放下如果是可能的,那一定是在當下,
          不在過去,也不在未來。
          當下放下。唯有活在當下,你的問題才能放下。

          主站蜘蛛池模板: 宁国市| 宁安市| 曲松县| 清远市| 南宁市| 桓仁| 吴川市| 安新县| 玉田县| 怀远县| 繁昌县| 潞城市| 靖安县| 桓台县| 隆回县| 金山区| 黔南| 巨野县| 阿鲁科尔沁旗| 金秀| 黄平县| 烟台市| 天镇县| 青神县| 濉溪县| 柳江县| 霸州市| 临邑县| 余姚市| 普定县| 北安市| 双峰县| 太原市| 卓资县| 泸溪县| 太白县| 游戏| 长岭县| 洛隆县| 南溪县| 韩城市|