Email: inbox [at] sysadmin.lk
LinkedIn: https://www.linkedin.com/in/prabatht
Facebook: https://www.facebook.com/prabath.hinoize
Related Articles
Install and configure LSYNCD on Centos 7
Enviroment: – Server01.192.168.30.201 – Server02.192.168.30.202 – Directory to be Sync : “/opt/web/htdocs/prompt and /opt/vxml ” 2.Step Key based authentication Configuration -Login to Master server & generate the public and Private keys using the following command: [root@server01 ~]# ssh-keygen -t rsa [root@server01 ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.30.202 2.Step Installation Lsyncd [root@server01 ~]# yum install epel-release [root@server01 […]
Useful MySQL Commands
Database with size SELECT table_schema “DB Name”, Round(Sum(data_length + index_length) / 1024 / 1024, 1) “DB Size in MB” FROM information_schema.tables GROUP BY table_schema; Create a database. mysql> create database [databasename]; List all databases on the server. mysql> show databases; Switch to a database. mysql> use [db name]; To see all the tables in the […]
Install Terraform on CentOS Using Package Repository
The HashiCorp repository contains other non-Terraform packages that will be available for installing after you add the repository. Follow the steps to install Terraform from the official HashiCorp repository on a CentOS system. 1. Install the yum-utils tools: sudo yum install -y yum-utils 2. Add the HashiCorp repository: sudo yum-config-manager –add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo 3. Finally, install Terraform using […]