January 2016
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

January 2016
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

How to install redis server on CentOS 7 / RHEL 7

How to install redis server on CentOS 7 / RHEL 7

wget -r –no-parent -A ‘epel-release-*.rpm’ http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-*.rpm

or

yum install epel-release

install redis server

Now use yum command to install redis server

yum install redis

Two important redis server configuration file’s path 1. /etc/redis.conf 2. /etc/redis-sentinel.conf

To start redis server

systemctl start […]

Find What Programs, Services, Daemons, Applications Are Using SWAP Memory In Linux

for file in /proc/*/status ; do awk ‘/VmSwap|Name/{printf $2 ” ” $3}END{ print “”}’ $file; done | sort -k 2 -n -r | less

how to find out which processes are swapping in linux

Have you ever logged in to a server, ran free, seen that a bit of swap is used and wondered what’s in there? It’s usually not very indicative of anything, or even overly helpful knowing what’s in there, mostly it’s a curiosity thing.

Either way, starting from kernel 2.6.16, we can find out using smaps […]

Freeipa Centos 6.7

FreeIPA is a solution for managing users, groups, hosts, services, and much, much more. It uses open source solutions with some Python glue to make things work. Identity Management made easy for the Linux administrator. FreeIPA is an open source alternative to Microsoft Directory Server. It provides the following functionality:

Centralised LDAP based authorisation Kerberos […]

Quick postfix queue depth script

for i in `ls -al /var/spool/postfix |grep ‘^d’|awk ‘{print $9}’|grep -v ‘\.$’`; do c=`find $i|wc -l`; echo “$c $i”; done;

Install Kernel 3.10 on CentOS 6.7

CentOS 6.7 ships with kernel 2.6 and it’s a quite old for now(CentOS 7 already comes with 3.10), but compile a kernel on CentOS is a mess and it’s not recommended. But fear no more, guys from Elrepo took care of that for us and made a package, let’s see how we can install it.

[…]

Install LAMP + phpMyAdmin on 7 CentOS 7 / RHEL

Install LAMP + phpMyAdmin on 7 CentOS 7 / RHEL

The main attention is now replaced by the MySQL database MariaDB, and therefore representative of the LAMP Linux + Apache + MariaDB + PHP up.

System: The new CentOS 7 using systemd, thus some instruction vary ; now use alternative MariaDB MySQL as the database […]

SSH terminal login in linux

Windows VPS remotely manage the SSH login tool is PuTTY , but Linux, there is no need to use it. Linux, Unix (including Mac iOS) are bound to have a built-in command-line terminal, built OpenSSH commands. VPS Linux system through which to log on to be more convenient.

Open a command line terminal in […]

Swap on CentOS 7

we begin, we should take a look at our server’s storage to see if we already have some swap space available. While we can have multiple swap files or swap partitions, one should generally be enough. We can see if the system has any configured swap by using swapon, a general-purpose swap utility. With the […]

add grub password on centos 7 Rhel 7 and Fedora oracle linux

Red Hat Enterprise Linux 7/CentOS 7 system that requires manual entry of a bootloader password in order to boot any future kernels Adding users and custom menuentry

…. –user SOMEUSER directives to /etc/grub.d/40_custom as per the the RHEL7 System Administrator’s Guide is great, but how can you configure grub so that ALL existing & […]