Build database, sell support. Like any other open-source DB. Or Riak, for instance, charges for site-to-site replication. Generally if you have an open-source project many people are using, you can make money with it.
http://venturebeat.com/2013/12/16/rethinkdb-grabs-8m-to-show...