Posts

Showing posts from September, 2021

My reference Notes

  VM instances Red Hat Enterprise Linux 8 yum -y install bitstream-vera-fonts yum -y install fonts-* sudo yum install java-11-openjdk-devel sudo yum install wget sudo yum install vim yum install -y mlocate updatedb cd /home mkdir tomcat cd /tomcat wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.20/bin/apache-tomcat-9.0.20.tar.gz tar xzf apache-tomcat-9.0.20.tar.gz chmod -R 777 . echo "export CATALINA_HOME="/home/tomcat/apache-tomcat-9.0.20"" >> ~/.bashrc source ~/.bashrc vim /tomcat/apache-tomcat-9.0.20/conf/tomcat-users.xml Add the following <!-- user manager can access only manager section --> <role rolename="manager-gui" /> <user username="manager" password="manager" roles="manager-gui" /> <!-- user admin can access manager and admin section both --> <role rolename="admin-gui" /> <user username="admin" password="admin" roles="manager-gui,adm...

How to install MySQL Server 5.6 on RHEL 7

  How to install MySQL Server 5.6 on RHEL 7 In this tutorial we will learn, how to install MySQL Server 5.6 on RHEL 7 . Follow the given below steps to install MySQL Server 5.6 . You must be login with root user in system Download the Yum Repo package of MySQL Server 5.6 Download the rpm package, which will create a yum repo file for MySQL Server installation. yum install wget wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm nstall mysql-community-release-el7-5.noarch.rpm package Install this downloaded rpm package by using rpm command. rpm -ivh mysql-community-release-el7-5.noarch.rpm After the installation of this package. We will get two new yum repo related to MySQL [root@localhost ~]# ls -1 /etc/yum.repos.d/mysql-community* /etc/yum.repos.d/mysql-community.repo /etc/yum.repos.d/mysql-community-source.repo [root@localhost ~]# Installing MySQL Server By using yum command, now we will install MySQL Server 5.6 . All dependencies will be installed itself. yum ins...
  One-Stop Guide to Profiles with Spring Boot Go to Tomcat server folder  open the catalina.properties and add below entry spring.profiles.active=localTestEnv Programmatically read profile import org.springframework.core.env.Environment ; import org.springframework.util.StringUtils ; @Autowired private Environment environment ; String [] activeProfiles = environment .getActiveProfiles(); logger .info( "active profiles: {}" + Arrays . toString ( activeProfiles )); logger .info( "active profiles: {}" + StringUtils . arrayToCommaDelimitedString ( activeProfiles ));