<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ann
    冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮?/span>
    posts - 107,comments - 34,trackbacks - 0
         摘要: 1. 安裝vnc
    rpm -ivh vnc-server-4.1.2-14.el5_3.1.i386.rpm
    rpm -ivh vnc-4.1.2-14.el5_3.1.i386.rpm


    3. 設(shè)置vnc server的訪問(wèn)密碼
    [ann@ecdev1 ~]# vncpasswd

    3. 執(zhí)行vncserver,第一次執(zhí)行后會(huì)生產(chǎn)一些配置文件

    4. 修改/home/ann/.vnc/xstart(如果無(wú)此文件,就運(yùn)行vncserver)
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xsta  閱讀全文
    posted @ 2010-05-19 09:49 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: I tried the Build and Deployment tool in Commerce version 7. I followed the tutorial for the same found here:
    http://publib.boulder.ibm.com/infocenter/wchelp/v7r0m0/topic/com.ibm.commerce.developer.doc/concepts/cdewcbdbuild.htm

    When I start the build process it extracts the projects from the CVS successfully, but while buildingarchiving the ejb jar the build fails with the following error:
    java.io.IOException: Cannot run program "D:\Programs\RAD75\SDP\runtimes\base_v7\java\jre\b  閱讀全文
    posted @ 2010-05-17 10:56 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:

    SQL like子句的另一種實(shí)現(xiàn)方法,速度比like快


    一般來(lái)說(shuō)使用模糊查詢(xún),大家都會(huì)想到LIKE
    select * from table where a like '%字符%'

    如果一個(gè)SQL語(yǔ)句中用多個(gè) like模糊查詢(xún),并且記錄條數(shù)很大,那速度一定會(huì)很慢。
    下面兩種方法也可實(shí)現(xiàn)模糊查詢(xún):
    select * from table where patindex('%字符%',a)>0
    select * from table where charindex('字符',a)>0
    經(jīng)測(cè)試這兩種方法比LIKE速度要快。

      閱讀全文
    posted @ 2010-05-04 12:58 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: #!/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    #################################
    # application: test
    # DFILE : pid file
    # GDIR : application webapp
    # LOGDIR : logs dir
    ######################
    NAME=et-play
    TestDIR="/data/webapps/play/test"
    GDIR="${TestDIR}/test"
    PIDFILE="${TestDIR}/${NAME}.pid"
    LOGDIR="${GDIR}/logs"
    APP_USER=test
    # Timeout in seconds for the shutdown of webapps
    APP_SHUTDOWN=30 <  閱讀全文
    posted @ 2010-03-19 13:22 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1.備份表中的數(shù)據(jù)


    D:\Program Files\PostgreSQL-8.3.7\bin\pg_dump.exe -h *.*.*.* -p 5432 -U username -F c -v -f "D:\Program Files\PostgreSQL-8.3.7\bin\sss.backup" -t "\"public\".\"tablename\"" databasename

    2. 創(chuàng)建表

    CREATE TABLE tablename
    (
    id bigint,
    createtime timestamp without time zone,
    modifyname character varying(255),
    modify_date timestamp without time zone,
    modify_detail character varying(100000),
    "name" character varying(255  閱讀全文
    posted @ 2010-03-11 10:02 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 一.linux 監(jiān)控?cái)?shù)據(jù)庫(kù)活動(dòng)
    $ ps auxww | grep ^postgres

    postgres 3424 0.0 1.2 42708 26588 ? Ss Jan29 0:00 postgres: writer process
    postgres 3425 0.0 0.0 42576 1284 ? Ss Jan29 0:00 postgres: wal writer process
    postgres 3426 0.0 0.0 43364 1972 ? Ss J  閱讀全文
    posted @ 2010-02-09 15:30 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1、對(duì)于第一種重復(fù),比較容易解決,使用

    select distinct * from tableName

      就可以得到無(wú)重復(fù)記錄的結(jié)果集。

       如果該表需要?jiǎng)h除重復(fù)的記錄(重復(fù)記錄保留1條),可以按以下方法刪除

    select distinct * into #Tmp from tableName
    drop table tableName
    select * into tableName from #Tmp
    drop table #Tmp


      閱讀全文
    posted @ 2010-02-08 16:22 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: Well, there's second places I set the proxy on a new Linux install.
    1) in /etc/profile:
    code:


    export http_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"
    export ftp_proxy="http://user:pass@xxx.xxx.xxx.xxx:port/"

    2) in /etc/apt/apt.conf
    code:

    Acquire::http::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";
    Acquire::ftp::Proxy "http://user:pass@xxx.xxx.xxx.xxx:port/";


      閱讀全文
    posted @ 2010-02-02 15:16 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf
    code:

    APT::Cache-Limit 50000000;
      閱讀全文
    posted @ 2010-02-02 15:13 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:
    1. 用命令行創(chuàng)建新的project
    #>: play new test

    輸入 test(會(huì)有What is the application name?提示)
    注:一定要輸入test 否則在導(dǎo)入到eclipse中就要手動(dòng)改配置文件

    2. 導(dǎo)入eclipse
    >play eclipsify test
    打開(kāi)eclipse 在import 就ok了.

    如果在創(chuàng)建project時(shí)候未輸入test。
    就要手動(dòng)修改test.launch文件,也就是查找,得出 E:"project"eclipse"play1 ,然后把文件中所有的E:"project"eclipse"play1替換為test
    修改前:

    posted @ 2010-02-01 13:38 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:
    intellj 編碼設(shè)置 ,project編碼設(shè)置 這兩個(gè)編碼必須統(tǒng)一。
    例如: intellj設(shè)置的是系統(tǒng)默認(rèn)的編碼gbk,而project是utf8。

      閱讀全文
    posted @ 2010-01-15 18:04 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 按照我寫(xiě)的目錄結(jié)構(gòu)來(lái)放置。
    下載地址:
    http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/extras/tomcat-juli.jar
    http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/extras/tomcat-juli-adapters.jar

    tomcat6-------lib
    | |--------tomcat-juli-adapters.jar
    | |--------log4j.jar
    | |--------log4j.properites
    |
    |----bin
    |--------tomcat-juli.jar
    閱讀全文
    posted @ 2010-01-14 18:10 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: Bulk close all in lucene2.9.1 issues.   閱讀全文
    posted @ 2010-01-14 16:06 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 找到啟動(dòng)用戶(hù)目錄
    比如是/home/hudson/下面
    .hudson/nodeMonitors.xml 加入


    false


    false



      閱讀全文
    posted @ 2010-01-12 13:22 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:

    Jetty's default configuration has a limitation on POST data (200000 bytes)that
    prevents Hudson from reading the Update Center data (available
    plugins). Jetty gets an error like java.lang.IllegalStateException: Form too large. To resolve this, add something like this to jetty.xml:

    Jetty 6:

    在jetty.xml中設(shè)置該參數(shù)



    org.mortbay.jetty.Request.maxFormContentSize

    -1閱讀全文
    posted @ 2010-01-12 11:09 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 地址:http://code.google.com/apis/chart/  閱讀全文
    posted @ 2010-01-12 10:33 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: server:

    package com.test.web.resources;

    import javax.ws.rs.Consumes;
    import javax.ws.rs.POST;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.MultivaluedMap;

    import org.springframework.stereotype.Component;


    /**
    * 測(cè)試
    * @author ann
    *
    */
    @Path("/test")
    @Component
    public class Test {

    @POST
    @Path("/formTest")
      閱讀全文
    posted @ 2010-01-11 17:02 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 同步的集合類(lèi)Hashtable和Vector,以及同步的包裝器類(lèi)Collections.synchronizedMap和Collections.synchronizedList,為Map和List提供了基本的有條件的線(xiàn)程安全的實(shí)現(xiàn)。然而,某些因素使得它們并不適用于具有高度并發(fā)性的應(yīng)用程序中――它們的集合范圍的單鎖特性對(duì)于可伸縮性來(lái)說(shuō)是一個(gè)障礙,而且,很多時(shí)候還必須在一段較長(zhǎng)的時(shí)間內(nèi)鎖定一個(gè)集合,以防止出現(xiàn)ConcurrentModificationExceptions異常。

    ConcurrentHashMap和CopyOnWriteArrayList實(shí)現(xiàn)提供了更高的并發(fā)性,同時(shí)還保住了線(xiàn)程安全性,只不過(guò)在對(duì)其調(diào)用者的承諾上打了點(diǎn)折扣。ConcurrentHashMap和CopyOnWriteArrayList并不是在您使用HashMap或ArrayList的任何地方都一定有用,但是它們是設(shè)計(jì)用來(lái)優(yōu)化某些特定的公用解決方案的。許多并發(fā)應(yīng)用程序?qū)膶?duì)它們的使用中獲得好處。

    總結(jié):在多線(xiàn)程并發(fā)情況下,為了避免ConcurrentModificati  閱讀全文
    posted @ 2010-01-07 18:04 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:

    數(shù)據(jù)庫(kù)服務(wù)器,應(yīng)對(duì)是高并發(fā)的訪問(wèn),每天都有大量的讀寫(xiě)刪除操作。因此,時(shí)間一長(zhǎng)服務(wù)器的內(nèi)存就耗盡,數(shù)據(jù)庫(kù)的占的空間也很大。為了應(yīng)對(duì)這個(gè)情況,我制定兩個(gè)常用的維護(hù)操作。

    一、注重日常清理(VACUUM;)。因?yàn)橛写罅康母拢╱pdate)"刪除(delete)操作,會(huì)有大量的空間需要釋放。

    每日?qǐng)?zhí)行一次VACUUM,每周訪問(wèn)量低的時(shí)候執(zhí)行VACUUM FULL;

    語(yǔ)法結(jié)構(gòu);

    VACUUM [ FULL | FREEZE ] [ VERBOSE ] [ table ]
    VACUUM [ FULL | FREEZE ] [ VERBOSE ] ANALYZE [ table [ (column [, ...] ) ] ]

    FULL ------選擇"完全"清理,這樣可以恢復(fù)更多的空間, 但是花的時(shí)間更多并且在表上施加了排它鎖。
    FREEZE ---------選擇激進(jìn)的元組"凍結(jié)"。
    VERBOSE --------- 為每個(gè)表打印一份詳細(xì)的清理工作報(bào)告。 <  閱讀全文
    posted @ 2010-01-07 15:55 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: grails 升級(jí)到1.2.0 版本之后需要注意的

    1.默認(rèn)的webserver是tomcat.
    如果想切換為jetty。grails uninstall-plugin tomcat
    grails install-plugin jetty

    2. 有了很多標(biāo)準(zhǔn)的規(guī)范,比如 :
    1). 必須放入
    標(biāo)簽之內(nèi)。
    2).urlmap中 "/test_$guid?"(controller:"test",action:"list")
    "/" (controller:"index",action:"list")
      閱讀全文
    posted @ 2010-01-05 16:55 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: CREATE INDEX 在指定的表上構(gòu)造一個(gè)名為 index_name 的索引。索引主要用來(lái)提高數(shù)據(jù)庫(kù)性能。但是如果不恰當(dāng)?shù)氖褂脤?dǎo)致性能的下降。

    PostgreSQL 為從索引提供 B-tree,R-tree,hash(散列) 和 GiST 索引方法。 B-tree 索引方法是一個(gè) Lehman-Yao 高并發(fā) B-trees 的實(shí) 現(xiàn)。R-tree 索引方法用 Guttman 的二次分裂算法實(shí)現(xiàn)了標(biāo)準(zhǔn)的 R-trees。 hash(散列)索引方法是 Litwin 的線(xiàn)性散列的一個(gè)實(shí)現(xiàn)。 用戶(hù)也可以定義它們自己的索引方法,但這個(gè)工作相當(dāng)復(fù)雜。
    如果出現(xiàn)了 WHERE 子句,則創(chuàng)建一個(gè)部分索引。 部分索引是一個(gè)只包含表的一部分記錄的索引,通常是該表中比其它部分?jǐn)?shù)據(jù)更有用的部分。

    在 WHERE 子句里用的表達(dá)式只能引用下層表的字段,但是它可以使用所有字段,而不僅僅是被索引的字段。 目前,子查詢(xún)和聚集表達(dá)式也不能出現(xiàn)在WHERE里。

    索引定義里的所有函數(shù)和操作符都必須是immutable,(不  閱讀全文
    posted @ 2009-12-22 10:00 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: java -cp "./WEB-INF/lib/*:./WEB-INF/classes" bran.RestaurantCenterJettyStarter  閱讀全文
    posted @ 2009-12-22 09:47 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 一個(gè)登錄用戶(hù)在頁(yè)面訪問(wèn)的時(shí)候如何充分利用 cache?

    頁(yè)面靜態(tài)化的一個(gè)大問(wèn)題是登錄用戶(hù)訪問(wèn)頁(yè)面如何靜態(tài)化。 例如首頁(yè), 大部分的頁(yè)面內(nèi)容需要緩存但是用戶(hù)登錄后的個(gè)人信息是動(dòng)態(tài)信息, 不能緩存。 那么如何解決這個(gè)"頁(yè)面部分緩存"問(wèn)題?

    現(xiàn)有的方案是利用 SSI - Server Side include.

    Nginx SSI 實(shí)現(xiàn)是 http://wiki.nginx.org/NginxHttpSsiModule

    這里最關(guān)鍵的就是靜態(tài)文件可以包含一個(gè)動(dòng)態(tài)的網(wǎng)頁(yè)的 URL.

    這里有一篇文章對(duì)這個(gè)問(wèn)題進(jìn)行了深入的討論:

    http://jimmyg.org/blog/2009/ssi-memcached-nginx.html

    文章用了 memcache. 我關(guān)心的是 SSI 和 Nginx 自身的 cache 的協(xié)同工作。


    模塊分析:

    1. http://hi.baidu.com/langwan/blog/item/  閱讀全文
    posted @ 2009-12-22 09:35 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 一 . Adding Brokers to a Conventional Cluster

    1. To Add a New Broker to a Conventional Cluster Using a Cluster Configuration File
    1).Add the new broker to the imq.cluster.brokerlist property in the cluster configuration file.
    2).Issue the following command to any broker in the cluster: imqcmd reload cls
    3).(Optional) Set the value of the imq.cluster.url property in the new broker’s instance configuration file (config.properties) to point to the clu  閱讀全文
    posted @ 2009-12-22 09:32 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: http://svn.codehaus.org/grails-plugins/grails-quartz/tags/RELEASE_0_4_1/  閱讀全文
    posted @ 2009-12-11 15:56 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: http://lucene.apache.org/solr/tutorial.html  閱讀全文
    posted @ 2009-12-11 12:43 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: user-agent 收集:http://www.developershome.com/wap/detection/detection.asp?page=userAgentHeader

    http://search.cpan.org/~cmanley/Mobile-UserAgent-1.05/lib/Mobile/UserAgent.pm

    http://www.zytrax.com/tech/web/mobile_ids.html

    http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones

    nginx

    location = / {

    root /var/www/path;
    if ($http_user_agent ~* "Nokia") { rewrite . /index.html break; }

    if ($http_user_agent ~* "Mobile") { r  閱讀全文
    posted @ 2009-12-08 09:22 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 原理簡(jiǎn)介

    安裝運(yùn)行

    特殊介紹

    1.iptables的3個(gè)表:

    filter: 顧名思義,用于過(guò)濾的時(shí)候

    nat: 顧名思義,用于做NAT 的時(shí)候

    manager:見(jiàn)下

    2.iptables的5條鏈

    INPUT: 匹配目的IP 是本機(jī)的數(shù)據(jù)包

    OUPUT: 匹配源IP是本機(jī)的數(shù)據(jù)包

    FORWARD: 匹配穿過(guò)本機(jī)的數(shù)據(jù)包

    PREROUTING: 用于修改目的地址(DNAT)

    POSTROUTING:用于修改源地址(SNAT)

    3.manager簡(jiǎn)介

    這個(gè)表主要用來(lái)mangle數(shù)據(jù)包。我們可以改變不同的包及包頭的內(nèi)容,比如 TTL,TOS或MARK。 注意MARK并沒(méi)有真正地改動(dòng)數(shù)據(jù)包,
    它只是在內(nèi)核空間為包設(shè)了一個(gè)標(biāo)記。防火墻內(nèi)的其他的規(guī)則或程序(如tc)可以使用這種標(biāo)記對(duì)包進(jìn)行過(guò)濾或高級(jí)路由。這個(gè)表有五  閱讀全文
    posted @ 2009-12-04 13:42 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1. 限制 client 每秒訪問(wèn)次數(shù)
    限制連 80 port 的次數(shù) = 60 秒 2次 , 超過(guò)就 drop
    iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –set
    iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 60 –hitcount 2 -j DROP

    2. 控制client訪問(wèn)特定的port
    只允許114.80.192.18 和 127.0.0.1 訪問(wèn)8080-8099的端口
    iptables -A INPUT -p tcp -s 114.80.192.18 --dport 8080:8099 -j ACCEPT
    iptables -A INPUT -p tcp -s ! 127.0.0.1 --dport 808  閱讀全文
    posted @ 2009-12-04 11:52 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: nginx 聊天室模塊  閱讀全文
    posted @ 2009-11-20 11:29 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: nginx 重啟之后 用purge 會(huì)出現(xiàn)以上錯(cuò)誤
    nginx log :
    2009/11/17 15:03:52 [crit] 1553#0: *1 cache file "/data/nginx_cache/etwebservice/a/2b/b3a2527b6f3a38d63663ee436e7d82ba" is too small, client: 222.66.142.229, server: localhost, request: "HEAD /purge/RestTakeoutServer/dish/B10I24R57547/list?commentCount=5 HTTP/1.1", host: "222.66.142.229"

    客戶(hù)端請(qǐng)求出錯(cuò)

    HTTP/1.1 500 Internal Server Error
    Server: nginx/0.8.24
    Date: Tue, 17 Nov 2009 07:03:52 GMT
    Content-Type: text/html
    Content  閱讀全文
    posted @ 2009-11-17 17:59 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: nginx0.8.26 加入 purge_cache module  閱讀全文
    posted @ 2009-11-17 17:45 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 下一站,考慮中......  閱讀全文
    posted @ 2009-11-06 14:31 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1. 安裝openvpn
    2. CA證書(shū)  閱讀全文
    posted @ 2009-11-05 15:49 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要:
    1.創(chuàng)建repo sudo -u subversion svnadmin create TestRepo

    2.備份svn version
    sudo -u subversion svnadmin dump TestRepo> /data/downloads/TestRepo-file

    3.恢復(fù)
    sudo -u subversion svnadmin load --force-uuid TestRepo1/ < /data/downloads/TestRepo-file

    4.客戶(hù)端轉(zhuǎn)換Repository
    例如:
    從 svn://etch1/TestRepo/TakeoutServer 到 svn://etch1/TestRepo1/TakeoutServer
    svn switch --force --relocate svn://etch1/TestRepo/TakeoutServer svn://etch1/TestRepo1/TakeoutS  閱讀全文
    posted @ 2009-11-05 15:41 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 目前大多數(shù)使用gson的還要求在java類(lèi)中使用java annotation,不完全支持POJO。
    Gson這個(gè)Java類(lèi)庫(kù)可以把Java對(duì)象轉(zhuǎn)換成JSON,也可以把JSON字符串轉(zhuǎn)換成一個(gè)相等的Java對(duì)象。Gson支持任意復(fù)雜Java對(duì)象包括沒(méi)有源代碼的對(duì)象。

    下載地址
    http://code.google.com/p/google-gson/downloads/list  閱讀全文
    posted @ 2009-11-05 15:31 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1. 下載最新的nucleus
    http://nucleuscms.org/download.php



    2. 解壓
    unzip *.zip
    移動(dòng)到:/data/blog/nucleus

    3. 創(chuàng)建數(shù)據(jù)庫(kù)
    mysql -u root -p
    提示輸入密碼
    create database nucleus_db;
    創(chuàng)建數(shù)據(jù)庫(kù)用戶(hù)
    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON nucleus_db.* TO 'username'@'localhost' IDENTIFIED BY 'password';




    4. 配置nginx
    server {
    listen 80;
    server_name www.myblog.com;
    access_log /var/log/ngi  閱讀全文
    posted @ 2009-10-30 13:13 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1. 下載最新的drupal
    wget http://drupal.org/files/projects/drupal-x.x.tar.gz



    2. 解壓
    tar -zxvf drupal-x.x.tar.gz
    移動(dòng)到:/data/blog/drupal

    3. 創(chuàng)建數(shù)據(jù)庫(kù)
    mysql -u root -p
    提示輸入密碼
    create database drupal_db;
    創(chuàng)建數(shù)據(jù)庫(kù)用戶(hù)
    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON drupal_db.* TO 'username'@'localhost' IDENTIFIED BY 'password';

    4. 創(chuàng)建文件
    cp sites/default/default.settings.php sites/default/settings.php
    chmod o+w s  閱讀全文
    posted @ 2009-10-30 12:02 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1. 下載最新的wordpress-mu
    wget http://mu.wordpress.org/latest.tar.gz

    2. 解壓
    tar -xzvf latest.tar.gz
    移動(dòng)到:/data/wpmu

    3. 創(chuàng)建數(shù)據(jù)庫(kù)
    mysql -u root -p
    提示輸入密碼
    create database wordpress_mu_db;
    創(chuàng)建數(shù)據(jù)庫(kù)用戶(hù)
    GRANT ALL ON wordpress_mu_db.* TO user@localhost identified by "password";



    4. 配置nginx
    server {
    listen 80;
    server_name www.myblog.com;
    access_log /var/log/nginx/myblog.com-access.log;

    location / {
      閱讀全文
    posted @ 2009-10-30 11:55 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 1. 下載最新的wordpress
    wget http://wordpress.org/latest.tar.gz

    2. 解壓
    tar -xzvf latest.tar.gz
    移動(dòng)到:/data/wordpress

    3. 創(chuàng)建數(shù)據(jù)庫(kù)
    mysql -u root -p
    提示輸入密碼
    create database wordpress_db;
    創(chuàng)建數(shù)據(jù)庫(kù)用戶(hù)
    GRANT ALL ON wordpress_db.* TO user@localhost identified by "password";

    4. 修改配置文件
    cd /opt/webapps/www/wp/wp
    mv wp-config-sample.php wp-config.php.

    5. 配置nginx
    server {
    listen 80;
    server_name www.myblog.com;
    access_l  閱讀全文
    posted @ 2009-10-30 11:49 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 這個(gè)錯(cuò)誤信息通常在你更新工作拷貝時(shí)出現(xiàn),可能的原因有兩個(gè):

    * 版本庫(kù)中有兩個(gè)文件的名字只是大小寫(xiě)不同,這在Windows下是不允許簽出的,因?yàn)閃indows的文件系統(tǒng)是大小寫(xiě)不敏感的。很可能其中一個(gè)文件是誤添加的,所以你要找出是哪一個(gè),然后刪除它,以確保不會(huì)把更改提交到錯(cuò)誤的文件。
    * 某個(gè)文件的文件名是非法的(對(duì)Windows來(lái)說(shuō)非法),比如,"con", "lpr", "com"都是非法的,因?yàn)檫@些都是設(shè)備名。當(dāng)然,含有"/\*?:|"和其它特殊字符在Windows(NTFS 和 FAT)也是不允許的。

    是,我們知道這個(gè)錯(cuò)誤信息對(duì)解決問(wèn)題沒(méi)什么實(shí)質(zhì)性的幫助,但這個(gè)錯(cuò)誤信息是來(lái)自Subversion庫(kù)的,我們改不了。

    有幾個(gè)辦法可以避免這個(gè)問(wèn)題:

    Subversion 是針對(duì)大小寫(xiě)敏感的文件系統(tǒng)(比如 Linux )設(shè)計(jì)的,這在大小寫(xiě)不敏感的Windows下有時(shí)就會(huì)有問(wèn)題。一個(gè)典型的例子是,重命名文件時(shí),如果文件名僅有大小寫(xiě)不一樣,如Makefile改成 MAKEFILE。在工作拷貝中要  閱讀全文
    posted @ 2009-10-22 12:11 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 在測(cè)試發(fā)現(xiàn) 當(dāng)數(shù)組返回json格式的String的時(shí)候,如果數(shù)組中只有一個(gè),則返回的json格式不是數(shù)組形式,而是單一對(duì)象格式。  閱讀全文
    posted @ 2009-10-15 09:28 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 這里面用的是jersey

    1. 創(chuàng)建一個(gè)project

    2. 建立返回的model

    這里面的model例子

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    package com.test.webservice.model;

    /**
    *
    * @author ann
    */
    import com.fg114.model.People;
    import java.util.Date;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax  閱讀全文
    posted @ 2009-09-27 15:19 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.sun.xml.ws.message.jaxb.AttachmentMarshallerImpl.addMtomAttachment(Ljavax/activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) of the current class, com/sun/xml/ws/message/jaxb/AttachmentMarshallerImpl, and its superclass loader (instance of ), have different Class objects for the type javax/act  閱讀全文
    posted @ 2009-09-18 16:13 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 在 Linux 系統(tǒng)中,
    要將代理連接為群集,有一個(gè)特殊的前提條件。某些 Linux 安裝程序自動(dòng)將 localhost 條目設(shè)置為網(wǎng)絡(luò)回送 IP 地址 (127.0.0.1)。您必須設(shè)置系統(tǒng)的 IP 地址,以便為群集中的所有代理設(shè)置正確的地址。
    也即修改/etc/hosts
    把hostname的配置文件為你的靜態(tài)ip(linux 查看hostname命令: hostname)

    例如: hostname == etch1
    修改/etc/hosts中
    etch1 192.168.1.18  閱讀全文
    posted @ 2009-09-17 11:32 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: url :http://efforts.embedded.ufcg.edu.br/web/?p=7  閱讀全文
    posted @ 2009-09-01 09:28 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏
         摘要: 例子 class Hotel{
    static constraints = {
    name()
    crTime(nullable:true)
    upTime(nullable:true)
    }

    String name
    Date crTime
    Date upTime

    def beforeInsert = {
    crTime = new Date()
    }

    def beforeUpdate = {
    upTime = new Date()
    }
    }
    crTime(nullable:true)
    upTime(nullable:true)不設(shè) 保存或更新靜默失敗(beforeInsert或beforeUpdate 不起作用)
      閱讀全文
    posted @ 2009-08-28 15:50 冰是沒(méi)有未來(lái)的,因?yàn)樗挠篮銃 編輯 收藏

    當(dāng)下,把心放下 放下如果是可能的,那一定是在當(dāng)下,
    不在過(guò)去,也不在未來(lái)。
    當(dāng)下放下。唯有活在當(dāng)下,你的問(wèn)題才能放下。

    主站蜘蛛池模板: 69成人免费视频| 两个人日本WWW免费版| 国产成人精品日本亚洲专区6| 久久久久亚洲精品日久生情| 久久精品a亚洲国产v高清不卡| 67pao强力打造67194在线午夜亚洲| 亚洲国产第一页www| 久久综合亚洲色一区二区三区 | 91大神在线免费观看| 无码人妻一区二区三区免费看 | 三年片在线观看免费西瓜视频| 中文字幕看片在线a免费| 国产一二三四区乱码免费| a在线观看免费视频| 无人在线观看免费高清| 91免费国产在线观看| 成全视频免费高清| 高清国语自产拍免费视频国产| 日韩中文无码有码免费视频 | 西西人体44rt高清亚洲| 久久综合亚洲鲁鲁五月天| 久久亚洲最大成人网4438| 亚洲乱人伦中文字幕无码| 野花视频在线官网免费1| 女同免费毛片在线播放| 免费在线视频你懂的| 国内外成人免费视频| 亚洲视频在线一区二区| 亚洲AV无码一区二区乱子伦| 亚洲成a人片在线观看播放| 亚洲美国产亚洲AV| 一个人看的www视频免费在线观看| a在线观看免费网址大全| 久久99九九国产免费看小说| 国产免费人视频在线观看免费| 亚洲色爱图小说专区| 亚洲免费一级视频| 免费国产黄网站在线观看动图| 野花香在线视频免费观看大全| 永久免费毛片在线播放| 亚洲日韩在线第一页|