标签:arc version pen tool chain name level mongo fuse
2017-07-06T16:03:09.703+0800 I STORAGE [initandlisten] exception in initAndListen: 98 Unable to lock file: mongodb/0706/mongod.lock Resource temporarily unavailable. Is a mongod instance already running?, terminating
2017-07-06T16:13:07.215+0800 E NETWORK [initandlisten] listen(): bind() failed Address already in use for socket: 0.0.0.0:27017
nohup mongodb/bin/mongod --dbpath mongodb/0706 &
mongodb/bin/mongod --dbpath mongodb/0706 --fork
> use local switched to db local > db.startup_log.findOne() { "_id" : "vst2-1499343744092", "hostname" : "vst2", "startTime" : ISODate("2017-07-06T12:22:24Z"), "startTimeLocal" : "Thu Jul 6 20:22:24.092", "cmdLine" : { "storage" : { "dbPath" : "mongodb/0707", "directoryPerDB" : true } }, "pid" : NumberLong(15613), "buildinfo" : { "version" : "3.4.5", "gitVersion" : "520b8f3092c48d934f0cd78ab5f40fe594f96863", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 5, 0 ], "openssl" : { "running" : "OpenSSL 1.0.1f 6 Jan 2014", "compiled" : "OpenSSL 1.0.1f 6 Jan 2014" }, "buildEnvironment" : { "distmod" : "ubuntu1404", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
> use admin; switched to db admin > db.shutdownServer(); server should be down...
mongodb/bin/mongod --dbpath mongodb/0707 --directoryperdb --fork -vvv
> db.setProfilingLevel(1,500) { "was" : 0, "slowms" : 100, "ok" : 1 }
> db.adminCommand({"logRotate":1}) { "ok" : 1 }
标签:arc version pen tool chain name level mongo fuse
原文地址:http://www.cnblogs.com/lemon-le/p/7132038.html