You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a CentOS 7 Virtual machine on a Virtual box.
Install Java jdk 1.8.0 by using the below command.
yum -y install java-1.8.0-openjdk.x86_64
Once the java installation is completed configure the Environment Variables with the below paths
echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profile
echo 'export JRE_HOME=/usr/lib/jvm/jre' | sudo tee -a /etc/profile
source /etc/profile
Verify the java version and paths.
java -version
echo $JAVA_HOME
echo $JRE_HOME
Install and configure Database - Installing Mariadb
yum install -y mariadb-server
Configure mariadb to start on system boot.
systemctl start mariadb
systemctl enable mariadb
To harden the DB adding root password. Run the below command and follow the instruction.
mysql_secure_installation
Add the below parameter in my.cnf file.
vi /etc/my.cnf
**Insert the below parameters at the end of the file**
default-storage-engine=INNODB
max_allowed_packet=256M
Create a db in Mariadb and assign permissions
mysql -u root -p
CREATE DATABASE bamboo CHARACTER SET utf8 COLLATE utf8_bin;
grant all privileges on bamboo.* to 'bamboo'@'%' identified by '<secret>';
flush privileges;
exit
Restart DB so the configuration changes in /etc/my.cnf will take effect.