#37bay

Tech log and cookbooks

Main menu

Skip to content

How to flush your DNS cache on Linux?

April 20, 2012

To flush your DNS cache on Linux, use the following command in a terminal: /etc/rc.d/init.d/nscd restart That’s all!

Posted in Linux | Reply

Curl commands for Solr

April 13, 2012

One of the strength of Solr is the ability to communicate with the index trough HTTP, with a client like Curl for example. Here is a collection of useful commands using Curl to manipulate Solr: Force your index optimization: curl … Continue reading →

Posted in Admin, Solr | Reply

How to flush DNS cache on Mac OSX?

April 11, 2012

To flush your DNS cache using Mac OSX, launch a terminal and run this command: dscacheutil -flushcache Afterwards, your DNS cache will be flushed. Works on Leorpard, Snow Leopard and Lion.

Posted in Admin, Apple, Unix | Reply

How to get the size of a directory in Mo on Linux?

February 20, 2012

It’s sometimes usefull to get the size of a directory in Mo without using ls. Use this command to get it: du -h directory/ The -h argument displays a human readable size of your directory.

Posted in Admin, Linux, Unix | Reply

How to get syntax highlighting with Vi/Vim on Ubuntu/Debian

February 16, 2012

To get syntax highlighting with Vi/Vim on Ubuntu/Debian, uncomment these lines in your vimrc file: vi /etc/vim/vimrc ” Vim5 and later versions support syntax highlighting. Uncommenting the next ” line enables syntax highlighting by default. syntax on ” If using … Continue reading →

Posted in Admin, Linux | Reply

Tutorial MongoDB: Installing MongoDB on Debian or Ubuntu from repository

September 7, 2011

10gen, the company behind MongoDB, provides up to date repositories for Debian oriented distributions such as Ubuntu. It’s an easy way to install MongoDB on a server. To add the right repository, first accept the 10gen the public key by … Continue reading →

Posted in Admin, Linux, MongoDB | Reply

Tutorial MongoDB: Setting up a 3 hosts cluster

September 2, 2011

Overview This tutorial describes how to set up a three hosts cluster with replicas sets and sharding without geographical considerations. It’s a good stating point for training on MongoDB administration and its architecture understanding. Prerequisites You need MongoDB to be … Continue reading →

Posted in Admin, MongoDB | Replies: 1

Tutorial Cassandra: Installing and running a single node Cassandra cluster

August 18, 2011

Installing and running a single node Cassandra cluster is very fast and easy. It could a good first approach for beginners. Here is the steps to run your single node Cassandra cluster. Prerequisites Cassandra need Java to be installed to … Continue reading →

Posted in Admin, Cassandra | Reply

Using Nginx as a SSL reverse proxy

August 2, 2011

Install Nginx You can install a pre-packaged version of Nginx using aptitude apt-get install nginx Setting up your key and certificates Nginx needs two file to manage your sever certificates: one containing your private key and the other containing your … Continue reading →

Posted in Admin, Web | Reply

Setting up a standalone HBase instance

July 31, 2011

Requirements HBase require Java to start. Download and install Download the latest version of HBase in the Apache repository. You cane use these commands for example: wget http://www.apache.org/dist/hbase/stable/hbase-0.90.3.tar.gz tar -xzf hbase-0.90.3.tar.gz cd hbase-0.90.3 You can add HBase binary directory to … Continue reading →

Posted in Admin, Hadoop, HBase | Reply

Post navigation

← Older posts

Search

Recent posts

  • How to flush your DNS cache on Linux?
  • Curl commands for Solr
  • How to flush DNS cache on Mac OSX?
  • How to get the size of a directory in Mo on Linux?
  • How to get syntax highlighting with Vi/Vim on Ubuntu/Debian

Categories

  • Admin
  • Apple
  • Cassandra
  • Hadoop
  • HBase
  • Java
  • Linux
  • MongoDB
  • Solr
  • Unix
  • Web
37bay © 2012