Tag Archives: Red Hat

Find out the user’s login history to the server

Below you can find out how to get the user’s login history to the server. utmpdump /var/log/wtmp* | awk ‘$4~”userA” {print}’ > /var/tmp/userAtime awk ‘$8>”[28/Jun/2018:16:10″ && $8<“[24/Jul/2018:16:10″‘ /var/tmp/userAtime Originally posted 2019-07-22 01:00:32.

How to Install Open JDK/Oracle JDK on CentOS 7 or RHEL 7

Java is used in most application today as their development base of their application. So, you need to install Java Development Kit (JDK). This guide will help you to install either Open JDK or Oracle JDK to your development environment on Redhat (RHEL 7) or CentOS 7. Note: you can …

How to resolve cannot set max_connections through my.cnf

I have some problem with MySql/MariaDB configuration to set max_connections parameter in /etc/my.cnf but MariaDB does not seem to read the parameter from the file. This appears to be some bug in the new mysqld. Setting max_connections to 1000, it was  reset to 214 during service restart/startup. # grep -i …

How to Set Session Timeout in Red Hat

As administrator we use ssh to manage our server, as day to day operation. As i am still in the middle of my work, and ssh session has given me timeout, it will push me to auto-logout when there is no activity. It really pissed me if i still have …

How to install Docker in RHEL 7.x

As in Docker documentation, they do not support Docker in Red Hat Enterprise Linux system. To use Docker in RHEL, you need maintained CentOS version. Archived version is not supported. Uninstall Old Docker Version First you need to uninstall any old Docker version if exist. yum remove docker \ docker-client …