专业的JAVA编程教程与资源

网站首页 > java教程 正文

Ubuntu安装Atlassian产品(ubuntu安装lammps)

temp10 2024-09-30 00:32:49 java教程 205 ℃ 0 评论

1.安装文件下载

下载路径(此处以Jira为例):https://www.atlassian.com/software/jira/download

Ubuntu安装Atlassian产品(ubuntu安装lammps)


2.安装

创建安装目录和配置目录(可根据自己情况创建文件路径)

cd /vat/lib
mkdir atlassian
cd /var/lib/atlassian/
mkdir jira
mkdir application-data
cd /var/lib/atlassian/application-data
mkdir jira

然后将下载的安装文件上传到Ubuntu中进行安装,如果没有权限则增加权限即可

mv /home/llian/atlassian-jira-software-8.13.1-x64.bin ./
chmod +x ./atlassian-jira-software-8.13.1-x64.bin     #没有权限则执行
sudo ./atlassian-jira-software-8.13.1-x64.bin

接着按提示对安装路径进行配置即可

This will install Jira Software 8.13.1 on your computer.
OK [o, Enter], Cancel [c]
o #按o安装
 
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]
2 #2位自定义安装
 
Select the folder where you would like Jira Software to be installed.
Where should Jira Software be installed?
[/opt/atlassian/jira]
/var/lib/atlassian/jira #输入安装目录,即之前创建的目录
 
Default location for Jira Software data
[/var/atlassian/application-data/jira]
/var/lib/atlassian/application-data/jira #输入数据目录,即之前创建的目录
 
Configure which ports Jira Software will use.
Jira requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access Jira
through your browser. The Control port is used to startup and shutdown Jira.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
2			#自定义端口
 
HTTP Port Number
[8080]
8095 #自定义http端口
Control Port Number
[8005]
8096 #自定义控制端口
 
Jira can be run in the background.
You may choose to run Jira as a service, which means it will start
automatically whenever the computer restarts.
Install Jira as Service?
Yes [y, Enter], No [n]
y #是否开机启动
 
Details on where Jira Software will be installed and the settings that will be used.
Installation Directory: /var/lib/atlassian/jira
Home Directory: /var/lib/atlassian/application-data/jira
HTTP Port: 8095
RMI Port: 8096
Install as service: Yes
Install [i, Enter], Exit [e]
i #确认已选配置
 
Installation of Jira Software 8.13.1 is complete
Start Jira Software 8.13.1 now?
Yes [y, Enter], No [n]
y #启动jira


3.配置(以MySQL为例)

因为Atlassian默认没有Mysql驱动,需要自行放置,放置之后重启Jira服务

sudo cp mysql-connector-java-5.1.38.jar /var/lib/atlassian/jira/atlassian-jira/WEB-INF/lib/
service jira stop
service jira start

然后建立Jira数据库,并增加连接用户

CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER jira IDENTIFIED BY '123456';
GRANT ALL ON atlassian_jira.* TO jira@"%" ;
FLUSH PRIVILEGES; 

Jira服务启动之后,浏览器访问http://192.168.245.128:8095进入Jira界面,此IP和端口使用自己配置IP和端口,进入后即可进行数据库选择,填写数据库信息即可

如果遇到数据库问题:This MySQL instance is not properly configured. Please follow the documentation for MySQL 5.7 setup.

则需要修改数据库配置添加如下配置,然后重启数据库

[mysqld]
character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
max_allowed_packet=512M
innodb_log_file_size=1024M
transaction-isolation = READ-COMMITTED


4.激活

激活界面如下,可以去Atlassian官网申请License输入即可

激活后设置admin账号即可使用,安装完毕

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表