jira的部署
程序员文章站
2022-07-14 08:26:09
...
简介
JIRA是Atlassian公司出品的项目与事务跟踪工具,被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟
踪、项目跟踪和敏捷管理等工作领域。
环境准备
ATLASSIAN官方网站:https://www.atlassian.com/ jira 7.3.8 安装包:https://www.atlassian.com/software/jira/d
ownload jira7.3-*****文件 一台纯洁的机器
部署安装
- 安装jdk
tar xf jdk-8u191-linux-x64.tar.gz -C /usr/local/
mv /usr/local/{jdk1.8.0_191,java}
vim /etc/profile
JAVA_HOME=/usr/local/java
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH
source /etc/profile
java -version
- 安装数据库
yum -y install mariadb-server mariadb
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation #初始化
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[aaa@qq.com ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] n
... skipping.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
- 创建数据库
mysql -uroot -p123
create database jira default character set utf8 collate utf8_bin;
- 安装jira
chmod +x atlassian-jira-software-7.4.1-x64.bin
./atlassian-jira-software-7.4.1-x64.bin
- **jira
tar xf jira7.3-*****.tar.gz
- 把**包里的文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下
cp jira7.3-*****/* /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
这里简单介绍一下两个jar包的功能:
• atlassian-extras-3.2.jar:和license相关
• mysql-connector-java-5.1.39-bin.jar:jira连接mysql数据库相关的jar包
到这里**的第一部分完成
- 开启jira
/opt/atlassian/jira/bin/start-jira.sh
- 浏览器访问测试
ip:8080
注意:这里需要等待的时间有点长,它在页面的最下方给了提示
Please wait while the database is set up. This may take a minute…
接下来比较的配置比较随意,下图是jira应用的一些属性 两种模式 • Private模式:只有管理员才能创建新的工单(这
里选此种模式) • Public模式:任何能登录的人都能创建工单
注意:点击Next,如果能出现接下里步骤的页面,就算成功跳过License Key了。至此,**第一、二部分均完成。
注意:配置jira管理员账户
部署成功
jira 的开启与关闭
- 开启
/opt/atlassian/jira/bin/start-jira.sh
- 关闭
/opt/atlassian/jira/bin/stop-jira.sh