Ubuntu, the service can not start to solve the problem of mongod

Under Ubuntu, to solve the problem mongod Service failed to start error description: start MongoDB client time, reported the following error: <ignore_js_op> because mongod service is not open, open mongod service command: sudo service mongod start through the command ps aux | grep mongod view, found no open successfully <ignore_js_op> the fundamental reason is the start MongoDB server error, suggesting: the Data Directory / the Data / db not found <ignore_js_op> this is the MongoDB database default storage location, the default is not created, we need to manually create the command: sudo mkdir -p / the Data / db sudo chmod 777 / the Data / db Finally, in order to start MongoDB server, mongod service, MongoDB client, problem solved.















More technical information may concern: gzitcas

Guess you like

Origin www.cnblogs.com/heimaguangzhou/p/11670676.html