Skip to content

Instantly share code, notes, and snippets.

@mingderwang
Created July 1, 2014 03:38
Show Gist options
  • Select an option

  • Save mingderwang/8afd52230717b3fb5d7f to your computer and use it in GitHub Desktop.

Select an option

Save mingderwang/8afd52230717b3fb5d7f to your computer and use it in GitHub Desktop.
ERROR: listen(): bind() failed errno:13 Permission denied for socket: /tmp/mongodb-27017.sock
# chown root:root /tmp
# chmod 1777 /tmp
to fix
2014-07-01T11:34:16.802+0800 ***** SERVER RESTARTED *****
2014-07-01T11:34:16.814+0800 [initandlisten] MongoDB starting : pid=27528 port=27017 dbpath=/diskZ/mongodb/data/db 64-bit host=95ad9659-ada0-40df-ade9-af531e81e9e4
2014-07-01T11:34:16.814+0800 [initandlisten] db version v2.6.3
2014-07-01T11:34:16.814+0800 [initandlisten] git version: 255f67a66f9603c59380b2a389e386910bbb52cb
2014-07-01T11:34:16.814+0800 [initandlisten] build info: Linux build12.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-07-01T11:34:16.814+0800 [initandlisten] allocator: tcmalloc
2014-07-01T11:34:16.814+0800 [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1" }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod.pid" }, storage: { dbPath: "/diskZ/mongodb/data/db" }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2014-07-01T11:34:16.827+0800 [initandlisten] journal dir=/diskZ/mongodb/data/db/journal
2014-07-01T11:34:16.828+0800 [initandlisten] recover : no journal files present, no recovery needed
2014-07-01T11:34:16.887+0800 [initandlisten] ERROR: listen(): bind() failed errno:13 Permission denied for socket: /tmp/mongodb-27017.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment