小石頭
          Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price.
          posts - 91,comments - 22,trackbacks - 0
          JIRA + MySQL + Confluence 安裝 (2007-08-29 10:49)
          所屬分類:第二個分類
          文章標簽:無標簽

          1.本次安裝所用的軟件版本為:jira-3.9.3 Enterprise ,mysql-4.1 ,confluence-2.5.4 Enterprise ,tomcat-5.5.20,關于jira和confluence的破解請自行尋找。

          2.配置安裝環境。
          1.1 安裝JDK,以JDK1.5版為例(其余版本未經測試),默認安裝目錄應該為C:\Program Files\Java\jre1.5.0_12,修改系統環境變量,設置JAVA_HOME指向JDK安裝目錄。
          1.2 安裝mysql,這里使用的是4.1版,為什么沒有使用高版本的mysql,因為我在Atlassian官方網站上研究confluence的安裝時看到confluence對高版本的mysql支持不好,推薦使用4.1版,mysql的安裝沒什么好說的,一路next,但是有一點需要注意,在設置默認字符集的時候一定要選擇utf8,否則會導致confluence亂碼。安裝完成后創建數據庫,由于我們要實現jira和confluence的用戶共享,所以它們是共用一個數據庫,首先建一個名叫atlassiandb的庫,然后建一個數據庫用戶例如:atlassianuser。然后賦予atlassianuser用戶對庫atlassiandb所有的操作權限。我對mysql命令行的操作不太熟悉,所以只好用mysql-gui-tools來實現上面的操作。
          1.3 安裝tomcat,也是一路next,在選擇JVM虛擬機路徑的時候將1.1中安裝JDK的路徑填進去。安裝完成后,打開http://127.0.0.1:8080/manager/html,如果能出現管理頁面說明tomcat安裝成功。下載mysql jdbc驅動,把下載下來的jar文件放到tomcat根目錄下的common/lib/ 目錄下。網上很多人說只能用3.1.12版本的,但是我搜了一圈都沒有找到這個版本的jdbc驅動,所以只好用高版本的代替,一試竟然也行,看來還是自己動手比較靠譜。

          3.安裝jira,下載jira-3.9.3 Enterprise,解壓后,修改edit-webapp\WEB-INF\classes\目錄下的entityengine.xml文件,找到datasource節,將field-type-name屬性改成mysql,然后將schema-name="PUBLIC"刪除,保存。修改etc\下的tomcat-5.5-jira.xml文件,找到Resource 節,username和password分別為atlassiandb數據庫的用戶名和密碼。修改driverClassName節屬性為com.mysql.jdbc.Driver,修改url為"jdbc:mysql://localhost/atlassiandb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"
          刪除minEvictableIdleTimeMillis和timeBetweenEvictionRunsMillis,保存。然后運行根目錄下的build.bat批處理文件,生成war包。待生成完畢,將dist-tomcat\tomcat-5.5\下的jira.xml文件拷貝到tomcat安裝根目錄下的conf\Catalina\localhost\目錄下。由于tomcat默認是不支持jira的運行的,需要下載補丁來支持,把解壓后的jar文件拷貝到tomcat安裝根目錄下的common\lib\目錄下,重新啟動tomcat打開http://localhost:8080/jira就可以開始jira的安裝了。

          4.安裝confluence,下載confluence-2.5.4 Enterprise,解壓后,在根目錄下按以下層次創建文件夾edit-webapp\WEB-INF\classes\,將confluence\WEB-INF\classes\下的confluence-init.properties文件拷貝到建好的文件夾底下,找到confluence.home,這個路徑是以后confluence運行時放置索引、附件等的地方,指定一個路徑就行了。我一般就放在confluence安裝文件的根目錄下。下載osuer.xml文件將其放到edit-webapp\WEB-INF\classes\下。運行根目錄下的build.bat,生成war文件。新建一個confluence.xml文件,內容如下:

           

          <"/confluence" docBase="...\dist\atlassian-confluence-2.5.4.war" debug="0" reloadable="true">
                      "jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
                           username="atlassianuser"
                           password="password"
                           driverClassName="com.mysql.jdbc.Driver"
                           url="jdbc:mysql://localhost/atlassiandb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8" />
                       

           

          docbase為生成的war文件的路徑。username和password為第一步里創建的mysql用戶的用戶名和密碼。保存后放到tomcat安裝根目錄下的conf\Catalina\localhost\目錄下。重新啟動tomcat打開http://localhost:8080/confluence就可以開始安裝confluence了。

          5.為了實現jira和confluence的用戶共享,需要在jira中建立confluence-administrators和confluence-users兩個組,把jira里相應的用戶加入到這兩個組中就可以了。

          posted on 2008-03-03 17:22 小石頭 閱讀(5463) 評論(4)  編輯  收藏

          FeedBack:
          # re: JIRA + MySQL + Confluence 安裝
          2010-02-11 16:09 | Jeniffer27kW
          All scholars are willing to get a good degree, but what is the way to get it? We could propose to detect for the <a href="http://www.exclusivethesis.com">thesis writing</a> service to buy the economics thesis about this topic in. I took that and got the highest grade.   回復  更多評論
            
          # re: JIRA + MySQL + Confluence 安裝
          2010-08-17 21:40 | credit loans
          Some time ago, I needed to buy a building for my business but I didn't earn enough cash and could not order anything. Thank goodness my brother adviced to get the personal loans at reliable bank. Thence, I acted that and used to be satisfied with my short term loan.   回復  更多評論
            
          # re: JIRA + MySQL + Confluence 安裝
          2010-08-23 04:24 | buy essays online
          That is no matter what is your field of study just because professional custom writing organizations propose to buy essays online of great academic writing standards.   回復  更多評論
            
          # re: JIRA + MySQL + Confluence 安裝
          2013-03-07 13:56 | homepage
          詳細信息在這里的數量是美妙的因為如果你基本上已經寫上這一專題的書。你的博客是美好的愿望是熟悉這種主題更多的人。很好的資料 ;請保持寫作 !  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 建平县| 宁安市| 积石山| 贡觉县| 磴口县| 太仆寺旗| 平定县| 瓮安县| 昆山市| 祁阳县| 修武县| 昔阳县| 三明市| 青川县| 陇南市| 太谷县| 德清县| 霍山县| 洪泽县| 故城县| 通辽市| 乌鲁木齐市| 沙洋县| 洞头县| 苗栗县| 大姚县| 天门市| 灌云县| 昌都县| 铜陵市| 和龙市| 昌宁县| 射阳县| 海口市| 肇州县| 弋阳县| 云安县| 尼勒克县| 蒙城县| 洛阳市| 平乐县|