Fork me on GitHub

Jira&Confluence服务器安装

1.Mysql安装

参考https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html

 

创建相应的数据库

CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;

GRANT ALL PRIVILEGES ON confluence.* TO 'confluence'@'localhost' IDENTIFIED BY '123456';
 
CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;

GRANT ALL PRIVILEGES ON jiradb.* TO 'jira'@'localhost' IDENTIFIED BY '123456';
 
CREATE DATABASE crowd CHARACTER SET utf8 COLLATE utf8_bin;

GRANT ALL PRIVILEGES ON crowd.* TO 'crowd'@'localhost' IDENTIFIED BY '123456';
 
flush privileges;

  

 2.安装Jira

参考https://confluence.atlassian.com/jira061/jira-installation-and-upgrade-guide/installing-jira/installing-jira-on-linux

安装好Jira后,关闭Jira程序,copy mysql-connector-java-5.1.38-bin.jar 到 /opt/atlassian/jira/lib/下,启动Jira程序。

 

3.安装Confluence

参考https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html

安装好Confluence后,关闭Confluence程序,copy mysql-connector-java-5.1.38-bin.jar 到 /opt/atlassian/Confluence/lib/下,启动Confluence程序。

 

4.安装Crowd

安装最新java

yum –y install java-1.8.0-openjdk.x86_64

参考https://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID

 

5.整合Jira、Confluence、Crowd

https://confluence.atlassian.com/doc/integrating-jira-and-confluence-2825.html

https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html

https://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Atlassian+JIRA

 

6.设置Apache代理

参考https://confluence.atlassian.com/doc/using-apache-with-virtual-hosts-and-mod_proxy-173685.html

编辑/etc/httpd/conf/httpd.conf文件,最后加入下面内容

# Put this after the other LoadModule directives

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so

LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so

 

# Put this in the main section of your configuration (or desired virtual host, if using Apache virtual hosts)

ProxyRequests Off

ProxyPreserveHost On

 

<Proxy *>

        # Auth changes in 2.4 - see http://httpd.apache.org/docs/2.4/upgrading.html#run-time

    Require all granted

</Proxy>

ProxyPass /jira http://10.10.14.247:8080/jira

ProxyPassReverse /jira http://10.10.14.247:8080/jira

<Location /jira>

        # Auth changes in 2.4 - see http://httpd.apache.org/docs/2.4/upgrading.html#run-time

    Require all granted

</Location>

<Proxy *>

        # Auth changes in 2.4 - see http://httpd.apache.org/docs/2.4/upgrading.html#run-time

    Require all granted

</Proxy>

 

ProxyPass /confluence http://10.10.14.247:8090/confluence

ProxyPassReverse /confluence http://10.10.14.247:8090/confluence

<Location /confluence>

        # Auth changes in 2.4 - see http://httpd.apache.org/docs/2.4/upgrading.html#run-time

    Require all granted

</Location>

  

 

        

posted @ 2019-06-28 10:45  星拂晓空  阅读(1135)  评论(0编辑  收藏  举报