set default ports for MongoDB and memcached