准備工作:下載相關安裝包,上傳到服務器/opt/apps目錄下
鏈接:https://pan.baidu.com/s/15Y5Y3X6AX2ZokWkZKcRrQQ 密碼:q0lw
1、安裝數據庫
yum install mariadb-server systemctl start mariadb 創建jira數據庫,並創建jira管理用戶,命令如下: MariaDB [(none)]> create database jira default character set utf8 collate utf8_bin; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> grant all on `jira`.* to 'jirauser'@'%' identified by 'shediao123'; Query OK, 0 rows affected (0.00 sec)
2、快速安裝jira
[root@localhost apps]# ./atlassian-jira-software-7.10.0-x64.bin Unpacking JRE ... Starting Installer ... Sep 27, 2018 3:06:08 PM java.util.prefs.FileSystemPreferences$2 run INFO: Created system preferences directory in java.home. This will install JIRA Software 7.10.0 on your computer. OK [o, Enter], Cancel [c] Choose the appropriate installation or upgrade option. Please choose one of the following: Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3] 1 Details on where JIRA Software will be installed and the settings that will be used. Installation Directory: /opt/atlassian/jira Home Directory: /var/atlassian/application-data/jira HTTP Port: 8080 RMI Port: 8005 Install as service: Yes Install [i, Enter], Exit [e] i Extracting files ... Please wait a few moments while JIRA Software is configured. Installation of JIRA Software 7.10.0 is complete Start JIRA Software 7.10.0 now? Yes [y, Enter], No [n] y Please wait a few moments while JIRA Software starts up. Launching JIRA Software ... Installation of JIRA Software 7.10.0 is complete Your installation of JIRA Software 7.10.0 is now ready and can be accessed via your browser. JIRA Software 7.10.0 can be accessed at http://localhost:8080 Finishing installation ... 到此為止jira基本安裝完畢,使用IP:8080瀏覽器訪問測試,關閉防火牆和selinux
3、破解JIRA
[root@localhost apps]# cp atlassian-extras-3.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/ cp: overwrite ‘/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar’? y [root@localhost apps]# cp mysql-connector-java-5.1.39-bin.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/ 下邊說幾個常用命令及一些路徑: /opt/atlassian/jira jira的安裝路徑,其實說白了就是個tomcat, /var/atlassian/application-data/jira 存放一些日志,緩存,插件,及數據庫配置等 /opt/atlassian/jira/conf/server.xml 這里可以配置端口 tail -f /opt/atlassian/jira/logs/catalina.out 可以查看日志 所有配置都好了,現在重啟jira service jira stop service jira start
JIRA管理腳本
[root@localhost apps]# ll /etc/init.d/ total 36 -rw-r--r--. 1 root root 15131 Sep 12 2016 functions -rwxr-xr-x. 1 root root 261 Sep 27 15:06 jira -rwxr-xr-x. 1 root root 2989 Sep 12 2016 netconsole -rwxr-xr-x. 1 root root 6643 Sep 12 2016 network -rw-r--r--. 1 root root 1160 Nov 7 2016 README [root@localhost apps]# cat /etc/init.d/jira #!/bin/bash # JIRA Linux service controller script cd "/opt/atlassian/jira/bin" case "$1" in start) ./start-jira.sh ;; stop) ./stop-jira.sh ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac
一切正常了!ok登錄上開始配置jira吧!
連接數據庫,寫入數據會有點慢
需要注冊一個賬戶,注冊后回收到一封郵件
破解后顯示過期日期到2033年2月8號