CollabNet teamforge®是业界唯一的开放性和可扩展性的分布式团队协作软件交付平台。它使组织能够通过一个集中的、安全的、基于网络的系统,通过连接团队、流程、知识产权和工具来改进协作、敏捷和管理。
配置teamforge安装库
联系客服人员获取到离线版CTF-Disconnected-media-8.0.0.1-337.el6.x86_64.rpm
rpm -ivh CTF-Disconnected-media-8.0.0.1-337.el6.x86_64.rpm
cd /etc/yum.repos.d
vi collabnet-8.0.0.0.repo
[CollabNet]
name=collabnet
baseurl=file:///opt/collabnet/CTF-Disconnected-media-8.0.0.0/8.0.0.0/redhat/6Server/$basearch
gpgkey=file:///opt/collabnet/RPM-GPG-KEY-collabnet
enabled=1
gpgcheck=0
安装httpd和apr
yum install httpd
yum install apr
安装TeamForge
yum install teamforge
yum install teamforge-git
#安装 Black Duck Code Sight
yum install teamforge-codesearch
修改teamforge配置
vi /opt/collabnet/teamforge-installer/8.0.0.0/conf/site-options.conf
#根据注释修改HOST_localhost选项
#修改自己DOMAIN_localhost域名
#如果通过离线包CTF-Disconnected-media安装
HELP_AVAILABILITY=local
#确保SELINUX_SETUP为False
SELINUX_SETUP=false
查看 SELinux状态及关闭SELinux
/usr/sbin/sestatus -v #如果SELinux status参数为enabled即为开启状态
getenforce #也可以用这个命令检查
#临时关闭(不用重启机器):
setenforce 0 #设置SELinux 成为permissive模式
#setenforce 1 设置SELinux 成为enforcing模式
#修改配置文件需要重启机器
vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可
安装运行环境
cd /opt/collabnet/teamforge-installer/8.0.0.0
./install.sh -r -I -V
#查看安装信息
/opt/collabnet/teamforge/runtime/scripts/teamforgeSetupInfo.py
初始化网站数据
./bootstrap-data.sh
启动TeamForge.
/etc/init.d/collabnet start
Starting "localhost"
pgsql (database) (localhost:5432) (ext) running
reports-pgsql (datamart) (localhost:5432) (ext) running
apache (subversion app) (localhost:80) (ext) running
tomcat (subversion app cvs) (localhost:7080) OK
jboss (app) (localhost:8080)
OK
gerrit (gerrit) (localhost:29418) not configured
binary (binary) (localhost:8500) OK
etl (etl) (localhost:7010) OK
james (app) (localhost:25) OK
rmisearch (indexer) (localhost:2099) OK
根据conf/site-options.conf
生成配置文件
/opt/collabnet/teamforge/runtime/scripts/post-install.py
检查防火墙开放的端口
vi /etc/sysconfig/iptables
#添加80端口访问权限
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
#添加git的ssh端口29418访问权限,
-A INPUT -m state --state NEW -m tcp -p tcp --dport 29418 -j ACCEPT
service iptables restart #重启防火墙
访问网站
username : admin
password:admin
安装过程中遇到的问题
1.python包无法导入
from xml import etree
ImportError: No module named lxml
#检查lxml是否安装
yum install python-lxml
#找到lxml安装位置
find / -name lxml
/usr/lib64/python2.6/site-packages/lxml
#检查python位置
whereis python
/usr/bin/python /usr/bin/python2.6
#python --version发现版本为2.7,lxml安装在2.6中
mv /usr/bin/python /usr/bin/python2.7
cp /usr/bin/python2.6 /usr/bin/python
2.卸载时删除了整个/opt/collabnet目录
#1#复制/opt/collabnet/目录下,teamforge,teamforge-installer,gerrit,integrations,ruby,yaml目录
#2#只保留/opt/collabnet/teamforge目录下add-ons,dist,etc,WEB-INF目录
#3#修改gerrit目录用户以及用户组
chown -R gerrit:gerrit gerrit
rm -rf gerrit/logs
#4#删除postgresql数据库和用户
su - postgres && psql
#查看所有用户\du, 查看所有数据库\l
DROP DATABASE #iafdb, reviewdb
DROP USER #gerrit
#5#修改libruby.so的软连接
cd /opt/collab/ruby/lib
#删除libruby.so libruby.so.2.1
ln -s libruby.so.2.1.0 libruby.so.2.1
#6#添加libruby.so文件到系统
vi /etc/ld.so.conf
/sbin/ldconfig
#7#修改yaml.so的软连接
cd /opt/collabnet/yaml
删除libyaml-0.so.2, libyaml.so文件,并重新软连接