CentOS 6.5上安装JIRA 6.3.6的详细步骤


主机名角色IP地址
server136.contoso.comJIRA/JAVA/MySQL192.168.49.136,
 

[root@server136 ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
,
  
  
  
[root@server136 ~]# getenforce
Disabled
,
  
  
  
[root@server136 ~]# grep -i hostname /etc/sysconfig/network
HOSTNAME=server136.contoso.com
,
  
  
  
[root@server136 ~]# crontab -l
0 * * * * /usr/sbin/ntpdate   210.72.145.44 64.147.116.229 time.nist.gov
,
  
  
  
[root@server136 ~]# ls /etc/yum.repos.d/
bak  CentOS-Base.repo
,
  
  
  
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng lib 
png-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel gl 
ib2 glib-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-d 
evel krb krb5-devel libidn libidn-devel openssl openssl-devel make gcc-c++ cmake bison-devel ncurses-devel
,
  
  
  
[root@server136 ~]# mkdir /opt/tools && cd /opt/tools
[root@server136 tools]# ll
total 388440
-rw-r--r-- 1 root root 244240844 Oct  9 10:09 atlassian-jira-6.3.6.tar.gz
-rw-r--r-- 1 root root 153512879 Oct  9 11:11 jdk-7u79-linux-x64.gz
,
  
  
  
[root@server136 tools]# tar -zxf jdk-7u79-linux-x64.gz 
[root@server136 tools]# ll
total 388444
-rw-r--r-- 1 root root 244240844 Oct  9 10:09 atlassian-jira-6.3.6.tar.gz
drwxr-xr-x 8 uucp  143      4096 Apr 11  2015 jdk1.7.0_79
-rw-r--r-- 1 root root 153512879 Oct  9 11:11 jdk-7u79-linux-x64.gz
,
  
  
  
[root@server136 tools]# cp -r jdk1.7.0_79 /usr/local/jdk
[root@server136 tools]# chown -R root:root /usr/local/jdk/
,
  
  
  
[root@server136 tools]# echo '#Add java env below' >>/etc/profile
[root@server136 tools]# echo 'export JAVA_HOME=/usr/local/jdk' >>/etc/profile
[root@server136 tools]# echo 'export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOME/bin:$PATH' 
 >>/etc/profile
[root@server136 tools]# echo 'export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib: 
$JAVA_HOME/lib/tools.jar' >>/etc/profile
[root@server136 tools]# echo 'export TOMCAT_HOME=/usr/local/tomcat' >>/etc/profile
[root@server136 tools]# echo '#java env ended' >>/etc/profile
[root@server136 tools]# source /etc/profile
[root@server136 ~]# tail -6 /etc/profile
#Add java env below
export JAVA_HOME=/usr/local/jdk
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar
export TOMCAT_HOME=/usr/local/tomcat
#java env ended
,
  
  
  
[root@server136 tools]# echo $JAVA_HOME
/usr/local/jdk
[root@server136 ~]# java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
[root@server136 ~]# jps -lvm
2099 sun.tools.jps.Jps -lvm -Denv.class.path=:/usr/local/jdk/lib:/usr/local/jdk/jre/lib:/usr/local/jdk/lib/tools.jar -Dapplication.home=/usr/local/jdk -Xms8m
,
  
  
  
[root@server136 local]# cd /opt/tools/
[root@server136 tools]# wget wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.16. 
tar.gz
,
  
  
  
[root@server136 tools]# tar -zxf mysql-5.6.16.tar.gz
[root@server136 tools]# cd mysql-5.6.16
[root@server136 mysql-5.6.16]# cmake \
>  -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
>  -DMYSQL_DATADIR=/usr/local/mysql/data \
>  -DSYSCONFDIR=/etc \
>  -DWITH_MYISAM_STORAGE_ENGINE=1 \
>  -DWITH_INNOBASE_STORAGE_ENGINE=1 \
>  -DWITH_MEMORY_STORAGE_ENGINE=1 \
>  -DWITH_READLINE=1 \
>  -DMYSQL_UNIX_ADDR=/var/lib/mysql/mysql.sock \
>  -DMYSQL_TCP_PORT=3306 \
>  -DENABLED_LOCAL_INFILE=1 \
>  -DWITH_PARTITION_STORAGE_ENGINE=1 \
>  -DEXTRA_CHARSETS=all \
>  -DDEFAULT_CHARSET=utf8 \
>  -DDEFAULT_COLLATION=utf8_general_ci
[root@server136 mysql-5.6.16]# make && make install
,
  
  
  
[root@server136 mysql-5.6.16]# groupadd mysql
[root@server136 mysql-5.6.16]# useradd -g mysql mysql
[root@server136 mysql-5.6.16]# chown -R mysql:mysql /usr/local/mysql
,
  
  
  
[root@server136 mysql-5.6.16]# /usr/local/mysql/scripts/mysql_install_db --basedir=/usr/loca 
l/mysql --datadir=/usr/local/mysql/data --user=mysql
[root@server136 mysql-5.6.16]# mv /etc/my.cnf /etc/my.cnf.bak
,
  
  
  
[root@server136 mysql-5.6.16]# cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysqld
,
  
  
  
[root@server136 mysql-5.6.16]# chmod +x /etc/init.d/mysqld
[root@server136 mysql-5.6.16]# /etc/init.d/mysqld start
Starting MySQL.... SUCCESS!
,
  
  
  
[root@server136 mysql-5.6.16]# lsof -i :3306
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
mysqld  19552 mysql   10u  IPv6  80361      0t0  TCP *:mysql (LISTEN)
[root@server136 mysql-5.6.16]# ps -ef|grep mysql
root      19444      1  0 13:21 pts/1    00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/server136.contoso.com.pid
mysql     19552  19444  3 13:21 pts/1    00:00:01 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/server136.contoso.com.err --pid-file=/usr/local/mysql/data/server136.contoso.com.pid
root      19584    956  0 13:22 pts/1    00:00:00 grep mysql
,
  
  
  
[root@server136 mysql-5.6.16]# echo 'export PATH=/usr/local/mysql/bin:$PATH' >>/etc/profile
[root@server136 mysql-5.6.16]# source /etc/profile
,
  
  
  
[root@server136 mysql-5.6.16]# mysqladmin -u root password "123456"
,
  
  
  
[root@server136 mysql-5.6.16]# mysql -uroot -p123456
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.16 Source distribution
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.03 sec)
mysql> quit
Bye
,
  
  
  
[root@server136 tools]# tar zxf atlassian-jira-6.3.6.tar.gz 
[root@server136 tools]# ll
total 388448
drwxr-xr-x 12  500 1001      4096 Sep 16  2014 atlassian-jira-6.3.6-standalone
-rw-r--r--  1 root root 244240844 Oct  9 10:09 atlassian-jira-6.3.6.tar.gz
drwxr-xr-x  8 uucp  143      4096 Apr 11  2015 jdk1.7.0_79
-rw-r--r--  1 root root 153512879 Oct  9 11:11 jdk-7u79-linux-x64.gz
,
  
  
  
[root@server136 tools]# mv atlassian-jira-6.3.6-standalone /usr/local/jira
[root@server136 tools]# cd /usr/local/
[root@server136 local]# chown -R root:root /usr/local/jdk
,
  
  
  
[root@server136 tools]# mkdir /usr/local/jira_home
[root@server136 tools]# cp /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.pr
roperties /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.properties.bak
[root@server136 tools]# vi /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.pr
roperties 
[root@server136 tools]# diff /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application 
.properties.bak /usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.properties 
2c2
< jira.home = 
---
> jira.home = /usr/local/jira_home 
# jira-application.properties文件默认没有指定jira的home目录这里将上面创建的jira home目录路径添加进来
,
  
  
  
[root@server136 tools]# rz -y
rz waiting to receive.**B0100000023be50
?
[root@server136 tools]# ll
total 421336
-rw-r--r--  1 root root  244240844 Oct  9 10:09 atlassian-jira-6.3.6.tar.gz
drwxr-xr-x  8 uucp   143      4096 Apr 11  2015 jdk1.7.0_79
-rw-r--r--  1 root root  153512879 Oct  9 11:11 jdk-7u79-linux-x64.gz
drwxr-xr-x 35 7161 wheel      4096 Oct  9 13:01 mysql-5.6.16
-rw-r--r--  1 root root   32821451 Jan 15  2014 mysql-5.6.16.tar.gz
-rw-r--r--  1 root root     848401 Oct  9 13:34 mysql-connector-java-5.1.25-bin.jar
[root@server136 tools]# cp /opt/tools/mysql-connector-java-5.1.25-bin.jar /usr/local/jira/at 
lassian-jira/WEB-INF/lib/
[root@server136 tools]# ll /usr/local/jira/atlassian-jira/WEB-INF/lib/mysql*
-rw-r--r-- 1 root root 848401 Oct  9 13:41 /usr/local/jira/atlassian-jira/WEB-INF/lib/mysql-connector-java-5.1.25-bin.jar
,
  
  
  
[root@server136 tools]# mysql -uroot -p123456
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.16 Source distribution
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database jira character set utf8;
Query OK, 1 row affected (0.07 sec)
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| jira               |
| mysql              |
| performance_schema |
| test               |
+--------------------+
5 rows in set (0.05 sec)
mysql> show create database jira;
+----------+---------------------------------------------------------------+
| Database | Create Database                                               |
+----------+---------------------------------------------------------------+
| jira     | CREATE DATABASE `jira` /*!40100 DEFAULT CHARACTER SET utf8 */ |
+----------+---------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> quit
Bye
,
  
  
  
[root@server136 tools]# lsof -i :8080  #先查看8080端口是否并占用如果被占用就需要修改jira的默认端口号
[root@server136 tools]# cd /usr/local/jira/bin/
[root@server136 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, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide
Server startup logs are located in /usr/local/jira/logs/catalina.out
Using CATALINA_BASE:   /usr/local/jira
Using CATALINA_HOME:   /usr/local/jira
Using CATALINA_TMPDIR: /usr/local/jira/temp
Using JRE_HOME:        /usr/local/jdk
Using CLASSPATH:       /usr/local/jira/bin/bootstrap.jar:/usr/local/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /usr/local/jira/work/catalina.pid
Tomcat started.
,
  
  
  
[root@server136 bin]# lsof -i :8080
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    19666 root   54u  IPv6  81233      0t0  TCP *:webcache (LISTEN)
,
  
  
  
[root@server136 lib]# mv atlassian-extras-2.2.2.jar atlassian-extras-2.2.2.jar.backup
# 备份原来的jar文件
[root@server136 lib]# rz -y
rz waiting to receive.**B0100000023be50

# 上传下载的破解jar文件
[root@server136 lib]# ll atlassian-extras*
-rw-r--r-- 1 root root 146477 Oct  9 22:47 atlassian-extras-2.2.2.jar
-rw-r--r-- 1 root root 146176 Oct  9 15:49 atlassian-extras-2.2.2.jar.backup
# 查看jar文件
,
  
  
  
[root@server136 lib]# /usr/local/jira/bin/stop-jira.sh 
[root@server136 lib]# /usr/local/jira/bin/start-jira.sh 
# 重启jira


免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空