Red hat linux

Setting Up an NFS Server and Client on CentOS 7

I’m using two CentOS systems here: NFS Server: server.example.com, IP address: 192.168.1.100 NFS Client: client.example.com, IP address: 192.168.1.101 Configure the Firewall

Installing NFS and enable and start the nfs server service.(Client / Server)

Exporting Directories on the Server

Now we must modify /etc/exports where we “export” our NFS shares.

Mounting the […]

Sysadmin profile picture
Red hat linux

Adding a New Disk Drive to a CentOS 6 / 7 System

Finding the New Hard Drive in CentOS

Creating Linux Partitions

As instructed, switch off DOS compatible mode and change the units to sectors by entering the c and u commands:

In order to view the current partitions on the disk enter the p command:

As we can see from the above […]

MySQL

Install and Configure MySQL Cluster on CentOS 7

MySQL Cluster is designed to provide a MySQL compatible database with high availability and low latency. The MySQL Cluster technology is implemented through the NDB (Network DataBase) and NDBCLUSTER storage engines and provides shared-nothing clustering and auto-sharding for MySQL database systems. In the shared-nothing architecture, each of nodes has its own memory and disk, the […]

Red hat linux

PHP 5.6 on CentOS/RHEL 7.4 and 6.9 via Yum

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum: CentOS/RHEL 7.x:

CentOS/RHEL 6.x:

Remove old php version

Now you can install PHP 5.6’s mod_php SAPI (along with an opcode cache) by doing:

nagios Red hat linux

Send Nagios SMS Alert with Gnokii

Installing Gnokii Requirements – intltool-0.35.0-2.i386.rpm

configure Gnokii for Wavecom GSM modem

Check modem is properly configured

sending SMS

Sending SMS from Nagios

Add commands to file

Edit contacts in localhost file

Red hat linux Shell scripting

AWK and Regular Expressions to Filter Text or String in Files

AWK is an interpreted programming language. It is very powerful and specially designed for text processing. AWK – Basic Examples This chapter describes several useful AWK commands and their appropriate examples. Consider a text file marks.txt to be processed with the following content −

Printing Column or Field You can instruct AWK to print […]