Run Mongo as a service – detaching from terminal

Run Mongo as a service – detaching from terminal

You might start mongo demon as

mongod

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

Get maximum occurring character

Check if two strings are anagrams or not

Find K Complementary numbers from array Java implementation

Changing decimal number to its binary equivalent

Java solution for checking anagram strings – tell if phrases are anagrams

Check if there are three numbers a, b, c giving a total T from array A

find longest word in the sentence

Kadane’s algorithm in C – Dynamic Programming

Flatten nested javascript array

Find the first occurence of number in the sorted array

Leave a Reply

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

*
*