灯火阑珊处,转角消失的背影
分类: LINUX
2015-11-11 10:55:04
安装环境:
CentOS_6.5_x86_64
所需安装包:
jdk-7u79-linux-x64.gz
atlassian-jira-5.2.4.tar.gz
mysql-connector-java-5.1.37-bin.jar
JIRA-5.0-language-pack-zh_CN.jar
atlassian-extras-2.2.2.jar
root执行
安装过程:
以上所有包存放在/opt/soft
1、配置JDK
#cd /opt/soft
#tar -xvf jdk-7u79-linux-x64.gz -C /usr/local/
#vim ~/.bashrc
# tail -4 ~/.bashrc
export JAVA_HOME=/usr/local/jdk1.7.0_79
export JAVA_BIN=/usr/local/jdk1.7.0_79/bin
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
#source ~/.bashrc
#java -version
注意:如果不是安装的1.7.0-79的版本,需要卸载原来rpm安装的jDK
rpm -e ` rpm -qa | grep java ` --nodeps
2、安装配置MySQL数据库
#yum install mysql-server -y
#/etc/init.d/mysqld start
#/usr/bin/mysql_secure_installation
#mysql -uroot -p
> create database jira DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
> grant all privileges on jira.* to jira@’localhost’ identified by ‘jira123′;
> grant all privileges on jira.* to jira@’127.0.0.1’ identified by ‘jira123’;
> fulsh privileges;
#mysql -ujira -pjira123
3、安装jira
#pwd
/opt/soft
#tar -xvf atlassian-jira-5.2.4.tar.gz -C /usr/local/
#mv /usr/local/atlassian-jira-5.2.4-standalone /usr/local/jira
#mkdir /usr/local/jira/jira_home
#cd /usr/local/jira
#vim atlassian-jira/WEB-INF/classes/jira-application.properties
#cat atlassian-jira/WEB-INF/classes/jira-application.properties
jira.home = /usr/local/jira/jira_home
添加MySQL连接Java的驱动。
#cp /opt/soft/mysql-connector-java-5.1.37-bin.jar lib/
#cd bin/
#./startup.sh
#ss -tanlp
4、网页安装配置jira
网页访问 IP地址:8080
5、汉化
登陆网页管理界面,右上角点击Administartor
左上角Plugins--->Manage Add-on---> upload plugin
选择JIRA-5.0-language-pack-zh_CN.jar包
上传成功完成后,找到system-->General Configuration配置语言环境为中文。
至此,jira汉化安装完成,试用为30天。
6、After reading it, you understand.
#./shutdown.sh
#cp /opt/soft/atlassian-extras-2.2.2.jar /usr/local/jira/atlassian-jira/WEB-INFO/lib/
先查看/usr/local/jira/bin/下是否有key文件,如果有编辑:
-- listing properties --
greenhopper.LicenseEdition=ENTERPRISE
jira.NumberOfUsers=-1
PurchaseDate=2015-11-10
LicenseTypeName=COMMERCIAL
LicenseExpiryDate=2025-12-10 #change Date,define by yourself
ContactEMail=xxxxxxx@xxxxx.xxxxx
ServerID=xxxx-xxxx-xxxx-xxxx
jira.product.jira-software.active=true
greenhopper.LicenseTypeName=COMMERCIAL
jira.LicenseEdition=ENTERPRISE
MaintenanceExpiryDate=2025-12-10 #change Date,define by yourself
LicenseID=LIDSEN-L1111111
jira.product.jira-software.NumberOfUsers=-1
SEN=SEN-L1111111
Organisation=daniel1
jira.product.jira-software.Starter=false
CreationDate=2015-11-10
licenseVersion=2
greenhopper.enterprise=true
Description=JIRA Software (Server): Evaluation
jira.active=true
jira.LicenseTypeName=COMMERCIAL
greenhopper.active=true
Evaluation=false #change "true" to "false"
然后启动服务:
#./start.sh
如果没有,先启动服务,登陆网页管理页面,然后等待,查看目录下是否有生成key文件。有了以后停止服务,修改文件,重启服务。
登陆查看授权。是否为自己填写的期限。