Java Installation on Ubuntu Linux

Java Installation on Ubuntu Linux

sudo apt-get update
sudo apt-get install default-jdk

update-alternatives –config java

sudo vi /etc/profile.d/java.sh

#/bin/bash
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

sudo reboot

env | grep JAVA_HOME

JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

sudo java -version

 

Output >

openjdk version “11.0.4” 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu219.04)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu219.04, mixed mode, sharing)

 

MySQL Installation on Ubuntu Linux

sudo apt-get install mysql-server mysql-client

mkdir /downloads/mysql -p
sudo cd /downloads/mysql
sudo wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.48.tar.gz
sudo tar -zxvf mysql-connector-java-5.1.48.tar.gz

 

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]
default-storage-engine=INNODB
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G
character_set_server=utf8mb4
collation-server=utf8mb4_bin
max_allowed_packet=256M
transaction-isolation=READ-COMMITTED
binlog_format=row

 

sudo service mysql restart

sudo mysql -u root -p

CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;

CREATE USER ‘jira’@’%’ IDENTIFIED BY ‘kamisama123’;

GRANT ALL PRIVILEGES ON jira.* TO ‘jira’@’%’;
quit;

 

Jira Installation on Ubuntu Linux

mkdir /downloads/jira -p
cd /downloads/jira
sudo wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-core-8.5.0.tar.gz

sudo cp /downloads/mysql/mysql-connector-java-5.1.48/mysql-connector-java-5.1.48.jar /opt/jira/lib/

sudo chmod 700 /opt/jira -R
sudo chmod 700 /opt/jira-home -R

sudo vi /etc/profile.d/jira.sh

#/bin/bash
export JIRA_HOME=/opt/jira-home

 

sudo reboot

sudo /opt/jira/bin/start-jira.sh

sudo netstat -nl | grep -E -i “proto|8080”

output > Proto Recv-Q Send-Q Local Address Foreign Address State
tcp6 0 0 :::8080 :::* LISTEN
Proto RefCnt Flags Type State I-Node Path

tail -f /opt/jira-home/log/atlassian-jira.log

Leave a Reply