Выполнил все равно что то не выходит
laji@ubuntu:~/mongodata $ sudo mongod --shutdown --dbpath=./mongodata
sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700
[sudo] password for laji: ввел пароль
There doesn't seem to be a server running with dbpath: ./mongodata
Перезагрузил весь сервер. Монгод не смог остановить он что то ругался. Снова запустил команду
mongod --storageEngine wiredTiger --dbpath=./data
и в ответ получил в этот раз уже
2015-09-26T06:22:43.406+0300 E NETWORK [initandlisten] listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017
2015-09-26T06:22:43.406+0300 E NETWORK [initandlisten] addr already in use
2015-09-26T06:22:43.414+0300 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory ./data not found., terminating
2015-09-26T06:22:43.415+0300 I CONTROL [initandlisten] dbexit: rc: 100
2015-09-26T05:45:05.588+0300 E NETWORK [initandlisten] listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017
2015-09-26T05:45:05.588+0300 E NETWORK [initandlisten] addr already in use
2015-09-26T05:45:05.588+0300 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_max=4),statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] MongoDB starting : pid=6031 port=27017 dbpath=./mongodata 64-bit host=ubuntu
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten]
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten]
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten]
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] db version v3.0.6
2015-09-26T05:45:05.643+0300 I CONTROL [initandlisten] git version: 1ef45a23a4c5e3480ac919b28afcba3c615488f2
2015-09-26T05:45:05.644+0300 I CONTROL [initandlisten] build info: Linux ip-10-184-200-117 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2015-09-26T05:45:05.644+0300 I CONTROL [initandlisten] allocator: tcmalloc
2015-09-26T05:45:05.644+0300 I CONTROL [initandlisten] options: { storage: { dbPath: "./mongodata", engine: "wiredTiger" } }
2015-09-26T05:45:05.645+0300 I CONTROL [initandlisten] now exiting
2015-09-26T05:45:05.645+0300 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2015-09-26T05:45:05.645+0300 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2015-09-26T05:45:05.645+0300 I NETWORK [initandlisten] shutdown: going to close sockets...
2015-09-26T05:45:05.645+0300 I STORAGE [initandlisten] WiredTigerKVEngine shutting down
2015-09-26T05:45:05.653+0300 I STORAGE [initandlisten] shutdown: removing fs lock...
2015-09-26T05:45:05.653+0300 I CONTROL [initandlisten] dbexit: rc: 48
Понимаю лишь что что то не получилось а и смотрю потом движок не поменялся. Что тут не так?
laji@ubuntu:~/mongodata $ sudo mongod --shutdown --dbpath=./mongodata
sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700
[sudo] password for laji: ввел пароль
There doesn't seem to be a server running with dbpath: ./mongodata