In the mongo.cfg file, comment out the following parameters:

For MongoDB version earlier than 2.6.x:

#setParameter = textSearchEnabled=true

For MongoDB version earlier than 3.0.x:

#storageEngine = wiredTiger

For a standalone setup:

#replSet=

#keyFile=