JIRA6.3.6 +apache-tomcat-7.0.65 +jdk 1.7.0_60 for CentOS

Source: Internet
Author: User
Tags atlassian jira

File Links: Http://pan.baidu.com/s/1ntTi41V Password: Pgox


#下载tomcat

wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.65/bin/apache-tomcat-7.0.65.tar.gz

TAR-ZXVF apache-tomcat-7.0.65.tar.gz

MV apache-tomcat-7.0.65/usr/local/

cd/usr/local/apache-tomcat-7.0.65/bin/



#安装JDK


Cd/usr/lib

sudo mkdir jdk1.7.0_60

Tar zxvf./jdk-7u60-linux-x64.tar.gz-c/usr/lib/jdk1.7.0_60


3, configuring environment variables

(1) Only valid for current user

Vim ~/.BASHRC

Export java_home=/usr/lib/jvm/jdk1.7.0_60

Export JRE_HOME=${JAVA_HOME}/JRE

Export Classpath=.:${java_home}/lib:${jre_home}/lib

Export Path=${java_home}/bin: $PATH


Save the exit and enter the following command to make it effective

SOURCE ~/.BASHRC


(2) Effective for all users

Vim/etc/profile

Export java_home=/usr/lib/jvm/jdk1.7.0_60

Export JRE_HOME=${JAVA_HOME}/JRE

Export Classpath=.:${java_home}/lib:${jre_home}/lib

Export Path=${java_home}/bin: $PATH


Save the exit and enter the following command to make it effective

Source/etc/profile



Configure the default JDK (this step can be omitted in general)

Some Linux distributions already have default JDK, such as OPENJDK. So to make us

The JDK version you just installed can be the default JDK version, and we'll do the following configuration as well.

Execute the following command:


sudo update-alternatives--install/usr/bin/java java


/usr/lib/jdk1.7.0_60/bin/java 300

sudo update-alternatives--install/usr/bin/javac javac


/usr/lib/jdk1.7.0_60/bin/javac 300


Note: If the above two commands do not find a path problem, just restart the machine and repeat the above two lines


The code is OK.

If you accidentally write the wrong path, remove it with the following command:

sudo update-alternatives--remove java


/usr/lib/jvm/jdk1.7.0_60/bin/java

Java-version

Javac-version

#写一个hello World Test Program, it's not posted here.

VI Test.java

Javac Test.java

Java Test


Cd/usr/local/apache-tomcat-7.0.65/bin

./startup.sh

Iptables-i input-p tcp-m multiport--dports 8080:8081-j ACCEPT

Service Iptables Save

Iptables-l-N

Change Order (which httpd)

MV atlassian-jira-6.3.6-standalone//usr/local/


cd/usr/local/atlassian-jira-6.3.6-standalone/conf/

VI server.xml 8080 change to 8081

lsof-i:8081

Echo $JAVA _home


#配置jira_home

vi/usr/local/atlassian-jira-6.3.6-standalone/atlassian-jira/web-


Inf/classes/jira-application.properties

Jira.home =/usr/lib/jdk1.7.0_60 (Configure Java's home here)

#启动JIRA

/usr/local/atlassian-jira-6.3.6-standalone/bin/start-jira.sh


==============================================================

/usr/local/atlassian-jira-6.3.6-standalone/bin/start-jira.sh

[Email protected]/]#/usr/local/atlassian-jira-6.3.6-standalone/bin/start-


jira.sh

To run JIRA in the foreground, start the server with START-JIRA.SH-FG

Executing as Current user

.....

.... .  Nmmmd. ...

.8MMM. $MMN,.. ~mmmo.

.? MMM.. MMM?.


Ommmmz. ., nmmmn~

. Immmmmm. Nmmmn. . MMMMMN,

, mmmmmm$. 3MD.. Zmmmmmm.

=nmmmmmm,. ., MMMMMMD.

. Mmmmmmmm8mmmmmmm,

. Onmmmmmmmmmmz.

, NMMMMMMM8.

.:,. $MMMMMMM

. Immmm. Nmmmmmd.

.8MMMMM:: Nmmmmn.

. Mmmmmm. mmmmm~.

. Mmmmmn. MMMMM?.


Atlassian JIRA

version:6.3.6

Detecting JVM permgen support ...

PermGen switch is supported. Setting to 384m


If you encounter issues starting or stopping JIRA.


Troubleshooting Guide at


Http://confluence.atlassian.com/display/JIRA/Installation


+troubleshooting+guide



Server startup logs is located in/usr/local/atlassian-jira-6.3.6-


Standalone/logs/catalina.out

Using catalina_base:/usr/local/atlassian-jira-6.3.6-standalone

Using Catalina_home:/usr/local/atlassian-jira-6.3.6-standalone

Using Catalina_tmpdir:/usr/local/atlassian-jira-6.3.6-standalone/temp

Using Jre_home:/usr/lib/jdk1.7.0_60/jre

Using CLASSPATH:/usr/local/atlassian-jira-6.3.6-


standalone/bin/bootstrap.jar:/usr/local/atlassian-jira-6.3.6-


Standalone/bin/tomcat-juli.jar

Using Catalina_pid:/usr/local/atlassian-jira-6.3.6-


Standalone/work/catalina.pid

Tomcat started.

#启动成功

====================================================================

Yum-y Install Mysql-server

#设开机启动

Chkconfig mysqld on

#启动mysql服务

Service mysqld Start

#设置mysql的root用户设置密码

Mysql-u Root

#查看显示用户密码

Select User,host,password from Mysql.user;


Set password for [email protected]=password (' root ');


#删除空密码

Delete from mysql.user where user= ';


#修改编码utf8

Copy:/usr/share/doc/mysql-server-5.1.73/my-large.cnf content to


/etc/my.cnf

Vi/etc/my.cnf

Add a line under #在 [client]:

Default-character-set=utf8

Add a line under #在 [mysqld]:

Default-character-set=utf8

#重启MySQL:

Service mysqld Restart

Mysql-u root-p

Show variables like '%character% ';

#如就对了

+--------------------------+----------------------------+

| variable_name | Value |

+--------------------------+----------------------------+

| character_set_client | UTF8 |

| character_set_connection | UTF8 |

| Character_set_database | UTF8 |

| Character_set_filesystem | binary |

| Character_set_results | UTF8 |

| Character_set_server | UTF8 |

| Character_set_system | UTF8 |

| Character_sets_dir | /usr/share/mysql/charsets/|

+--------------------------+----------------------------+

8 rows in Set (0.00 sec)

#创建数据库

CREATE DATABASE jiradb CHARACTER SET UTF8 COLLATE utf8_bin;

#创建mysql Jira Users

Insert into Mysql.user (Host,user,password) VALUES ("localhost", "Jirauser", Password ("123.com"));


#授权

Grant Select,insert,update,delete on redmine1.* to [e-mail protected] "%" identified by "Jira";


#授权

Grant Select,insert,update,delete on * * to [e-mail protected] "%" identified by "123.com";


#汉化

Jira-language-std-cn.jar Chinese package replaced with Jira-6.3.3-language-pack-zh_cn.jar

Copy the Chinese package and the JDBC driver package Mysql-connector-java-5.1.25-bin.jar to the/atlassian-jira-6.3.6-standalone/atlassian-jira/web-inf/ Lib below, then


Restart Jira Service


#发现没有mysql配置服务 cannot return to the previous step

Remove/usr/lib/jdk1.7.0_60/dbconfig.xml reboot Jira reconfigure


========================================================================

#破解


Copy atlassian-extras-2.2.2 to/usr/local/atlassian-jira-6.3.6-


standalone/atlassian-jira/web-inf/lib/under



========================================================================


Description=jira:commercial,


Creationdate= your installation date, format (YYYY-MM-DD),


Jira. Licenseedition=enterprise,


Evaluation=false,


Jira. Licensetypename=commercial,


Jira.active=true,


licenseversion=2,


Maintenanceexpirydate= you want to set the expiration date as: 2099-12-31,


Organisation=joiandjoin,


Sen= you apply to the Sen note there is no prefix lid,


Serverid= you applied to the ServerID,


Jira. Numberofusers=-1,


Licenseid=lid you apply to the Sen, note lid prefix do not throw away,


Licenseexpirydate= you want to set the expiration date as: 2099-12-31,


Purchasedate= your installation date, format (YYYY-MM-DD)


========================================================================


Description=jira:commercial,


Creationdate=2015-12-07,


Jira. Licenseedition=enterprise,


Evaluation=false,


Jira. Licensetypename=commercial,


Jira.active=true,


licenseversion=2,


MAINTENANCEEXPIRYDATE=2099-12-31,


ORGANISATION=XIAOCZ,


sen=sen-l6925973,


SERVERID=BTMV-NXRZ-EX5U-7DQE,


Jira. Numberofusers=-1,


Licenseid=aaabbw0odaopenptkftlxdaqhd/zkwi


+r9kwy66fpkxthghvtf0p4kuso0a6suwvup/edissyj4md


hpofhoyqzu0ticweojy4a


+fzzknwpik7q1icf2ntu3tl5p3ot89+1snphnmpcebwqkjtq9y9jn+w


Zxbpi2a68jw4dpqr/a0rzjs5vmuc0xobnnjah/s5bgfxbxabmkcqzzqu2jrtd3bezafzve


+anyzr


Jdywnedm64g9d1apj4texxolok7cbzbjrbngkygwwtg+rbvjpbkhikar0adytt0xzfv7r5y


+qqzv


Kwziovk5fqswq03yrvdkn/ekz3s4sxlcprswprddpd/at


+p1nzdmc0cfqcm9+0llhvnnzqnstwur


O3EK+2GVGIUCTETS4Q3KHIGRNSY64HXYB/D8BM=X02DH,


LICENSEEXPIRYDATE=2099-12-31,


purchasedate=2015-12-07


========================================================================







JIRA6.3.6 +apache-tomcat-7.0.65 +jdk 1.7.0_60 for CentOS

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.