Hostname is a name given to machine. You can check the machine’s hostname using following command. # hostname Using the same command you can set hostname also. # hostname station1.example.com Basically Linux maintains host in /etc/hostname file. You can edit Read More …
Category: Important Stuff !
Redirecting Tomcat Port 8443 to Port 80 For CentOS 7
It is very simple process using iptables firewall. Below is a single step. # iptables -t nat -A PREROUTING -p tcp –dport 443 -j REDIRECT –to-port 8443 All request coming on port 443 are forwarded to Port 8443 of Tomcat. Read More …
SSL Certificate Installation On Tomcat For CentOS7
Below are the steps. Here we are using Let’s Encrypt SSL Certificate to secure the Tomcat Server. For this example, I am using demo.ssharad.com as domain name for Tomcat. Before I move ahead, please make sure that your server must Read More …
Installing Apache Tomcat On CentOS 7
Below are the steps. 1. Install OpenJDK for java as below. # yum install java-1.8.0-openjdk -y 2. Check Java # which java # java -version openjdk version “11.0.12” 2021-07-20 LTS OpenJDK Runtime Environment 18.9 (build 11.0.12+7-LTS) OpenJDK 64-Bit Server VM Read More …
My YouTube Channel Url
You can visit to my YouTube Channel by clicking following link. MyChannel
Installing htop Command on CentOS 7
htop is an interactive text-mode process viewer for Linux. On CentOS 7, you can install as below. Step 1 : Download htop # wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/h/htop-2.2.0-3.el7.x86_64.rpm Step 2 : Install htop # yum localinstall htop-2.2.0-3.el7.x86_64.rpm Step 3 : Now run htop Read More …
Check SHA256 (256-bit) Checksums
Using sha256sum command in Linux you can check SHA 256 Bit Checksum. Below are the steps. Suppose you have setup.exe file then you can check the SHA 256 Bit Checksum as below. # sha256sum setup.exe b7e8dabcaf825a65085564a63791355f37a18d5df5b3da71d4c0002ee40522f6 setup.exe The text “b7e8dabcaf825a65085564a63791355f37a18d5df5b3da71d4c0002ee40522f6” Read More …
Test Internet Connection Speed Using CLI
You can check internet connection speed in Linux using speedtest-cli tool. Below are the steps. (Tested On – AlmaLinux 9.4) 1. Install package epel-release as below # dnf install epel-release -y 2. Install speedtest-cli package as below. # dnf install Read More …
Maria DB – How to reset root password ?
If you come across a situation where you do not remember to master password (root password) of Maria DB then following simple steps will be helpful to reset the root password. First stop MariaDB Server. # systemctl stop mariadb Edit Read More …
Know more about your CPU in Linux
There are two ways to gather information about CPU in Linux. 1. You can check file /proc/cpuinfo to CPU information as below. You may see following output which contains most vital information about CPU. # cat /proc/cpuinfo processor : 0 Read More …