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

Tuning Semaphore for Postgres

March 28, 2018 0

Edit the file sysctl.conf: vi /etc/sysctl.conf Add: kernel.sem = 250 512000 100 2048 For the settings to take effect, run: sysctl -p Tuning Semaphore will […]

No Image

Setup CENTOS Time Zone

March 28, 2018 0

All time zones are stored in: /usr/share/zoneinfo Remove locatime file and create symlink to the selected time zone file: # rm -rf /etc/localtime # ln […]

No Image

Install and Setup NTP Client

March 28, 2018 0

Install the NTP package using yum: yum install ntp Once installation complete, edit /etc/ntp.conf to choose the servers you want to sync with. Use the […]

No Image

Install NRPE for Nagios

March 28, 2018 0

Add the EPEL repository to enable installation via YUM: # yum install epel-release Next, run yum install nrpe # yum install nrpe This will also […]

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

Increase ulimit

March 23, 2018 0

To increase the maximum open files: vi /etc/security/limits.conf Add: * soft nofile 50000 * hard nofile 60000 Change the statement that specifies the value of […]

No Image

MongoDB Common Commands

March 23, 2018 0

DATABASE COMMANDS: list databases: show dbs list Collections/Tables: show collections //output every collection OR show tables OR db.getCollectionNames() Select specific collection/table: db.collectionName.find() ROLES COMMANDS: list […]