LittleCloud's Java World

          Live and learn.
          posts - 18, comments - 29, trackbacks - 0, articles - 1
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          2008年2月28日



          謝朓《王孫游》賞析

          綠草蔓如絲①,雜樹紅英發(fā)②。無論君不歸③,君歸芳已歇④。 


            


          想要下載直接在地址欄輸入:http://www.aygfsteel.com/Files/ash011/wangsunyou.mp3


              【注釋】①蔓:蔓延。 ②英:花。這兩句是說地上長(zhǎng)滿了如絲的綠草,樹上開滿了各樣的紅花,已是暮春時(shí)節(jié)了。 ③無論:莫說。 ④歇:盡。這兩句是說莫說你不回來,即使回來,春天也過去了。

              【賞析】
            這是一首樂府詩(shī),《樂府詩(shī)集》收入“雜曲歌辭”一類。魏晉以來,文人創(chuàng)作樂府詩(shī)往往有一個(gè)特點(diǎn):總是圍繞著“古辭”(漢樂府)打轉(zhuǎn)轉(zhuǎn),或擬古辭,或以古辭為引子生發(fā)開去(當(dāng)然也有棄古辭于不顧而自鑄偉辭的)。這種從古辭中尋找“母題”使創(chuàng)作上有所依傍的作法,已形成一個(gè)程式。南朝詩(shī)人寫樂府詩(shī)雖然也依這一程式,但卻出現(xiàn)另一種傾向,他們有時(shí)撇開漢樂府古辭,而直接上溯到《楚辭》中去尋找“母題”。比如,南齊王融和蕭梁費(fèi)昶都寫過一首《思公子》,中心題旨就是采自《楚辭·九歌》:“風(fēng)颯颯兮木蕭蕭,思公子兮徒離憂。”謝朓的這首詩(shī)也屬于這種情況,其“母題”出于《楚辭·招隱士》:“王孫游兮不歸,春草生兮萋萋。”也就是說,詩(shī)人的創(chuàng)作靈感獲自《楚辭》,而所寫內(nèi)容則完全是現(xiàn)實(shí)生活中的感受。在古老的“母題”之中,貫注了活生生的現(xiàn)實(shí)內(nèi)容。
            蔓,蔓延;紅英,即紅花。春天,綠草如絲,蔥蔥茸茸,蔓延大地,繪寫出一派綠的世界;各種各樣的樹上,紅花競(jìng)放,絢麗奪目。綠的氛圍,紅的點(diǎn)染,在鮮明的對(duì)比之中,烘托出一派生機(jī)勃勃的景象。窈窕少女,目睹此景,心傷離情,不禁怦然心動(dòng),情思繾綣,不無惆悵地發(fā)出了感嘆:“無論君不歸,君歸芳已歇。”且不要說心上的人兒不回來,即使等到他回來,那絢麗的花朵早已凋謝了,那大好春光早已白白地流逝了,我那美妙的年華也早巳悄然飄去了。紅顏難久持啊!這里,詩(shī)人不主要寫少女如何急切地等待著情人,如何急不可耐,而是著重寫她對(duì)于紅花的珍惜,對(duì)于大好春色的留戀,由此描寫出她思君、戀君的春一般的情愫。如此寫來,就把主人公的心態(tài)從一般的少女懷春,從感情的傾訴和渲泄,升華到了一種對(duì)春的珍惜、對(duì)時(shí)的留戀的理性高度,滲透出一種強(qiáng)烈的時(shí)間意識(shí)和生命意識(shí)。這樣,從景的描繪,到情的抒發(fā),再到理性的升華,三者水乳交融般地融匯在一起了。所以,這是一首充滿了生命意識(shí)的景、情、理俱佳的好詩(shī)。
            詩(shī)雖短小,藝術(shù)風(fēng)格卻頗具特色,體現(xiàn)了齊梁間詩(shī)歌創(chuàng)作雅俗結(jié)合的一種傾向。首先,從《楚辭》中生發(fā)出來的母題,顯而易見帶有文人的雅、艷色彩,暗示了它與文人文學(xué)的關(guān)系;但詩(shī)人卻用南朝樂府民歌五言四句的詩(shī)歌形式,來表現(xiàn)這一古老“母題”,這便將原有華貴、雍雅的色彩悄悄褪去,淡化,使之在語言風(fēng)格上呈現(xiàn)出清思婉轉(zhuǎn),風(fēng)情搖曳的特色。其次,詩(shī)寫春的景色逗引起春的情思,因景而生情,情景相生,短章逸韻,風(fēng)姿綽約,這原是南朝樂府民歌的本色,是“俗”。然而在描寫筆法上卻頗具匠心,詩(shī)人在綠的氛圍中綴以紅花的點(diǎn)染,巧筆對(duì)比,著意渲染,流露出文人精心構(gòu)制的痕跡,表現(xiàn)出“雅”。雅俗結(jié)合,創(chuàng)為佳構(gòu)。另外,詩(shī)的用韻也值得一提。詩(shī)用仄韻,短促,急切,對(duì)表現(xiàn)出主人公惜春、惜時(shí)的時(shí)不我待的急切心情,起到很好的作用,呈現(xiàn)出語淺意深、韻短情長(zhǎng)的藝術(shù)風(fēng)貌。



          我本人很喜歡,聽了心里很平靜的感覺~

          posted @ 2008-07-09 12:56 walkingpig 閱讀(3212) | 評(píng)論 (7)編輯 收藏



          Listen:/Files/ash011/struts2.rar

          Since arriving on the scene in 2000, Apache Struts has enjoyed a very successful run, by most any standard, helping to build many, if not most, of the Java-based web applications deployed today. Its history tells of how Struts provided a solid framework to organize the mess of JSP and Servlets to make developing applications, which used mostly server-generated HTML with a touch Javascript for client-side validation, easier to develop and maintain. As time moved forward, and customer demands of web applications grew and grew, Struts 1 pretty much stayed the same, leaving more and more plumbing to the web developer.

          At JavaOne 2005, several of the Struts developers (Martin Cooper, Don Brown) sat down with Rich Feit (Apache Beehive) and a few Struts users to discuss the future of Struts. We came up with the Struts Ti proposal, which described a framework that brought together a lot of good things that were developing in the web framework community. The problem is that the Struts 1 code base didn’t lend itself to drastic improvements, and its feature set was rather limited, particularly lacking in features such as Ajax, rapid development, and extensibility.

          At the same JavaOne, I sat down with Jason Carreira of the OpenSymphony WebWork 2 project to discuss how we could better work together. I was interested in building on XWork, the core of their command pattern implementation, but he suggested building on WebWork 2 directly. As Rich and I worked on the first few versions of Struts Ti, we decided to take Jason’s advice. We thought it was time for a framework to address higher level application needs, and by building on the proven WebWork 2 framework, we could spend our precious spare time where we felt it would make a difference. From then on, Rich and I worked mostly with Patrick Lightbody, also a core WebWork 2 developer, and found ourselves constantly “stealing” each others ideas for our respective code bases.

          Around this time, Patrick and Keith Donald of the Spring WebFlow project were kicking around an idea of a web framework to bind them all, Clarity. Clarity brought together Spring WebFlow (Keith), Struts (Ted Husted and myself), WebWork (Patrick and Jason), and Beehive (Rich) to talk about the possibility of combining efforts into one framework. Unfortunately, the devil is in the details as soon as Beehive and WebFlow were unable to make progress on merging their wizard/conversion scope features, and questions about project ownership, brand, and identity soon broke up the party.

          Not wanting to lose momentum, Ted and I started discussions with Patrick and Jason on how we could better work together, and after Patrick casually suggested the idea of a merger, Ted jumped on it and the Struts/WebWork merger was born. Since Struts Ti was already based on WebWork, it wasn’t that far a leap to bring the WebWork code into the Struts project. We started the Apache Incubator process for WebWork 2 in January and graduated the WebWork 2 code, developers, and community to Apache Struts that May.

          At that time, Struts was struggling with the project’s core identity, whether it was an umbrella for multiple web frameworks or not. We had Apache Shale, a web framework based off JSF, as a Struts subproject, along side Struts Action 1 (now called Struts 1) and Struts Action 2 (the graduated WebWork 2 code). Unfortunately, these subprojects were confusion to the developer and user community, accustomed to the name “Struts” referring to a single framework. After an attempt to unify the Struts Action 2 and Shale subprojects into a single Struts 2 framework, the Shale developers felt it would be better if they were their own top level project (TLP) where they are today. Struts Action 2 was soon after renamed to simply Struts 2.

          Today, the Apache Struts project has two major versions of its framework, but it is one action-based framework project. WebWork continues to deliver patch releases, and will certainly continue to do so until Struts 2 goes GA or final, but all new development takes place on the Struts 2 code. For those looking for drama or a controversy in the Struts/WebWork merger story, you’ll have to look elsewhere. Both groups of developers are working happily towards a Struts 2.0 GA release, trying to combine the stability and accessibility of Struts 1 with the elegant architecture of WebWork 2. Since the initial incubation, the Struts 2 code has added major features including a plugin framework, a new API, and better Ajax tags, and as promised in the Struts Ti proposal, we won’t stop there.

          I decided to write this down to help clear up where this Struts 2.0 project came from and why it includes WebWork 2 code. Mergers are tricky things and it seems even in the Open Source community, one that champions collaboration, a merger between two projects is a rarity and needs to be defended. Amusing, because you’d be hard pressed to find a Java web developer that felt there are too few web frameworks. I think the WebWork and Struts communities pulled off something special in Struts 2, and hope the merger fever catches on in the Open Source world.

          posted @ 2008-06-26 10:40 walkingpig 閱讀(450) | 評(píng)論 (0)編輯 收藏

          偶也是第一次配這東西,參考了許多網(wǎng)友的帖子,可半路上出現(xiàn)了很多報(bào)錯(cuò),郁悶得死,

          這里我把我自己最后成功的筆記分享給大家.

           

          CVS服務(wù)器的安裝:

          1. 查看你的操作系統(tǒng)上是否安裝了CVS
          #> rpm -qa|grep cvs

          guile-1.8.0-8.20060831cvs

          cvs-1.11.22-4

          2. 建立cvs用戶組:

          /usr/sbin/groupadd cvs

          3         建立cvs組的cvsroot用戶和所屬的目錄:
          #> /usr/sbin/useradd -g cvs -G cvs –d /cvsroot cvsroot

          4         cvsroot用戶添加密碼:
          #> passwd cvsroot

                密碼:cvsroot123456

          5         改變 /cvsroot/ 的目錄屬性:
          #> chmod –R 770 /cvsroot


          6
          改變用戶登陸身份:
          #> su cvsroot

          開始創(chuàng)建單個(gè)項(xiàng)目:
          #> cd /cvsroot
          #> mkdir configuration
          #>mkdir psgui

          #>mkdir davinci


          開始建立倉(cāng)庫(kù):
          #> cvs –d /cvsroot/configuration init
          #> cvs –d /cvsroot/psgui init

          #> cvs –d /cvsroot/davinci init
          #> chmod -R 770 ./configuration/ ./psgui/ ./davinci/

          9建立CVS服務(wù)啟動(dòng)文件,我們使用xinetd方式:
          #> [Crtl]+[d]
          切換到root用戶身份
          #> cd /etc/xinetd.d
          #> vi cvspserver

          service cvspserver

          {

                  disable = no

                  flags = REUSE

                  socket_type = stream

                  wait = no

                  user = root

                  server = /usr/bin/cvs

                  server_args = -f --allow-root=/cvsroot/configuration --allow-root=/cvsroot/psgui --allow-root=/cvsroot/davinci pserver

                  log_on_failure += USERID

          }

          注:由于xinetdserver_args長(zhǎng)度限制,當(dāng)你想運(yùn)行很多的單個(gè)倉(cāng)庫(kù)的時(shí)候,可以這么做:

          10 加入cvs服務(wù):
          #>vi /etc/services

          cvspserver 2401/tcp #pserver cvs service
          cvspserver 2401/udp #pserver cvs service

          已經(jīng)存在了,如下:(沒有添加了)

          cvspserver      2401/tcp                        # CVS client/server operations

          cvspserver      2401/udp                        # CVS client/server operations

          11 啟動(dòng)cvs服務(wù):
          #> /etc/init.d/xinetd restart

          12 檢查cvspserver服務(wù)是否已經(jīng)啟動(dòng):
          #> netstat -l |grep cvspserver
          應(yīng)該有如下結(jié)果:
          tcp 0 0 *:cvspserver *:* LISTEN

          已經(jīng)有上面的顯示結(jié)果

          CVS服務(wù)的用戶管理:

          上面我們已經(jīng)建立了configurationpsguidavinci三個(gè)CVS倉(cāng)庫(kù),下面我們分別給這三個(gè)倉(cāng)庫(kù)建立cvs用戶。

          13創(chuàng)建可以登陸cvs服務(wù)器的用戶名和密碼:

          #> su cvsroot
          #> vi /cvsroot/configuration/CVSROOT/passwd
          yujiabo:*****:cvsroot

          #>vi /cvsroot/psgui/CVSROOT/passwd

          lianghuoyan:*****:cvsroot
          yujiabo:*****:cvsroot

          這兩個(gè)文件的意思是有yujiabolianghuoyan兩個(gè)cvs用戶,lianghuoyan擁有psgui的使用權(quán)限,yujiabo擁有configurationpsgui的使用權(quán)限,登陸后的權(quán)限是cvsroot權(quán)限。
          注意:這里的cvs用戶和系統(tǒng)用戶是不同的。


          14 *****
          為密碼,由以下文件生成:

          #> vi /cvsroot/passwd.pl

          #!/usr/bin/perl
          srand (time());
          my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
          my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
          my $plaintext = shift;
          my $crypttext = crypt ($plaintext, $salt);
          print "${crypttext}
          ";
          #>chmod a+x /cvsroot/passwd.pl


          15
          如果你想生成一個(gè)密碼是“123456”,則:
          #> /cvsroot/passwd.pl “123456”
          回車即可得到加密密碼,用其替換passwd文件中的*****


          16 Ok
          cvs現(xiàn)在已經(jīng)全部安裝完成了,如果你想讓一個(gè)用戶擁有psgi的權(quán)限,你就在/cvsroot/psgui/CVSROOT/passwd中給他加入一個(gè)用戶;如果你想讓一個(gè)用戶同時(shí)具有psguidavinci的權(quán)限,你就給/cvsroot/psgui/CVSROOT/passwd/cvsroot/davinci/CVSROOT/passwd里給他加一個(gè)用戶名和密碼相同的用戶即可。最后,我們?cè)囉靡幌拢?/span>
          #> cvs -d :pserver:yujiabo@168.68.73.122:/cvsroot/psgui login


          敲入命令回車后提示輸入yujiabo的密碼,你按照自己設(shè)置的密碼輸入,如果沒有什么錯(cuò)誤信息出現(xiàn)就是成功了(我的機(jī)器IP地址是168.68.73.122)

          客戶端測(cè)試:

          ash用戶登陸168.68.73.123

          運(yùn)行#

          cvs -d :pserver:yujiabo@168.68.73.122:/cvsroot/configuration login

          123456(輸入的密碼)

          出現(xiàn)錯(cuò)誤:2401 failed: No route to host

          客戶端連接不上,放開服務(wù)器防火墻2401端口,方法如下:

          168.68.73.122root登陸后,運(yùn)行#system-config-securitylevel

          選擇“定制”,其它端口處輸入:2401,然后“確定”設(shè)置。

          現(xiàn)在客戶端可以連接了。

          Windows下的客戶端軟件WinCvs1.3配置如下:
          CVSROOT
          認(rèn)證方式:pserver
          路徑:/cvsroot/configuration
          用戶名:yujiabo
          CVSROOT:yujiabo@168.68.73.122:/cvsroot/configuration

          posted @ 2008-04-17 16:38 walkingpig 閱讀(1827) | 評(píng)論 (2)編輯 收藏

          安裝好TestLink 和Mantis后,所有配置好以后,發(fā)現(xiàn)測(cè)試相關(guān)的BUG標(biāo)題中文是亂碼,網(wǎng)上找了若干文章沒有解決,自己摸索出一下方法。

          Mantis版本: 1.1.0(RC2)
          TestLink版本:1.7.1
          PHP版本:5.2.5
          MySQL版本:5.0.22

          需要修改TestLink的文件:lib\bugtracking\int_mantis.php

           function getBugSummaryString($id)
           {
            if (!$this->isConnected())
             return false;
            
            //$this->m_dbConnection->aaa();
            $this->m_dbConnection->exec_query("set names 'GB2312'");  //<-新增加的
            
            $status = null;
            // 20070302 - {$this->m_dbName}.mantis_bug_table -> mantis_bug_table
            // Problems with MS-SQL
            $query = "Select summary FROM mantis_bug_table Where id='" . $id."'";
            
            $result = $this->m_dbConnection->exec_query($query);
            if ($result)
            {
             $summary = $this->m_dbConnection->fetch_array($result);

             // 20070302 - BUGID - on MS-SQL fetch_array() does not returns numeric indexes, then
             //                    only choice is accessing my field name (IMHO better)
             if ($summary)
              $summary = iconv("GB2312",TL_TPL_CHARSET,$summary['summary']);//<-修改的
             else
              $summary = null;
            }
            return $summary;
           }



          源文出自:http://www.joyblog.cn/article.asp?id=463

          posted @ 2008-04-15 16:18 walkingpig 閱讀(931) | 評(píng)論 (1)編輯 收藏

          TestLink中集成Mantis bug 管理系統(tǒng)

          相信大家在選擇測(cè)試管理工具的時(shí)候,除了Free這個(gè)重要因素之外,是否也想讓其功能更全呢?如果功能不夠全,那么就想著是否能集成其他系統(tǒng)的功能進(jìn)而完善呢?下面要說的就是一個(gè)集成功能的運(yùn)用,希望對(duì)大家有幫助。

          簡(jiǎn)述

          在TestLink和bug 管理系統(tǒng)集成必須具備以下特點(diǎn):
          1.       在TestLink和bug 管理系統(tǒng)之間所有的信息交流都是在數(shù)據(jù)庫(kù)中完成。
          2.       TestLink(現(xiàn)在版本)既不能發(fā)信息給bug 管理系統(tǒng),也不能從bug 管理系統(tǒng)接收信息,只是單純的調(diào)用。
          在配置完成之后運(yùn)行,TestLink用戶的使用步驟如下:
          1.       當(dāng)執(zhí)行某個(gè)測(cè)試失敗。
          2.       用戶點(diǎn)擊鏈接打開bug 管理系統(tǒng),將issue提交。
          3.       當(dāng)issue提交完畢之后,用戶必須將bug 管理系統(tǒng)的issue ID記錄到TestLink。
          4.       用戶返回到TestLink的測(cè)試執(zhí)行頁(yè)面,將issue ID記錄到Bug問題的地方。
          5.       在用戶保存執(zhí)行結(jié)果之后,Testlink將顯示從Bug 管理系統(tǒng)獲取的數(shù)據(jù)。

          環(huán)境要求示例:
          l       TestLink和Mantis安裝在同一臺(tái)服務(wù)器上
          l       Mantis的鏈接:http://168.68.73.29/mantis/
          l       TestLink的鏈接:http://168.68.73.29/TestLink/
          l       Mantis數(shù)據(jù)庫(kù)名字:mantis
          l       Mysql登錄名字:mantis_user
          l       登錄密碼:Mantis_passwd
          第一步:編輯config.inc.php
          找到$g_interface_bugs='NO';
          改成$g_interface_bugs='MANTIS';

          第二步:在mantis上設(shè)置匿名登錄權(quán)限
          l       匿名登錄的設(shè)置需要打開。
          l       Mantis的匿名用戶具備對(duì)所有的項(xiàng)目都可以瀏覽的權(quán)限。
          Change the following in your mantis config_inc.php (replace dummy with your created user)
          # --- anonymous login -----------
          # Allow anonymous login
          $g_allow_anonymous_login = ON;
          $g_anonymous_account = 'dummy';

          注:這個(gè)dummy用戶需要administrator在后臺(tái)添加,注冊(cè)不了的

          第三步:在TestLink里配置mantis的界面參數(shù)。
          你必須編輯TL_ABS_PATH/cfg/mantis.cfg.php,如下所示:
          /** The DB host to use when connecting to the mantis db */
          define('BUG_TRACK_DB_HOST', 'localhost');

          /** The name of the database that contains the mantis tables */
          define('BUG_TRACK_DB_NAME', 'manti');

          /** The DB type being used by mantis
          values: mysql,mssql,postgres
          */
          define('BUG_TRACK_DB_TYPE', 'mysql');

          /** The DB type being used by mantis */
          define('BUG_TRACK_DB_USER', 'mantis_user');

          /** The DB password to use for connecting to the mantis db */
          define('BUG_TRACK_DB_PASS', 'mantis_passwd');

          /** link to the bugtracking system, for viewing bugs */
          define('BUG_TRACK_HREF', "http://168.68.73.29/mantis/view.php?id=");

          /** link to the bugtracking system, for entering new bugs */
          define('BUG_TRACK_ENTER_BUG_HREF'," http://168.68.73.29/mantis/");


          測(cè)試配置:
          首先在TestLink里面執(zhí)行一條測(cè)試用例,執(zhí)行之后,如果發(fā)現(xiàn)問題,則點(diǎn)擊“Create New Bug”,則打開mantis頁(yè)面,將發(fā)現(xiàn)的問題報(bào)告至mantis上,報(bào)告成功之后,回到TestLink,將Issue ID填寫到“Bug/Problem Report”的文本框里,然后點(diǎn)擊“Save Result”,這樣,Testlink就能把Mantis上的issue數(shù)據(jù)顯示在執(zhí)行測(cè)試用例頁(yè)面下方了。

          此外,你還可以TestLink的bug報(bào)表功能,點(diǎn)擊“Total Bugs For Each Test Case”,則在右邊的頁(yè)面里顯示該項(xiàng)目所有測(cè)試用例下的bug列表。

          posted @ 2008-04-15 15:27 walkingpig 閱讀(2364) | 評(píng)論 (0)編輯 收藏

               摘要:   <?php # Mantis - a php based bugtracking system # Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@...  閱讀全文

          posted @ 2008-04-11 18:41 walkingpig 閱讀(2269) | 評(píng)論 (0)編輯 收藏

          可惜不是java 寫的,用的php
          在本機(jī)裝好兩天了,
          今天一天都在用這個(gè)系統(tǒng),
          可是發(fā)現(xiàn)里面的用戶權(quán)限有些亂.
          搞不清楚項(xiàng)目經(jīng)理應(yīng)該分配什么權(quán)限,
          項(xiàng)目組員分什么權(quán)限,
          項(xiàng)目總經(jīng)理應(yīng)該是什么權(quán)限來的,

          中文資料也很少,在opensorce里找到英文手冊(cè)看不懂,
          有個(gè)中文手冊(cè)講得不清不楚的~~~暈
          看樣子要自己慢慢摸索了

          posted @ 2008-04-08 15:34 walkingpig 閱讀(1695) | 評(píng)論 (3)編輯 收藏

          去年8月份做的"房地產(chǎn)案件管理系統(tǒng)"
          到現(xiàn)在為止,客戶那邊已經(jīng)上線,
          這兩天客戶反映的問題比較多,
          由此,對(duì)這個(gè)項(xiàng)目有些感慨,現(xiàn)在記錄下來,


          以便往后借鑒:

          1 需求不穩(wěn)定,從一開始,需求就沒有完全確定過,直到現(xiàn)在,需求還在增加或變動(dòng)。
          感覺現(xiàn)在整個(gè)系統(tǒng)就像在打補(bǔ)丁,客戶那這突然想起哪里缺了什么,就要補(bǔ)什么,
          不會(huì)顧及系統(tǒng)架構(gòu),這樣子多多少少會(huì)破壞之前搭建好的系統(tǒng)架構(gòu).

          2 我自己犯的錯(cuò),在實(shí)施過程中,發(fā)現(xiàn)某些需求有歧義,但未反饋給客戶確認(rèn),
          自己下了結(jié)論,按自己的想法做,結(jié)果并不是客戶的意思.

          3 這個(gè)是最煩人的,整個(gè)系統(tǒng)代碼一個(gè)月多一點(diǎn)就全部完成,但那時(shí)一直打電話要求客戶那邊協(xié)助測(cè)試,
          因?yàn)榭蛻舻臉I(yè)務(wù)很復(fù)雜,也有很多特例,系統(tǒng)哪里有問題,只要他們自己一用就會(huì)發(fā)現(xiàn)的,可那時(shí)客戶那邊
          沒有專門負(fù)責(zé)這方面的人,一直都拖著,直到現(xiàn)在他們沒有怎么測(cè)試,就上線,發(fā)現(xiàn)問題較多。

          posted @ 2008-03-18 15:40 walkingpig 閱讀(1235) | 評(píng)論 (3)編輯 收藏

          要導(dǎo)入的需求xml文件requirement.xml內(nèi)容如下:

          <?xml version="1.0" encoding="gb2312"?>
          <requirements>
              
          <requirement>
              
          <docid><![CDATA[需求001]]></docid>
              
          <title><![CDATA[需求001標(biāo)題]]></title>
              
          <discription><![CDATA[需求001的描述]]></discription>
              
          </requirement>
              
                  
          <requirement>
              
          <docid><![CDATA[需求002]]></docid>
              
          <title><![CDATA[需求002標(biāo)題]]></title>
              
          <discription><![CDATA[需求002的描述]]></discription>
              
          </requirement>
              
                  
          <requirement>
              
          <docid><![CDATA[需求003]></docid>
              <title><![CDATA[需求003標(biāo)題
          ]]></title>

              
          <discription><![CDATA[需求003的描述]]></discription>
              
          </requirement>
            
          </requirements>
          但不知道什么原因,我導(dǎo)入時(shí)總是報(bào)錯(cuò):
          "please check the file format,seems is not possible get any requirement"
          這是為何,請(qǐng)有經(jīng)驗(yàn)的朋友幫我解答一下下,呵呵

          posted @ 2008-03-04 16:19 walkingpig 閱讀(742) | 評(píng)論 (2)編輯 收藏

          操作系統(tǒng): windows xp
          需要安裝的軟件:
          ActivePerl-5.8.8.817-MSWin32-x86-257965.msi

          apache_2.2.6-win32-x86-no_ssl.msi
          mysql-5.0.22-win32_Setup.exe
          bugzilla-3.0.2.tar.gz
          bugzilla-bundle.zip

          win下搭建bugzilla確實(shí)太難了,因?yàn)楸緛砭筒皇菫楣ぷ髟趙in下而設(shè)計(jì)的,bugzilla也是在最近幾個(gè)版本才加強(qiáng)了對(duì)win的支持。

          我的環(huán)境是:
          ActivePerl-5.8.8.817-MSWin32-x86-257965.msi安裝為F:\Perl目錄
          mysql-5.0.22-win32_Setup.exe安裝為F:\MySQL
          apache_2.2.6-win32-x86-no_ssl.msi安裝為F:\Apache2目錄

          下面開始安裝:
          1. 配置數(shù)據(jù)庫(kù)
              打開mysql的command line client

          輸入之前設(shè)置好的root密碼,創(chuàng)建數(shù)據(jù)庫(kù)bugs,用戶bugs,密碼為空。并賦予這個(gè)用戶一定的權(quán)限。(因?yàn)閎ugzilla配置文件中默認(rèn)是數(shù)據(jù)庫(kù)bugs,用戶bugs,密碼為空,所以我們?cè)谶@里設(shè)置好后往下進(jìn)行就會(huì)較方便了。)

          創(chuàng)建數(shù)據(jù)庫(kù):

          mysql>create database bugs;

          創(chuàng)建用戶并賦予權(quán)限:

          mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX, ALTER,CREATE,DROP,REFERENCES,LOCK TABLES,CREATE TEMPORARY TABLES ON bugs.* TO bugs@localhost IDENTIFIED BY '';

          刷新一下:
          mysql> FLUSH PRIVILEGES;

          mysql的設(shè)置就完成了。

          2  安裝bugzilla
          將bugzilla 2.20.1文件夾所有文件全部拷貝到E:\php\bugzilla\下。在 開始-〉程序-〉運(yùn)行 中輸入CMD,進(jìn)入E:\php\bugzilla目錄下,運(yùn)行
          perl checksetup.pl 檢查bugzilla安裝所需模塊是否都已找到,默認(rèn)情況下是需要安裝許多模塊的。bugzilla-bundle.zip解壓縮這個(gè)zip包,放到E:\php,打開CMD,定位到這里,運(yùn)行ppm,在ppm>下依次輸入并回車:

          install AppConfig.ppd 

          install DBI.ppd 

          install GD.ppd 

          install GDTextUtil.ppd 

          install MailTools.ppd 

          install PatchReader.ppd 

          install Template-Toolkit.ppd 

          install TimeDate.ppd 

          install Chart.ppd 

          install DBD-mysql.ppd 

          install GDGraph.ppd 

          install MIME-tools.ppd 

          即可安裝完所有模塊
          中間可能某一個(gè)模塊會(huì)提示安裝失敗,這時(shí)請(qǐng)安裝完其他模塊后再重新安裝失敗的模塊
          在安裝之前失敗的模塊時(shí),請(qǐng)帶上路徑安裝,如:
          ppm intsall http://www.brides.org/perl/ppm/PerlMagick.ppd

          ppm uninstall mod_perl 將之前安裝的mod_perl卸載,
          由于版本不正確,所以可能會(huì)報(bào)已經(jīng)安裝了mod_perl,但還報(bào)mod_perl需要ppm install,
          所以先卸載再用下面的命令重裝一次
          ppm install http://theoryx5.uwinnipeg.ca/ppm/mod_perl.ppd

          ppm install http://trouchelle.com/ppm/Email-MIME-Creator.ppd安裝這個(gè)時(shí)會(huì)報(bào)還有它的依賴包未安裝,
          這時(shí)就用這個(gè)網(wǎng)址路徑安裝相應(yīng)的依賴包之后,再用以上命令安裝這個(gè)包就行了.

          再?gòu)拿钚械紼:\php\bugzilla\下運(yùn)行 perl checksetup.pl,檢查是否需要的模塊都已經(jīng)安裝并找到了。是的話則會(huì)在目錄下生成一個(gè)localconfig文件,這個(gè)文件是bugzilla運(yùn)行時(shí)的配置文件。打開這個(gè)文件我們只需看一下用戶名和密碼那塊是否和我們?cè)趍ysql中設(shè)置的一樣即可。

          再次運(yùn)行 perl checksetup.pl 會(huì)生成bugzilla需要的模版和數(shù)據(jù)庫(kù)中的表。

          輸入exchange服務(wù)器(這個(gè)不要輸入錯(cuò)誤,因?yàn)閎ugzilla以后很多的操作都是需要發(fā)送郵件的,比如新建一個(gè)account后初始密碼是發(fā)送到你的郵箱里的)。接著會(huì)讓你輸入管理員的郵箱地址,名字,密碼
           
          確認(rèn)輸入后即完成bugzilla的安裝了。

          再次輸入perl checksetup.pl 確認(rèn)數(shù)據(jù)庫(kù)已經(jīng)連接正常。修改E:\php:\bugzilla\目錄下所有cgi,pl文件,將執(zhí)行文件最前面的!#路徑改成perl .exe的路徑。

          posted @ 2008-03-03 11:43 walkingpig 閱讀(1316) | 評(píng)論 (0)編輯 收藏

          運(yùn)行環(huán)境:
          Windows XP, ActivePerl-5.8.8.817-MSWin32-x86-257965.msi

          安裝完畢,
          用記事本打開apache的httpd.conf文件,
          1.搜索cgi-bin,找到ScriptAlias /cgi-bin/
          改成
           ScriptAlias /cgi-bin/ "F:/Apache2/cgi-bin/"
          ,這是存放cgi文件的路徑
          2. 搜索AddHandler  找到AddHandler  cgi-script .cgi ,這是定義可執(zhí)行cgi文件擴(kuò)展名,可以把.cgi 改為 .pl 或加上”, .pl” ,成為“AddHandler cgi-script .pl ,.cgi“這樣兩個(gè)后綴都可以用了。
          3.更改Options、Allow Override的參數(shù)為All。
          改完之后象這樣:
          #
          "F:/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
          # CGI directory exists
          , if you have that configured.
          #
          <Directory 
          "F:/Apache2/cgi-bin">
              AllowOverride All
              Options All
              Order allow
          ,deny
              Allow from all
          </Directory>
           4.建立文件 test.pl , 內(nèi)容如下:

          #!d:/Perl/bin/perl 
          #
          #   寫成!d:/Perl/bin/perl.exe也可以
          #
          # 注意,如果沒有第一行或?qū)戝e(cuò),apache找不到perl解釋器
          #
          # ,會(huì)出現(xiàn)500 Internal Server
           
          print "Content-type:text/html\n\n";
          print "CGI執(zhí)行成功!";

          在F:\phpweb目錄下,建立一個(gè)html文件,內(nèi)容如下:
          <a 5. 重新啟動(dòng)apache server,然后在瀏覽器打開這個(gè)文件,提示 “CGI執(zhí)行成功!”

          posted @ 2008-02-29 17:57 walkingpig 閱讀(722) | 評(píng)論 (0)編輯 收藏

          上一篇windowsxp 下安裝php是為了安裝TestLink而配的,
          TestLink的安裝有兩種方式,一是自動(dòng)安裝,二是手工安裝的方式。
          我用的是自動(dòng)安裝

          在上篇配置好的php環(huán)境下,按如下步驟安裝TestLink

          1.將TestLink文件夾拷貝到F:\phpweb目錄下。
          2.在瀏覽器輸入訪問地址http://168.68.73.97/testlink/
          若沒有安裝就會(huì)自動(dòng)跳到http://168.68.73.97/testlink/install/index.php安裝頁(yè)
          3.選擇new install,在進(jìn)入的頁(yè)面中,輸入登錄MySQL的用戶名和密碼,如root,如果沒有為TestLink新建一個(gè)專用的用戶,也可以輸入初始用戶root。但是因?yàn)閞oot權(quán)限過多,所以,建議為TestLink新建專用的用戶,并為該用戶賦予ALTER、SELECT、INSERT、UPDATE、INDEX、CREATE、DELETE和DROP權(quán)限。
          3.提示安裝成功。系統(tǒng)為testlink創(chuàng)建一個(gè)默認(rèn)管理員賬號(hào),用戶名和密碼為:admin/admin。你可以使用這個(gè)賬號(hào)訪問TestLink

          在自動(dòng)安裝過程中,安裝程序主要做了以下事情:
          1.檢查web server的參數(shù)、php配置、數(shù)據(jù)庫(kù)版本
          2.創(chuàng)建數(shù)據(jù)庫(kù)和表,并導(dǎo)入初始數(shù)據(jù)
          3.完成安裝

          posted @ 2008-02-29 17:17 walkingpig 閱讀(797) | 評(píng)論 (0)編輯 收藏

          我是第一次在xp下配置php
          在網(wǎng)上找了很多資料,按照上面的一步步配,總會(huì)在半路出現(xiàn)一些問題,
          以下是我綜合幾個(gè)網(wǎng)友的資料配置成功的步驟:

          操作系統(tǒng):windows xp
          apache_2.2.6-win32-x86-no_ssl.msi  
          http://apache.mirror.phpchina.com/httpd/binaries/win32/apache_2.2.6-win32-x86-openssl-0.9.8e.msi
          php-5.2.5-win32-installer.msi 
          http://cn2.php.net/distributions/php-5.2.5-win32-installer.msi
          PHP 5.2.5 zip package
          http://cn.php.net/get/php-5.2.5-Win32.zip/from/cn2.php.net/mirror(這里面有需要的dll文件)
          mysql-5.0.22-win32_Setup.exe
          http://www.mysql.com/

          開始安裝

          一、安裝Apache2.2.6

          1 運(yùn)行安裝程序 圖1

           

           

          2 下一步,圖2 安裝協(xié)議

           


          3 下一步,圖3 Apache HTTP Server的一些說明

           


          4 下一步,圖4 填寫服務(wù)信息

          Network Domain 域名 ,這里填寫 localhostServer Name 服務(wù)器名,這里填寫 localhost

          Administrator‘s Email Address 管理員郵箱

           

           

           

          5 安裝類型

          選擇自定義安裝 Custom,圖5

           

           

          6 自定義安裝設(shè)置,圖6

           

           

          修改安裝目錄,這里我把目錄修改到F:\Apache2\圖7

           

           

          7 安裝確認(rèn),圖8

           

           

          8 開始安裝,圖9

           

           

          安裝最后會(huì)出現(xiàn)幾個(gè)命令行窗口。

          9 安裝完畢,圖10

           

           

          10 右下角出現(xiàn)圖標(biāo),圖11

           

           

          11 雙擊顯示服務(wù)器監(jiān)控信息,圖12

           

           

          12 測(cè)試,圖13

          在瀏覽器地址欄輸入 http://localhost,回車顯示 “It works!”。

          如圖,表示安裝成功了!

           

           

          這樣 Apache就安裝完畢了。

          二、安裝PHP5.2.5

          1 拷貝需要的組件

          解壓php-5.2.5-Win32.zip到“G:/PHPTemp”。這里主要是拷貝一些以后需要的組件。

          2 運(yùn)行安裝程序php-5.2.5-win32-installer.msi

           

           

          3 接受 安裝協(xié)議

           

           

          4 選擇安裝目錄,

          選定目錄.我設(shè)置的是F:\php\

           

           

          5 選擇服務(wù)器設(shè)置

           

           

          6 選擇Apache配置文件目錄,按我之前的配置,這里我選的是F:\Apache2\

           

           

          7 安裝設(shè)置

           

           

          8 準(zhǔn)備安裝

           

           

          9 安裝完畢

           

           

          10 從G:/PHPTemp拷貝libmysql.dll及ext文件夾到F:/PHP
          并在F:/PHP/php.ini中修改成
          ;;;;;;;;;;;;;;;;;;;;;;
          ; Dynamic Extensions ;
          ;;;;;;;;;;;;;;;;;;;;;;
          ;
          ; If you wish to have an extension loaded automatically, use the following
          ; syntax:
          ;
          ;   extension=modulename.extension
          ;
          ; For example, on Windows:
          ;
          ;  extension=msql.dll
             extension=php_mysql.dll
             extension=php_mysqli.dll
          ;
          ; ... or under UNIX:

          將F:/PHP/php.ini文件拷貝到C:\WINDOWS目錄下
          將F:/PHP/libmysql.dll文件拷貝到 C:\WINDOWS\system32目錄下
          將F:/PHP/ext/php_mysql.dll 文件拷貝到 C:\WINDOWS\system32目錄下
          將F:/PHP/ext/php_mysqli.dll文件拷貝到 C:\WINDOWS\system32目錄下

          11 對(duì)Apache進(jìn)行設(shè)置

           在F:\下建立phpweb子目錄,即“F:/phpweb”目錄。

          修改目錄F:\Apache2\conf下的文件“ httpd.conf”。

          搜索DocumentRoot "F:/Apache2/htdocs"把冒號(hào)中的F:/Apache2/htdocs,替換成“F:/phpweb";

          搜索<Directory "F:/Apache2/htdocs"> 把冒號(hào)中的F:/Apache2/htdocs,替換成“F:/phpweb";

          上面這兩行可以不改,那么以后添加的論壇程序就要放在f:/Apache2/htdocs下面,就是以這個(gè)目錄作為根目錄。改的目的就是不想把所有網(wǎng)站程序都放在Apache的目錄下面。

          搜索DirectoryIndex index.html 增加為DirectoryIndex index.html index.php

          上面這句為了能夠運(yùn)行缺省的頁(yè)面,這里增加了 index.php作為缺省頁(yè)面。

          修改完畢,保存,并重新啟動(dòng)Apache服務(wù)器,也許會(huì)啟動(dòng)不成功,這時(shí)要不按Ctrl+Alt+Del刪除Apache相關(guān)程序,要不重新啟動(dòng)計(jì)算機(jī)。

          12 測(cè)試

          在“f:/phpweb”目錄中,創(chuàng)建文件 test.php

           

          <html>
          <
          head
          >
            <
          title>PHP Tes</title
          >
          </
          head
          >
          <
          body
          >
          <?
          php echo "<p>Hello World</p>"; 
          ?>
          </
          body
          >
          </
          html>

           在瀏覽器地址欄中輸入 http://localhost/test.php,顯示如下,

           

          顯示:
          Hello World

          那么你安裝Apache和PHP成功了。

          posted @ 2008-02-29 16:54 walkingpig 閱讀(500) | 評(píng)論 (0)編輯 收藏

          最近網(wǎng)站總是打開太慢,到后來干脆就不能打開了,

          進(jìn)到服務(wù)器重啟tomcat服務(wù)時(shí),竟然報(bào)了jvm內(nèi)存設(shè)置太大

          ps一看,發(fā)現(xiàn)了很多mysqld進(jìn)程,

          占內(nèi)存,也占了很多CPU,

          我是用的二進(jìn)制包安裝的mysql,網(wǎng)上一查,有很多朋友說,這屬正常,

          可我擔(dān)心過幾天服務(wù)器還會(huì)出現(xiàn)同樣的問題,怎么辦

          posted @ 2008-02-28 17:21 walkingpig 閱讀(378) | 評(píng)論 (0)編輯 收藏

          主站蜘蛛池模板: 宿迁市| 新沂市| 元谋县| 商南县| 武邑县| 三明市| 莆田市| 洛阳市| 沁水县| 商南县| 永仁县| 利川市| 泰宁县| 高陵县| 海丰县| 台北县| 禹城市| 吴堡县| 乌拉特后旗| 黑龙江省| 望谟县| 历史| 洛宁县| 夹江县| 习水县| 南开区| 鄂伦春自治旗| 布尔津县| 沈丘县| 砚山县| 儋州市| 英德市| 江口县| 华宁县| 岑溪市| 嘉禾县| 荣成市| 卓资县| 宁蒗| 巴塘县| 五华县|