Run Mongo as a service – detaching from terminal

Run Mongo as a service – detaching from terminal

You might start mongo demon as


but, as you close the terminal this will terminate your session.

So, to start it as a service so that it would continue running

mongod --fork --logpath /path/to/log/file

You can specify the log file as you wish

See how you would solve these known algorithm problems

Find longest palindrom from sequence of characters

Array reversal in Recurrsion

Check if two strings are anagrams or not

String Ordered Permutation Algorithm Problem

testing k complementary pairs algorithm with junit

Implementing tokenizer and adding tokens to the linked list

Find the pairs that makes K Complementary in the given array java solution

Changing decimal number to its binary equivalent

binary tree problems with solution

Kadane’s algorithm in C – Dynamic Programming

Leave a Reply

Your email address will not be published. Required fields are marked *