您的位置:首页 > 运维架构 > Linux

CentOS JIRA安装/迁移记录

2013-04-01 11:20 429 查看
1. 下载/安装JIRA

使用windows/Linux安装包不需要单独安装JDK:

$ cd /usr/local/src
$ wget http://wpc.29c4.edgecastcdn.net/8029C4/downloads/software/jira/downloads/atlassian-jira-5.2.7-x64.bin $ chmod +x atlassian-jira-5.2.7-x64.bin
$ ./atlassian-jira-5.2.7-x64.bin


运行过程中需要做相关选择,可参照:https://confluence.atlassian.com/display/JIRA052/Installing+JIRA+on+Linux#InstallingJIRAonLinux-UsingtheConsoleWizard

2. 下载Mysql驱动(我用的是mysql数据库)

$ cd /usr/local/src
$ wget http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.22.tar.gz $ tar -zxvf mysql-connector-java-5.1.22.tar.gz
$ cd mysql-connector-java-5.1.22
$ cp mysql-connector-java-5.1.22-bin.jar /opt/atlassian/jira/lib
$ service jira stop && service jira start


3. 初始化JIRA数据库

CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jiradb.* TO 'jira'@'localhost' IDENTIFIED BY 'jira';
flush privileges;


4. 配置JIRA

进入:http://1localhost:8080

配置数据库,邮件服务器,超级管理员账户信息。

5. JIRA的一些默认路径:

5.1 JIRA安装目录:/opt/atlassian/jira。(JIRA does not modify or store any data in this directory)

5.2 JIRA HOME:/var/atlassian/application-data/jira (Contains key data that help define how JIRA works)

5.2.1 附件路径:/var/atlassian/application-data/jira/data/attachments

5.2.1 索引路径:/var/atlassian/application-data/jira/caches/indexes

6.JIRA默认的数据库表:

mysql> show tables;
+------------------------------+
| Tables_in_jiradb             |
+------------------------------+
| AO_4AEACD_WEBHOOK_DAO        |
| AO_563AEE_ACTIVITY_ENTITY    |
| AO_563AEE_ACTOR_ENTITY       |
| AO_563AEE_MEDIA_LINK_ENTITY  |
| AO_563AEE_OBJECT_ENTITY      |
| AO_563AEE_TARGET_ENTITY      |
| OS_CURRENTSTEP               |
| OS_CURRENTSTEP_PREV          |
| OS_HISTORYSTEP               |
| OS_HISTORYSTEP_PREV          |
| OS_WFENTRY                   |
| SEQUENCE_VALUE_ITEM          |
| avatar                       |
| changegroup                  |
| changeitem                   |
| columnlayout                 |
| columnlayoutitem             |
| component                    |
| configurationcontext         |
| customfield                  |
| customfieldoption            |
| customfieldvalue             |
| cwd_application              |
| cwd_application_address      |
| cwd_directory                |
| cwd_directory_attribute      |
| cwd_directory_operation      |
| cwd_group                    |
| cwd_group_attributes         |
| cwd_membership               |
| cwd_user                     |
| cwd_user_attributes          |
| draftworkflowscheme          |
| draftworkflowschemeentity    |
| external_entities            |
| externalgadget               |
| favouriteassociations        |
| fieldconfigscheme            |
| fieldconfigschemeissuetype   |
| fieldconfiguration           |
| fieldlayout                  |
| fieldlayoutitem              |
| fieldlayoutscheme            |
| fieldlayoutschemeassociation |
| fieldlayoutschemeentity      |
| fieldscreen                  |
| fieldscreenlayoutitem        |
| fieldscreenscheme            |
| fieldscreenschemeitem        |
| fieldscreentab               |
| fileattachment               |
| filtersubscription           |
| gadgetuserpreference         |
| genericconfiguration         |
| groupbase                    |
| issuelink                    |
| issuelinktype                |
| issuesecurityscheme          |
| issuestatus                  |
| issuetype                    |
| issuetypescreenscheme        |
| issuetypescreenschemeentity  |
| jiraaction                   |
| jiradraftworkflows           |
| jiraeventtype                |
| jiraissue                    |
| jiraperms                    |
| jiraworkflows                |
| label                        |
| listenerconfig               |
| mailserver                   |
| managedconfigurationitem     |
| membershipbase               |
| nodeassociation              |
| notification                 |
| notificationinstance         |
| notificationscheme           |
| oauthconsumer                |
| oauthconsumertoken           |
| oauthspconsumer              |
| oauthsptoken                 |
| optionconfiguration          |
| permissionscheme             |
| pluginversion                |
| portalpage                   |
| portletconfiguration         |
| priority                     |
| project                      |
| projectcategory              |
| projectrole                  |
| projectroleactor             |
| projectversion               |
| propertydata                 |
| propertydate                 |
| propertydecimal              |
| propertyentry                |
| propertynumber               |
| propertystring               |
| propertytext                 |
| qrtz_calendars               |
| qrtz_cron_triggers           |
| qrtz_fired_triggers          |
| qrtz_job_details             |
| qrtz_job_listeners           |
| qrtz_simple_triggers         |
| qrtz_trigger_listeners       |
| qrtz_triggers                |
| remembermetoken              |
| remotelink                   |
| resolution                   |
| schemeissuesecurities        |
| schemeissuesecuritylevels    |
| schemepermissions            |
| searchrequest                |
| serviceconfig                |
| sharepermissions             |
| trackback_ping               |
| trustedapp                   |
| upgradehistory               |
| upgradeversionhistory        |
| userassociation              |
| userbase                     |
| userhistoryitem              |
| versioncontrol               |
| votehistory                  |
| workflowscheme               |
| workflowschemeentity         |
| worklog                      |
+------------------------------+
128 rows in set (0.00 sec)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: