In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
JIRA is a project and transaction tracking tool produced by Atlassian Company, which is widely used in defect tracking, customer service, requirements collection, process approval, task tracking, project tracking and agile management and other work fields.
-- extracted from Baidu Encyclopedia
Environment description
Hostname role IP address server136.contoso.comJIRA/JAVA/MySQL192.168.49.136
First, prepare the environment
Turn off the firewall
[root@server136] # iptables-L-nChain 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
Disable selinux:
[root@server136 ~] # getenforceDisabled
Modify hostname
[root@server136] # grep-I hostname / etc/sysconfig/networkHOSTNAME=server136.contoso.com
Add a time synchronization timing task
[root@server136] # crontab-l0 * / usr/sbin/ntpdate 210.72.145.44 64.147.116.229 time.nist.gov
Update yum Feed
[root@server136 ~] # ls / etc/yum.repos.d/bak CentOS-Base.repo
Install the necessary dependency packages
Yum-y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-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
Second, install jdk
Download jdk and jira here will not say much about download resources there should be a lot of download completed after uploading to the server.
[root@server136] # mkdir / opt/tools & & cd / opt/tools [root@server136 tools] # lltotal 388440 Ruki Ruki-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
Extract the jdk installation package
[root@server136 tools] # tar-zxf jdk-7u79-linux-x64.gz [root@server136 tools] # lltotal 388444 jdk1.7.0_79-rw-r--r-- 1 root root 244240844 Oct 9 10:09 atlassian-jira-6.3.6.tar.gzdrwxr-xr-x 8 uucp 4096 Apr 11 2015 jdk1.7.0_79-rw-r--r-- 1 root root 153512879 Oct 9 11:11 jdk-7u79-linux-x64.gz
Copy to the installation directory
[root@server136 tools] # cp-r jdk1.7.0_79 / usr/local/jdk [root@server136 tools] # chown-R root:root / usr/local/jdk/
Add Java environment variable
[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 belowexport JAVA_HOME=/usr/local/jdkexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$HOME/bin:$PATHexport CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib : $JAVA_HOME/lib/tools.jarexport TOMCAT_HOME=/usr/local/tomcat#java env ended
Test whether the environment variable is valid or not
[root@server136 tools] # echo $JAVA_HOME/usr/local/ JDK [root @ server136 ~] # java-versionjava 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-lvm2099 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
Third, install MySQL
Download MySQL
[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
Compile and install MySQL
[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
Add MySQL users and authorize
[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
Initialize 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
Generate MySQL to start and stop the service
[root@server136 mysql-5.6.16] # cp / usr/local/mysql/support-files/mysql.server / etc/init.d/mysqld
Add MySQL to the boot entry
[root@server136 mysql-5.6.16] # chmod + x / etc/init.d/mysqld [root@server136 mysql-5.6.16] # / etc/init.d/mysqld startStarting MySQL.... SUCCESS!
View MySQL listening ports and processes
[root@server136 mysql-5.6.16] # lsof-I: 3306COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEmysqld 19552 mysql 10u IPv6 80361 0t0 TCP *: mysql (LISTEN) [root@server136 mysql-5.6.16] # ps-ef | grep mysqlroot 19444 10 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.pidmysql 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.pidroot 19584 956 0 13:22 pts/1 00:00:00 grep mysql
Add the MySQL installation path to the system environment variable
[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
Set the password for the root user of MySQL
[root@server136 mysql-5.6.16] # mysqladmin-u root password "123456"
Log in to MySQL for testing
[root@server136 mysql-5.6.16] # mysql- uroot-p123456Warning: 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 2Server version: 5.6.16 Source distributionCopyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.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 > quitBye
Fourth, install Jira 6.3.6
1. Download and upload the jira installation package for decompression
[root@server136 tools] # tar zxf atlassian-jira-6.3.6.tar.gz [root@server136 tools] # lltotal 388448drwxr-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.gzdrwxr-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
2. Copy the unzipped jira directory to the installation directory and authorize
[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
3. Create a home directory for jira to store web page files
[root@server136 tools] # mkdir / usr/local/jira_ home [root @ server136 tools] # cp / usr/local/jira/atlassian-jira/WEB-INF/classes/jira-application.prroperties / 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.prroperties [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 = --->The jira.home = / usr/local/jira_home # jira-application.properties file does not specify the home directory of jira by default. Here, add the jira home directory path created above.
4. Upload mysql-connector-java-5.1.25-bin.jar to enable jira to connect to mysql database
[root@server136 tools] # rz-yrz waiting to receive.**B0100000023be50? [root@server136 tools] # lltotal 421336 atlassian-jira-6.3.6.tar.gzdrwxr-xr-x-1 root root 244240844 Oct 9 10:09 atlassian-jira-6.3.6.tar.gzdrwxr-xr-x 8 uucp 4096 Apr 11 2015 jdk1.7.0_79-rw-r--r-- 1 root root 153512879 Oct 9 11:11 jdk-7u79-linux-x64.gzdrwxr-xr-x 357161 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
5. Create a mysql database for storing jira data.
[root@server136 tools] # mysql-uroot-p123456Warning: 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 3Server version: 5.6.16 Source distributionCopyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.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.05sec) 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 > quitBye
6. Start jira
[root@server136 tools] # lsof-I: 8080 # first check whether port 8080 is occupied and if it is occupied, you need to modify the default port number of 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-fgexecuting 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 384mIf you encounter issues starting or stopping JIRA Please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+GuideServer startup logs are located in/ usr/local/jira/logs/catalina.outUsing CATALINA_BASE: / usr/local/jiraUsing CATALINA_HOME: / usr/local/jiraUsing CATALINA_TMPDIR: / usr/local/jira/tempUsing JRE_HOME: / usr/local/jdkUsing CLASSPATH: / usr/local/jira/bin/bootstrap.jar:/usr/local/jira/bin/tomcat-juli .jarUsing CATALINA_PID: / usr/local/jira/work/catalina.pidTomcat started.
You can see here that tomcat started successfully. Note that if your centos 6 memory does not exceed 512m, then you need to modify the default configuration of tomcat. In the experiment, I have tried many times that a virtual machine with 512m memory has errors in jira connection mysql and data table creation, but after increasing the virtual machine memory to 1G without modifying any configuration files, it passes smoothly without modifying any configuration files, so if your machine memory is too small. Turn up the memory first, otherwise it is troublesome to report all kinds of errors in jira because of this problem.
[root@server136 bin] # lsof-I: 8080COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEjava 19666 root 54U IPv6 81233 0t0 TCP *: webcache (LISTEN)
5. Web page configuration of Jira
After jira starts, open a browser and type http://192.168.49.136:8080/ and you will see the following interface
In the Jira welcome interface, the default Language is not in Chinese, so the language is used in English. The following is the database connection that needs to choose whether to build a built-in database evaluation demonstration version or a self-built database. Of course, I choose "My Own Database" here.
After choosing the self-built database, you need to fill in the relevant information of the database. I will supplement the relevant database information here. Username and password is required for users who have administrative rights to the jira database because it is a test environment where I do not specifically create jira users and authorize the production environment. After filling in the database information, do not click "Next", first click "Test Connection" to test the database connection if the connection is successful and then proceed to the next step. If the connection is not successful, check whether the jdbc driver package of mysql has been uploaded and copied to the relevant directory, and pay attention to whether the version matches. There are many tutorials available on the Internet.
The database connection test is successful and you can proceed to the next step.
Enter the title of the application, that is, the content displayed in the title in the html can be set according to the actual needs. The following mode needs to choose whether the user registers independently or the administrator creates the user. Generally, the administrator is selected to create the user. The following Base URL is actually automatically generated if you have multiple network cards or IP addresses that may need to be modified here.
This is the setting after I have modified it.
Here you need to choose the purpose of installing jira there are three options 1 project tracking 2 software development 3IT help desk. You can choose according to your needs, of course, in general, most companies use software development, which is the second option.
And then I'll go to an interface to fill in the authorization code, and there are three options: 1 I don't have an account, jira, account 2, I have an account, but I don't have an authorization code 3. I have an authorization code. If there is no account, you can choose the first one to create. If you have an account, select the second. If you have already purchased the authorization code, select the third.
I have a jira account because I have used jira before, of course I don't have an authorization code, but there are many on the Internet, so I choose the third item here.
Attach the authorization code copied on the Internet
AAABBw0ODAoPeNptkFtLxDAQhd/zKwI+R9Kwy66FPKxthGhvtF0p4kuso0a6sUwvuP/edissyj4MD
HPOfHOYqzu0tICWeoJy4a+FzzkNwpIK7q1ICF2Ntu3tl5P3Ot89+1SNphnMPCEBwqkJTQ9y9jN+w
ZxBPi2a68jW4DpQr/a0rZJS5VmuC0XOBNnjAH/s5bGFxBxABmkcqzzQu2jRTd3bEZaFZvE+AnYzR
JDYWNeDM64G9d1aPJ4TeXxOlOK7cbZbjrbNgkyGwwtg+rbvJpBkHikAR0Adytt0XzFV7R5Y+qQzV
KWZIoVK5FQsWq03YrvdkN/Ekz3S4SXlcpRswPrDdPD/aT+P1nzDMC0CFQCM9+0LlHVNnZQnSTwuR
O3eK+2gVgIUCteTs4Q3khIgrnsY64hxYB/d8bM=X02dh
Then the setting of the administrator account is mainly to supplement some personal information.
Set email notification if you already have an email account, skip this step if you don't have one. Because it's a test, I'll skip it here. If you want to configure it later, you can also set it in the system management options of jira.
Because there is no authorization code in my account registration information, I just found an authorization code casually on the Internet, so I am prompted to update the authorization code here, but it doesn't matter that the configuration of jira has been completed.
VI. Sinicization of Jira
Logging in again after configuring jira is such a starting interface.
Click the screw button in the upper right corner and select "Add-ons" from the drop-down menu.
Click "Manage add-ons" on the left, then click "Upload add-on" on the right and upload the Chinese package. Similarly, we need to pay attention to the version here because the version of jira is 6.3.3, so the Chinese package I use is JIRA-6.3.3-language-pack-zh_CN.jar, which can be downloaded on the official website.
After uploading, jira is automatically installed and the installation progress will be displayed.
The installation completed shows that the Chinese language pack has been installed successfully.
After installing the add-in, you also need to make language changes in the system. Also click the screw button in the upper right corner and select "System" in the drop-down menu.
Then select the "Edit Settings" in the upper right corner as shown above.
Then select the Chinese last save settings in the Default language option under "Internationalization".
After the configuration is completed, the language of the jira interface will be changed directly to Chinese internationalization without restarting the language, as shown in the figure above.
VII. Jira's authorization to crack
1. Replacement of jar cracked package
To crack the authorization of jira, you need to download a cracked jar file called atlassian-extras-2.2.2.jar. You can search and download it here without promoting a link.
[root@server136 lib] # mv atlassian-extras-2.2.2.jar atlassian-extras-2.2.2.jar.backup# backup original jar file [root@server136 lib] # rz-yrz waiting to receive.**B0100000023be50# uploaded and downloaded cracked jar file [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# view jar file
2. Restart jira
[root@server136 lib] # / usr/local/jira/bin/stop-jira.sh [root@server136 lib] # / usr/local/jira/bin/start-jira.sh # restart jira
3. Configure in the web page
After jira restarts, enter jira's system management interface again. At this time, the user limit is unlimited, but the authorization type is expired. Here, it is thought that the jira account I applied for when I configured jira for 14 years has a default test time of one month. After one month, it will expire. Of course, if you are a newly registered jira account, it will expire after a month, so I need to update the authorization code.
Here is an example of my authorization code, which is also an authorization code.
Description=JIRA: Commercial
CreationDate=2016-10-09, # here is the date when you installed jira. It's best to check the server date on the server.
Jira.LicenseEdition=ENTERPRISE
Evaluation=false
Jira.LicenseTypeName=COMMERCIAL
Jira.active=true
LicenseVersion=2
MaintenanceExpiryDate=2099-12-31, # here is the expiration date of the warranty. Note that the date format can be changed to another date.
Organisation=pl, # organization name can be consistent with this or can be changed to your own organization name
SEN=SEN-L4572887, # here is the technical support qualification code, jira will be generated after installation, so you can't use someone else's SEN to confirm your own on the authorization page and then replace it.
ServerID=BEQF-6VCF-HG8L-VPPS, # ServerID is also generated after jira installation. Here, you can only use your own.
Jira.NumberOfUsers=-1, if the number of users is changed to-1, there is no limit.
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, # Authorization Expiration date here is the same as above or will it expire on December 31, 2099
PurchaseDate=2016-10-09 # purchase date set here is the same as the creation date above
If there is no authorization code, you can copy the above example, but note that the content of the red part needs to be processed according to the actual situation.
Paste the authorization code into the text box on the web page and click add.
The completed authorization information as shown in the above figure shows that the authorization type has been allowed to upgrade and obtain technical support before December 31, 2099. Of course, our goal is to say that jira can be used before this date. As for technical support, don't think about it. After all, there is no payment for it. At this point, the authorization of jira has been cracked and you can play well with jira.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.