1、设置系统环境变量JAVA_HOME,如在/etc/profile里编辑设置 JAVA_HOME=/usr/java/jdk1.7.0_67
[root@iZxuqoyugv1ofvZ ~]# vim /etc/profile
#java
JAVA_HOME=/usr/local/jdk1.8.0_171
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
2、解压到你要的安装位置,这个目录称为:<FishEye home directory>。(注意这个目录完整路径不能有空格)
3、/etc/profile 设置此环境变量,设置Fisheye存储数据目录位置(即用户数据目录)的环境变量“FISHEYE_INST”,这个目录称为:<FishEye instance directories>。(注意这个目录不能在<FishEye home directory>里。)
最终如:
export FISHEYE_INST="/var/atlassian/application-data/fecru"
export FISHEYE_HOME="/opt/atlassian/fecru"(一般不要)
[root@iZxuqoyugv1ofvZ ~]# vim /etc/profile
export FISHEYE_INST="/data/atlassian/application-data/fecru"
export FISHEYE_HOME="/data/atlassian/fecru"
[root@iZxuqoyugv1ofvZ ~]# source /etc/profile
4、建立mkdir /var/atlassian/application-data/fecru文件夹,移动<FishEye home directory>目录下的config.xml文件到FISHEYE_INST目录中
5、启动与停止(Fisheye访问端口:8060)
4.1、启动,用DOS命令进入Fisheye安装目录的Bin目录,如<FishEye home directory>\bin,运行start.sh
4.2、停止,用DOS命令进入Fisheye安装目录的Bin目录,如<FishEye home directory>\bin,运行stop.sh
6、可选(FishEye Linux系统安装成服务自启动)
6.1、建立个文件vi /etc/init.d/fecru,并赋予chmod a+x权限。内容如下:(注意对应的安装目录和数据目录改成实际的路径)
脚本如下:
#!/bin/bash
# FeCru startup script
#chkconfig: 2345 80 05
#description: FeCru
# Based on script at http://www.bifrost.org/problems.html
RUN_AS_USER=root
CATALINA_HOME=/opt/atlassian/fecru
start() {
echo "Starting FeCru: "
if [ "x$USER" != "x$RUN_AS_USER" ]; then
su - $RUN_AS_USER -c "$CATALINA_HOME/bin/start.sh"
else
$CATALINA_HOME/bin/startup.sh
fi
echo "done."
}
stop() {
echo "Shutting down FeCru: "
if [ "x$USER" != "x$RUN_AS_USER" ]; then
su - $RUN_AS_USER -c "$CATALINA_HOME/bin/stop.sh"
else
$CATALINA_HOME/bin/shutdown.sh
fi
echo "done."
}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo "Usage: $0 {start|stop}"
esac
exit 0
6.2、查看是否会开机启动,如果不会,如Red Hat或者Centos系统还要先cd /etc/init.d/下,然后执行
sudo /sbin/chkconfig --add fecru
sudo /sbin/chkconfig fecru on