No Image

Linux, get process ID (PID)

April 3, 2018 0

The following command will allow shell script to grab PID for further processing: ps -ef | grep KEYWORD | grep -v grep | awk ‘{print […]

No Image

Centos Change Hostname

March 28, 2018 0

CENTOS 6: Edit /etc/sysconfig/network change the line: HOSTNAME=app01.localdomain Edit /etc/hosts add hostname to the end of line: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 app01 Run hostname […]

No Image

Install and Setup Sendmail as Mail Relay

March 28, 2018 0

Install Sendmail # yum install sendmail # yum install sendmail-cf Go to /etc/mail Directory # cd /etc/mail Edit sendmail.mc File: remark: dnl #DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl dnl […]

No Image

Install and Setup Redis

March 28, 2018 0

Download and Untar Redis Installer # wget http://download.redis.io/releases/redis-2.8.3.tar.gz # tar -xzvf redis-2.8.3.tar.gz Install GCC & TCL (if not yet) # yum install gcc tcl Enter […]

No Image

MongoDB Startup Script

March 23, 2018 0

Below is a startup script for MongoDB in case you are unable to find one: #!/bin/sh # chkconfig: 35 85 15 # description: Mongo is […]