Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.92 KB | None | 0 0
  1. Last login: Thu Jan 10 21:36:46 on ttys002
  2. MacBook-Air:~ rolando$ pwd
  3. /Users/rolando
  4. MacBook-Air:~ rolando$ cd m
  5. m001/
  6. m103-vagrant-env/
  7. mobile.ovpn
  8. mongo.js
  9. mongodb-osx-x86_64-enterprise-4.0.4/
  10. mongodb-osx-x86_64-enterprise-4.0.4.tar
  11. myfile.js
  12. mymac.ovpn
  13. MacBook-Air:~ rolando$ cd m103-vagrant-env/
  14. MacBook-Air:m103-vagrant-env rolando$ ls
  15. MacBook-Air:m103-vagrant-env rolando$ ls
  16. MacBook-Air:m103-vagrant-env rolando$ ls
  17. MacBook-Air:m103-vagrant-env rolando$ cd ..
  18. MacBook-Air:~ rolando$ ls
  19. Applications land.ovpn
  20. Applications (Parallels) law
  21. Desktop letsencrypt.log
  22. Documents lighttpd.conf
  23. Downloads lighttpd.pem
  24. Library log
  25. Movies m001
  26. Music m103-vagrant-env
  27. Nextcloud mobile.ovpn
  28. Nextcloud2 mongo.js
  29. Parallels mongodb-osx-x86_64-enterprise-4.0.4
  30. Pictures mongodb-osx-x86_64-enterprise-4.0.4.tar
  31. Public myfile.js
  32. VirtualBox VMs mymac.ovpn
  33. WebstormProjects newsapi
  34. boa.ovpn node-weather
  35. dano.ovpn node-weather2
  36. db-1540681831922.json node_modules
  37. db.json nodejs
  38. eagle.ovpn ownCloud
  39. elasticsearch package-lock.json
  40. familylaw phonepad.ovpn
  41. frog.gif prico.ovpn
  42. ipad.ovpn program.js
  43. iphone.ovpn udemy
  44. javascripting university
  45. json-server-api
  46. MacBook-Air:~ rolando$ cd university/
  47. .DS_Store m103/
  48. MacBook-Air:~ rolando$ cd university/m103/
  49. .DS_Store m103-vagrant-env/
  50. MacBook-Air:~ rolando$ cd university/m103/m103-vagrant-env/
  51. MacBook-Air:m103-vagrant-env rolando$ ls
  52. Vagrantfile provision-mongod
  53. dataset shared
  54. MacBook-Air:m103-vagrant-env rolando$ vagrant up
  55. Bringing machine 'mongod-m103' up with 'virtualbox' provider...
  56. ==> mongod-m103: Clearing any previously set forwarded ports...
  57. ==> mongod-m103: Clearing any previously set network interfaces...
  58. ==> mongod-m103: Preparing network interfaces based on configuration...
  59. mongod-m103: Adapter 1: nat
  60. mongod-m103: Adapter 2: hostonly
  61. ==> mongod-m103: Forwarding ports...
  62. mongod-m103: 22 (guest) => 2222 (host) (adapter 1)
  63. ==> mongod-m103: Running 'pre-boot' VM customizations...
  64. ==> mongod-m103: Booting VM...
  65. ==> mongod-m103: Waiting for machine to boot. This may take a few minutes...
  66. mongod-m103: SSH address: 127.0.0.1:2222
  67. mongod-m103: SSH username: vagrant
  68. mongod-m103: SSH auth method: private key
  69. ==> mongod-m103: Machine booted and ready!
  70. ==> mongod-m103: Checking for guest additions in VM...
  71. mongod-m103: The guest additions on this VM do not match the installed version of
  72. mongod-m103: VirtualBox! In most cases this is fine, but in rare cases it can
  73. mongod-m103: prevent things such as shared folders from working properly. If you see
  74. mongod-m103: shared folder errors, please make sure the guest additions within the
  75. mongod-m103: virtual machine match the version of VirtualBox you have installed on
  76. mongod-m103: your host and reload your VM.
  77. mongod-m103:
  78. mongod-m103: Guest Additions Version: 4.3.36
  79. mongod-m103: VirtualBox Version: 5.2
  80. ==> mongod-m103: Setting hostname...
  81. ==> mongod-m103: Configuring and enabling network interfaces...
  82. ==> mongod-m103: Mounting shared folders...
  83. mongod-m103: /shared => /Users/rolando/university/m103/m103-vagrant-env/shared
  84. mongod-m103: /dataset => /Users/rolando/university/m103/m103-vagrant-env/dataset
  85. mongod-m103: /vagrant => /Users/rolando/university/m103/m103-vagrant-env
  86. ==> mongod-m103: Machine already provisioned. Run `vagrant provision` or use the `--provision`
  87. ==> mongod-m103: flag to force provisioning. Provisioners marked to run always will still run.
  88. MacBook-Air:m103-vagrant-env rolando$ vagrant ssh
  89. Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-164-generic x86_64)
  90.  
  91. * Documentation: https://help.ubuntu.com/
  92.  
  93. System information as of Fri Jan 11 22:09:11 UTC 2019
  94.  
  95. System load: 0.74 Processes: 94
  96. Usage of /: 6.4% of 39.34GB Users logged in: 0
  97. Memory usage: 7% IP address for eth0: 10.0.2.15
  98. Swap usage: 0% IP address for eth1: 192.168.103.100
  99.  
  100. Graph this data and manage this system at:
  101. https://landscape.canonical.com/
  102.  
  103. Get cloud support with Ubuntu Advantage Cloud Guest:
  104. http://www.ubuntu.com/business/services/cloud
  105.  
  106. New release '16.04.5 LTS' available.
  107. Run 'do-release-upgrade' to upgrade to it.
  108.  
  109.  
  110. Last login: Fri Jan 11 02:52:45 2019 from 10.0.2.2
  111. vagrant@m103:~$ mongod --port 3000 --dbpath first_mongod --logpath first_mongod/mongod.log --fork
  112. about to fork child process, waiting until server is ready for connections.
  113. forked process: 1954
  114. child process started successfully, parent exiting
  115. vagrant@m103:~$ exit
  116. logout
  117. Connection to 127.0.0.1 closed.
  118. MacBook-Air:m103-vagrant-env rolando$ vagrant halt
  119. ==> mongod-m103: Attempting graceful shutdown of VM...
  120. MacBook-Air:m103-vagrant-env rolando$ ls
  121. Vagrantfile provision-mongod
  122. dataset shared
  123. MacBook-Air:m103-vagrant-env rolando$ pwd
  124. /Users/rolando/university/m103/m103-vagrant-env
  125. MacBook-Air:m103-vagrant-env rolando$ ls
  126. Vagrantfile provision-mongod
  127. dataset shared
  128. MacBook-Air:m103-vagrant-env rolando$ pwd
  129. /Users/rolando/university/m103/m103-vagrant-env
  130. MacBook-Air:m103-vagrant-env rolando$ ls
  131. Vagrantfile provision-mongod
  132. dataset shared
  133. MacBook-Air:m103-vagrant-env rolando$ vagrant up
  134. Bringing machine 'mongod-m103' up with 'virtualbox' provider...
  135. ==> mongod-m103: Clearing any previously set forwarded ports...
  136. ==> mongod-m103: Clearing any previously set network interfaces...
  137. ==> mongod-m103: Preparing network interfaces based on configuration...
  138. mongod-m103: Adapter 1: nat
  139. mongod-m103: Adapter 2: hostonly
  140. ==> mongod-m103: Forwarding ports...
  141. mongod-m103: 22 (guest) => 2222 (host) (adapter 1)
  142. ==> mongod-m103: Running 'pre-boot' VM customizations...
  143. ==> mongod-m103: Booting VM...
  144. ==> mongod-m103: Waiting for machine to boot. This may take a few minutes...
  145. mongod-m103: SSH address: 127.0.0.1:2222
  146. mongod-m103: SSH username: vagrant
  147. mongod-m103: SSH auth method: private key
  148. ==> mongod-m103: Machine booted and ready!
  149. ==> mongod-m103: Checking for guest additions in VM...
  150. mongod-m103: The guest additions on this VM do not match the installed version of
  151. mongod-m103: VirtualBox! In most cases this is fine, but in rare cases it can
  152. mongod-m103: prevent things such as shared folders from working properly. If you see
  153. mongod-m103: shared folder errors, please make sure the guest additions within the
  154. mongod-m103: virtual machine match the version of VirtualBox you have installed on
  155. mongod-m103: your host and reload your VM.
  156. mongod-m103:
  157. mongod-m103: Guest Additions Version: 4.3.36
  158. mongod-m103: VirtualBox Version: 5.2
  159. ==> mongod-m103: Setting hostname...
  160. ==> mongod-m103: Configuring and enabling network interfaces...
  161. ==> mongod-m103: Mounting shared folders...
  162. mongod-m103: /shared => /Users/rolando/university/m103/m103-vagrant-env/shared
  163. mongod-m103: /dataset => /Users/rolando/university/m103/m103-vagrant-env/dataset
  164. mongod-m103: /vagrant => /Users/rolando/university/m103/m103-vagrant-env
  165. ==> mongod-m103: Machine already provisioned. Run `vagrant provision` or use the `--provision`
  166. ==> mongod-m103: flag to force provisioning. Provisioners marked to run always will still run.
  167. MacBook-Air:m103-vagrant-env rolando$ vagrant ssh
  168. Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-164-generic x86_64)
  169.  
  170. * Documentation: https://help.ubuntu.com/
  171.  
  172. System information as of Fri Jan 11 22:36:32 UTC 2019
  173.  
  174. System load: 0.37 Processes: 89
  175. Usage of /: 6.4% of 39.34GB Users logged in: 0
  176. Memory usage: 6% IP address for eth0: 10.0.2.15
  177. Swap usage: 0% IP address for eth1: 192.168.103.100
  178.  
  179. Graph this data and manage this system at:
  180. https://landscape.canonical.com/
  181.  
  182. Get cloud support with Ubuntu Advantage Cloud Guest:
  183. http://www.ubuntu.com/business/services/cloud
  184.  
  185. New release '16.04.5 LTS' available.
  186. Run 'do-release-upgrade' to upgrade to it.
  187.  
  188.  
  189. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --logpath data/mongod.log --fork --bind_ip "127.0.0.1,192.168.1.100 --auth
  190. > ^C
  191. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --logpath data/mongod.log --fork --bind_ip "127.0.0.1,192.168.1.100" --auth
  192. about to fork child process, waiting until server is ready for connections.
  193. forked process: 1954
  194. ERROR: child process failed, exited with error number 100
  195. To see additional information in this output, start without the "--fork" option.
  196. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --logpath data/mongod.log --bind_ip "127.0.0.1,192.168.1.100" --auth --fork
  197. about to fork child process, waiting until server is ready for connections.
  198. forked process: 1959
  199. ERROR: child process failed, exited with error number 100
  200. To see additional information in this output, start without the "--fork" option.
  201. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --logpath data/mongod.log --bind_ip "127.0.0.1,192.168.1.100" --auth
  202. 2019-01-11T22:43:41.963+0000 I CONTROL [main] log file "/home/vagrant/data/mongod.log" exists; moved to "/home/vagrant/data/mongod.log.2019-01-11T22-43-41".
  203. vagrant@m103:~$ clear
  204.  
  205. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --logpath data/mongod.log --bind_ip "127.0.0.1,192.168.1.100" --auth
  206. 2019-01-11T22:43:55.198+0000 I CONTROL [main] log file "/home/vagrant/data/mongod.log" exists; moved to "/home/vagrant/data/mongod.log.2019-01-11T22-43-55".
  207. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --fork --bind_ip "127.0.0.1,192.168.1.100" --auth
  208. BadValue: --fork has to be used with --logpath or --syslog
  209. try 'mongod --help' for more information
  210. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --bind_ip "127.0.0.1,192.168.1.100" --auth
  211. 2019-01-11T22:45:24.023+0000 I CONTROL [initandlisten] MongoDB starting : pid=1971 port=2700 dbpath=data/db/ 64-bit host=m103
  212. 2019-01-11T22:45:24.023+0000 I CONTROL [initandlisten] db version v3.6.9
  213. 2019-01-11T22:45:24.024+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  214. 2019-01-11T22:45:24.025+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  215. 2019-01-11T22:45:24.025+0000 I CONTROL [initandlisten] allocator: tcmalloc
  216. 2019-01-11T22:45:24.026+0000 I CONTROL [initandlisten] modules: enterprise
  217. 2019-01-11T22:45:24.026+0000 I CONTROL [initandlisten] build environment:
  218. 2019-01-11T22:45:24.027+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  219. 2019-01-11T22:45:24.028+0000 I CONTROL [initandlisten] distarch: x86_64
  220. 2019-01-11T22:45:24.028+0000 I CONTROL [initandlisten] target_arch: x86_64
  221. 2019-01-11T22:45:24.029+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.100", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "data/db/" } }
  222. 2019-01-11T22:45:24.030+0000 I STORAGE [initandlisten] exception in initAndListen: NonExistentPath: Data directory data/db/ not found., terminating
  223. 2019-01-11T22:45:24.031+0000 I CONTROL [initandlisten] now exiting
  224. 2019-01-11T22:45:24.031+0000 I CONTROL [initandlisten] shutting down with code:100
  225. vagrant@m103:~$ mongod --port 2700 --dbpath data/db/ --bind_ip "127.0.0.1,192.168.1.100" --auth
  226. 2019-01-11T22:47:51.696+0000 I CONTROL [initandlisten] MongoDB starting : pid=1975 port=2700 dbpath=data/db/ 64-bit host=m103
  227. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] db version v3.6.9
  228. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  229. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  230. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] allocator: tcmalloc
  231. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] modules: enterprise
  232. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] build environment:
  233. 2019-01-11T22:47:51.697+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  234. 2019-01-11T22:47:51.698+0000 I CONTROL [initandlisten] distarch: x86_64
  235. 2019-01-11T22:47:51.698+0000 I CONTROL [initandlisten] target_arch: x86_64
  236. 2019-01-11T22:47:51.698+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.100", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "data/db/" } }
  237. 2019-01-11T22:47:51.698+0000 I STORAGE [initandlisten] exception in initAndListen: NonExistentPath: Data directory data/db/ not found., terminating
  238. 2019-01-11T22:47:51.698+0000 I CONTROL [initandlisten] now exiting
  239. 2019-01-11T22:47:51.698+0000 I CONTROL [initandlisten] shutting down with code:100
  240. vagrant@m103:~$ ls
  241. data first_mongod
  242. vagrant@m103:~$ mongod --port 2700 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.1.100" --auth
  243. 2019-01-11T22:48:27.776+0000 I CONTROL [initandlisten] MongoDB starting : pid=1979 port=2700 dbpath=/data/db/ 64-bit host=m103
  244. 2019-01-11T22:48:27.778+0000 I CONTROL [initandlisten] db version v3.6.9
  245. 2019-01-11T22:48:27.779+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  246. 2019-01-11T22:48:27.779+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  247. 2019-01-11T22:48:27.780+0000 I CONTROL [initandlisten] allocator: tcmalloc
  248. 2019-01-11T22:48:27.780+0000 I CONTROL [initandlisten] modules: enterprise
  249. 2019-01-11T22:48:27.782+0000 I CONTROL [initandlisten] build environment:
  250. 2019-01-11T22:48:27.783+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  251. 2019-01-11T22:48:27.783+0000 I CONTROL [initandlisten] distarch: x86_64
  252. 2019-01-11T22:48:27.783+0000 I CONTROL [initandlisten] target_arch: x86_64
  253. 2019-01-11T22:48:27.783+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.100", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  254. 2019-01-11T22:48:27.788+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  255. 2019-01-11T22:48:27.789+0000 I CONTROL [initandlisten] now exiting
  256. 2019-01-11T22:48:27.789+0000 I CONTROL [initandlisten] shutting down with code:48
  257. vagrant@m103:~$ ifconfig
  258. eth0 Link encap:Ethernet HWaddr 08:00:27:84:45:09
  259. inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
  260. inet6 addr: fe80::a00:27ff:fe84:4509/64 Scope:Link
  261. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  262. RX packets:2276 errors:0 dropped:0 overruns:0 frame:0
  263. TX packets:1405 errors:0 dropped:0 overruns:0 carrier:0
  264. collisions:0 txqueuelen:1000
  265. RX bytes:210071 (210.0 KB) TX bytes:180816 (180.8 KB)
  266.  
  267. eth1 Link encap:Ethernet HWaddr 08:00:27:da:c4:35
  268. inet addr:192.168.103.100 Bcast:192.168.103.255 Mask:255.255.255.0
  269. inet6 addr: fe80::a00:27ff:feda:c435/64 Scope:Link
  270. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  271. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  272. TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
  273. collisions:0 txqueuelen:1000
  274. RX bytes:0 (0.0 B) TX bytes:1596 (1.5 KB)
  275.  
  276. lo Link encap:Local Loopback
  277. inet addr:127.0.0.1 Mask:255.0.0.0
  278. inet6 addr: ::1/128 Scope:Host
  279. UP LOOPBACK RUNNING MTU:65536 Metric:1
  280. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  281. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  282. collisions:0 txqueuelen:0
  283. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  284.  
  285. vagrant@m103:~$ mongod --port 2700 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.1.103" --auth
  286. 2019-01-11T22:48:50.352+0000 I CONTROL [initandlisten] MongoDB starting : pid=1984 port=2700 dbpath=/data/db/ 64-bit host=m103
  287. 2019-01-11T22:48:50.353+0000 I CONTROL [initandlisten] db version v3.6.9
  288. 2019-01-11T22:48:50.353+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  289. 2019-01-11T22:48:50.354+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  290. 2019-01-11T22:48:50.354+0000 I CONTROL [initandlisten] allocator: tcmalloc
  291. 2019-01-11T22:48:50.355+0000 I CONTROL [initandlisten] modules: enterprise
  292. 2019-01-11T22:48:50.356+0000 I CONTROL [initandlisten] build environment:
  293. 2019-01-11T22:48:50.356+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  294. 2019-01-11T22:48:50.356+0000 I CONTROL [initandlisten] distarch: x86_64
  295. 2019-01-11T22:48:50.357+0000 I CONTROL [initandlisten] target_arch: x86_64
  296. 2019-01-11T22:48:50.359+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.103", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  297. 2019-01-11T22:48:50.361+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  298. 2019-01-11T22:48:50.362+0000 I CONTROL [initandlisten] now exiting
  299. 2019-01-11T22:48:50.362+0000 I CONTROL [initandlisten] shutting down with code:48
  300. vagrant@m103:~$ ifconfig
  301. eth0 Link encap:Ethernet HWaddr 08:00:27:84:45:09
  302. inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
  303. inet6 addr: fe80::a00:27ff:fe84:4509/64 Scope:Link
  304. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  305. RX packets:2360 errors:0 dropped:0 overruns:0 frame:0
  306. TX packets:1464 errors:0 dropped:0 overruns:0 carrier:0
  307. collisions:0 txqueuelen:1000
  308. RX bytes:215861 (215.8 KB) TX bytes:186678 (186.6 KB)
  309.  
  310. eth1 Link encap:Ethernet HWaddr 08:00:27:da:c4:35
  311. inet addr:192.168.103.100 Bcast:192.168.103.255 Mask:255.255.255.0
  312. inet6 addr: fe80::a00:27ff:feda:c435/64 Scope:Link
  313. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  314. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  315. TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
  316. collisions:0 txqueuelen:1000
  317. RX bytes:0 (0.0 B) TX bytes:1596 (1.5 KB)
  318.  
  319. lo Link encap:Local Loopback
  320. inet addr:127.0.0.1 Mask:255.0.0.0
  321. inet6 addr: ::1/128 Scope:Host
  322. UP LOOPBACK RUNNING MTU:65536 Metric:1
  323. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  324. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  325. collisions:0 txqueuelen:0
  326. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  327.  
  328. vagrant@m103:~$ ip
  329. Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
  330. ip [ -force ] -batch filename
  331. where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |
  332. tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |
  333. netns | l2tp | tcp_metrics | token }
  334. OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
  335. -f[amily] { inet | inet6 | ipx | dnet | bridge | link } |
  336. -4 | -6 | -I | -D | -B | -0 |
  337. -l[oops] { maximum-addr-flush-attempts } |
  338. -o[neline] | -t[imestamp] | -b[atch] [filename] |
  339. -rc[vbuf] [size]}
  340. vagrant@m103:~$ ip aadr
  341. Object "aadr" is unknown, try "ip help".
  342. vagrant@m103:~$ mongod --port 2700 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.1.103" --auth
  343. 2019-01-11T22:49:55.433+0000 I CONTROL [initandlisten] MongoDB starting : pid=1990 port=2700 dbpath=/data/db/ 64-bit host=m103
  344. 2019-01-11T22:49:55.434+0000 I CONTROL [initandlisten] db version v3.6.9
  345. 2019-01-11T22:49:55.435+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  346. 2019-01-11T22:49:55.435+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  347. 2019-01-11T22:49:55.436+0000 I CONTROL [initandlisten] allocator: tcmalloc
  348. 2019-01-11T22:49:55.436+0000 I CONTROL [initandlisten] modules: enterprise
  349. 2019-01-11T22:49:55.437+0000 I CONTROL [initandlisten] build environment:
  350. 2019-01-11T22:49:55.437+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  351. 2019-01-11T22:49:55.438+0000 I CONTROL [initandlisten] distarch: x86_64
  352. 2019-01-11T22:49:55.439+0000 I CONTROL [initandlisten] target_arch: x86_64
  353. 2019-01-11T22:49:55.440+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.103", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  354. 2019-01-11T22:49:55.441+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  355. 2019-01-11T22:49:55.442+0000 I CONTROL [initandlisten] now exiting
  356. 2019-01-11T22:49:55.442+0000 I CONTROL [initandlisten] shutting down with code:48
  357. vagrant@m103:~$ mongod --port 2700 --dbpath /data/db/ --bind_ip "localhost ,192.168.1.103" --auth
  358. 2019-01-11T22:50:34.372+0000 I CONTROL [initandlisten] MongoDB starting : pid=1994 port=2700 dbpath=/data/db/ 64-bit host=m103
  359. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] db version v3.6.9
  360. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  361. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  362. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] allocator: tcmalloc
  363. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] modules: enterprise
  364. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] build environment:
  365. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  366. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] distarch: x86_64
  367. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] target_arch: x86_64
  368. 2019-01-11T22:50:34.373+0000 I CONTROL [initandlisten] options: { net: { bindIp: "localhost ,192.168.1.103", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  369. 2019-01-11T22:50:34.375+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  370. 2019-01-11T22:50:34.375+0000 I CONTROL [initandlisten] now exiting
  371. 2019-01-11T22:50:34.375+0000 I CONTROL [initandlisten] shutting down with code:48
  372. vagrant@m103:~$ mongod --port 2700 --dbpath /data/db/ --bind_ip "192.168.1.103" --auth
  373. 2019-01-11T22:50:47.207+0000 I CONTROL [initandlisten] MongoDB starting : pid=1997 port=2700 dbpath=/data/db/ 64-bit host=m103
  374. 2019-01-11T22:50:47.208+0000 I CONTROL [initandlisten] db version v3.6.9
  375. 2019-01-11T22:50:47.209+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  376. 2019-01-11T22:50:47.210+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  377. 2019-01-11T22:50:47.211+0000 I CONTROL [initandlisten] allocator: tcmalloc
  378. 2019-01-11T22:50:47.211+0000 I CONTROL [initandlisten] modules: enterprise
  379. 2019-01-11T22:50:47.212+0000 I CONTROL [initandlisten] build environment:
  380. 2019-01-11T22:50:47.212+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  381. 2019-01-11T22:50:47.212+0000 I CONTROL [initandlisten] distarch: x86_64
  382. 2019-01-11T22:50:47.213+0000 I CONTROL [initandlisten] target_arch: x86_64
  383. 2019-01-11T22:50:47.214+0000 I CONTROL [initandlisten] options: { net: { bindIp: "192.168.1.103", port: 2700 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  384. 2019-01-11T22:50:47.215+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  385. 2019-01-11T22:50:47.215+0000 I CONTROL [initandlisten] now exiting
  386. 2019-01-11T22:50:47.215+0000 I CONTROL [initandlisten] shutting down with code:48
  387. vagrant@m103:~$ mongod --port 2700 --dbpath /data/db/ --bind_ip "192.168.1.103"
  388. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] MongoDB starting : pid=2000 port=2700 dbpath=/data/db/ 64-bit host=m103
  389. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] db version v3.6.9
  390. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  391. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  392. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] allocator: tcmalloc
  393. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] modules: enterprise
  394. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] build environment:
  395. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  396. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] distarch: x86_64
  397. 2019-01-11T22:50:57.250+0000 I CONTROL [initandlisten] target_arch: x86_64
  398. 2019-01-11T22:50:57.251+0000 I CONTROL [initandlisten] options: { net: { bindIp: "192.168.1.103", port: 2700 }, storage: { dbPath: "/data/db/" } }
  399. 2019-01-11T22:50:57.251+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  400. 2019-01-11T22:50:57.251+0000 I CONTROL [initandlisten] now exiting
  401. 2019-01-11T22:50:57.251+0000 I CONTROL [initandlisten] shutting down with code:48
  402. vagrant@m103:~$ mongod --port 27000 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.1.103" --auth
  403. 2019-01-11T22:51:31.682+0000 I CONTROL [initandlisten] MongoDB starting : pid=2003 port=27000 dbpath=/data/db/ 64-bit host=m103
  404. 2019-01-11T22:51:31.684+0000 I CONTROL [initandlisten] db version v3.6.9
  405. 2019-01-11T22:51:31.685+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  406. 2019-01-11T22:51:31.685+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  407. 2019-01-11T22:51:31.685+0000 I CONTROL [initandlisten] allocator: tcmalloc
  408. 2019-01-11T22:51:31.686+0000 I CONTROL [initandlisten] modules: enterprise
  409. 2019-01-11T22:51:31.686+0000 I CONTROL [initandlisten] build environment:
  410. 2019-01-11T22:51:31.686+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  411. 2019-01-11T22:51:31.686+0000 I CONTROL [initandlisten] distarch: x86_64
  412. 2019-01-11T22:51:31.686+0000 I CONTROL [initandlisten] target_arch: x86_64
  413. 2019-01-11T22:51:31.686+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.103", port: 27000 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  414. 2019-01-11T22:51:31.686+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  415. 2019-01-11T22:51:31.687+0000 I CONTROL [initandlisten] now exiting
  416. 2019-01-11T22:51:31.687+0000 I CONTROL [initandlisten] shutting down with code:48
  417. vagrant@m103:~$ ifconfig
  418. eth0 Link encap:Ethernet HWaddr 08:00:27:84:45:09
  419. inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
  420. inet6 addr: fe80::a00:27ff:fe84:4509/64 Scope:Link
  421. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  422. RX packets:2935 errors:0 dropped:0 overruns:0 frame:0
  423. TX packets:1808 errors:0 dropped:0 overruns:0 carrier:0
  424. collisions:0 txqueuelen:1000
  425. RX bytes:257427 (257.4 KB) TX bytes:218064 (218.0 KB)
  426.  
  427. eth1 Link encap:Ethernet HWaddr 08:00:27:da:c4:35
  428. inet addr:192.168.103.100 Bcast:192.168.103.255 Mask:255.255.255.0
  429. inet6 addr: fe80::a00:27ff:feda:c435/64 Scope:Link
  430. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  431. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  432. TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
  433. collisions:0 txqueuelen:1000
  434. RX bytes:0 (0.0 B) TX bytes:1596 (1.5 KB)
  435.  
  436. lo Link encap:Local Loopback
  437. inet addr:127.0.0.1 Mask:255.0.0.0
  438. inet6 addr: ::1/128 Scope:Host
  439. UP LOOPBACK RUNNING MTU:65536 Metric:1
  440. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  441. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  442. collisions:0 txqueuelen:0
  443. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  444.  
  445. vagrant@m103:~$ mongod --port 27000 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.1.100" --auth
  446. 2019-01-11T22:57:20.791+0000 I CONTROL [initandlisten] MongoDB starting : pid=2010 port=27000 dbpath=/data/db/ 64-bit host=m103
  447. 2019-01-11T22:57:20.791+0000 I CONTROL [initandlisten] db version v3.6.9
  448. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  449. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  450. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] allocator: tcmalloc
  451. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] modules: enterprise
  452. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] build environment:
  453. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  454. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] distarch: x86_64
  455. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] target_arch: x86_64
  456. 2019-01-11T22:57:20.792+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.1.100", port: 27000 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  457. 2019-01-11T22:57:20.793+0000 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
  458. 2019-01-11T22:57:20.793+0000 I CONTROL [initandlisten] now exiting
  459. 2019-01-11T22:57:20.793+0000 I CONTROL [initandlisten] shutting down with code:48
  460. vagrant@m103:~$ mongod --port 27000 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.103.100" --auth
  461. 2019-01-11T22:58:13.767+0000 I CONTROL [initandlisten] MongoDB starting : pid=2013 port=27000 dbpath=/data/db/ 64-bit host=m103
  462. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] db version v3.6.9
  463. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  464. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  465. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] allocator: tcmalloc
  466. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] modules: enterprise
  467. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] build environment:
  468. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  469. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] distarch: x86_64
  470. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] target_arch: x86_64
  471. 2019-01-11T22:58:13.768+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1,192.168.103.100", port: 27000 }, security: { authorization: "enabled" }, storage: { dbPath: "/data/db/" } }
  472. 2019-01-11T22:58:13.772+0000 I - [initandlisten] Detected data files in /data/db/ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
  473. 2019-01-11T22:58:13.772+0000 I STORAGE [initandlisten]
  474. 2019-01-11T22:58:13.772+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
  475. 2019-01-11T22:58:13.772+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
  476. 2019-01-11T22:58:13.774+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=488M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
  477. 2019-01-11T22:58:15.089+0000 I STORAGE [initandlisten] WiredTiger message [1547247495:89929][2013:0x7fca5f1e9a80], txn-recover: Main recovery loop: starting at 2/7552
  478. 2019-01-11T22:58:15.244+0000 I STORAGE [initandlisten] WiredTiger message [1547247495:244435][2013:0x7fca5f1e9a80], txn-recover: Recovering log 2 through 3
  479. 2019-01-11T22:58:15.339+0000 I STORAGE [initandlisten] WiredTiger message [1547247495:339271][2013:0x7fca5f1e9a80], txn-recover: Recovering log 3 through 3
  480. 2019-01-11T22:58:15.409+0000 I STORAGE [initandlisten] WiredTiger message [1547247495:409918][2013:0x7fca5f1e9a80], txn-recover: Set global recovery timestamp: 0
  481. 2019-01-11T22:58:15.439+0000 I CONTROL [initandlisten]
  482. 2019-01-11T22:58:15.440+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
  483. 2019-01-11T22:58:15.441+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
  484. 2019-01-11T22:58:15.442+0000 I CONTROL [initandlisten]
  485. 2019-01-11T22:58:15.443+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
  486. 2019-01-11T22:58:15.444+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
  487. 2019-01-11T22:58:15.444+0000 I CONTROL [initandlisten]
  488. 2019-01-11T22:58:15.494+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
  489. 2019-01-11T22:58:15.496+0000 I NETWORK [initandlisten] waiting for connections on port 27000
  490. ^C2019-01-11T22:58:29.542+0000 I CONTROL [signalProcessingThread] got signal 2 (Interrupt), will terminate after current cmd ends
  491. 2019-01-11T22:58:29.544+0000 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets...
  492. 2019-01-11T22:58:29.545+0000 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-27000.sock
  493. 2019-01-11T22:58:29.547+0000 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
  494. 2019-01-11T22:58:29.551+0000 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
  495. 2019-01-11T22:58:29.583+0000 I STORAGE [signalProcessingThread] shutdown: removing fs lock...
  496. 2019-01-11T22:58:29.584+0000 I CONTROL [signalProcessingThread] now exiting
  497. 2019-01-11T22:58:29.586+0000 I CONTROL [signalProcessingThread] shutting down with code:0
  498. vagrant@m103:~$ mongod --port 27000 --dbpath /data/db/ --bind_ip "127.0.0.1,192.168.103.100" --auth --fork
  499. BadValue: --fork has to be used with --logpath or --syslog
  500. try 'mongod --help' for more information
  501. vagrant@m103:~$ mongod --port 27000 --dbpath /data/db/ --logpath /data/mongd.log --bind_ip "127.0.0.1,192.168.103.100" --auth --fork
  502. about to fork child process, waiting until server is ready for connections.
  503. forked process: 2045
  504. child process started successfully, parent exiting
  505. vagrant@m103:~$ mongo
  506. MongoDB shell version v3.6.9
  507. connecting to: mongodb://127.0.0.1:27017
  508. 2019-01-11T23:00:40.498+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
  509. 2019-01-11T23:00:40.508+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
  510. connect@src/mongo/shell/mongo.js:257:13
  511. @(connect):1:6
  512. exception: connect failed
  513. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  514. > db.create.User({
  515. > user: "m103-admin",
  516. > pwd: "m103-pass",
  517. > roles: [
  518. > {role: "root",db:"admin"}
  519. > ]
  520. > })
  521. > ,
  522. >
  523. > '
  524. MongoDB shell version v3.6.9
  525. connecting to: mongodb://localhost:27000/admin
  526. Implicit session: session { "id" : UUID("48a3c444-4a5b-4cb9-aed6-d3794ab3add9") }
  527. MongoDB server version: 3.6.9
  528. 2019-01-11T23:04:13.560+0000 E QUERY [thread1] SyntaxError: expected expression, got end of script @(shell eval):11:0
  529. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  530. db.create.User({
  531. user: "m103-admin",
  532. pwd: "m103-pass",
  533. roles: [
  534. {role: "root",db:"admin"}
  535. ]
  536. })
  537. '
  538. MongoDB shell version v3.6.9
  539. connecting to: mongodb://localhost:27000/admin
  540. Implicit session: session { "id" : UUID("40ec617f-61cb-4d08-bb5c-cadd38e55d0b") }
  541. MongoDB server version: 3.6.9
  542. 2019-01-11T23:04:32.651+0000 E QUERY [thread1] TypeError: db.create.User is not a function :
  543. @(shell eval):2:1
  544. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  545. db.create.User({
  546. user: "m103-admin",
  547. pwd: "m103-pass",
  548. roles: [
  549. {role: "root",db:"admin"}
  550. ]
  551. })
  552. '
  553. MongoDB shell version v3.6.9
  554. connecting to: mongodb://localhost:27000/admin
  555. Implicit session: session { "id" : UUID("efa7bbaf-7a6d-456a-bae5-ffd07f0d08d0") }
  556. MongoDB server version: 3.6.9
  557. 2019-01-11T23:05:11.601+0000 E QUERY [thread1] TypeError: db.create.User is not a function :
  558. @(shell eval):2:1
  559. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  560. db.create.User({
  561. user: "m103-admin",
  562. pwd: "m103-pass",
  563. roles: [
  564. {role: "root",db:"admin"}
  565. ]
  566. })
  567. '
  568. MongoDB shell version v3.6.9
  569. connecting to: mongodb://localhost:27000/admin
  570. Implicit session: session { "id" : UUID("c18b5fbe-fdc3-4dd6-a970-096164da43fa") }
  571. MongoDB server version: 3.6.9
  572. 2019-01-11T23:06:59.761+0000 E QUERY [thread1] TypeError: db.create.User is not a function :
  573. @(shell eval):2:1
  574. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  575. db.create.User({
  576. user: "m103-admin",
  577. pwd: "m103-pass",
  578. roles: [
  579. {role: "root",db:"admin"}
  580. ]
  581. })
  582. '
  583. MongoDB shell version v3.6.9
  584. connecting to: mongodb://localhost:27000/admin
  585. Implicit session: session { "id" : UUID("fe7a1046-d1a6-46d3-b7e1-9c2ae2f8b31d") }
  586. MongoDB server version: 3.6.9
  587. 2019-01-11T23:08:06.470+0000 E QUERY [thread1] TypeError: db.create.User is not a function :
  588. @(shell eval):2:1
  589. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  590. db.create.User({
  591. user: "m103-admin",
  592. pwd: "m103-pass",
  593. roles: [
  594. {role: "root",db:"admin"}
  595. ]
  596. })
  597. '
  598. MongoDB shell version v3.6.9
  599. connecting to: mongodb://localhost:27000/admin
  600. Implicit session: session { "id" : UUID("efb42ab5-023b-472d-a46d-8f7f95b86187") }
  601. MongoDB server version: 3.6.9
  602. 2019-01-11T23:08:48.517+0000 E QUERY [thread1] TypeError: db.create.User is not a function :
  603. @(shell eval):2:1
  604. vagrant@m103:~$ clear
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  614. db.create.User({
  615. user: "m103-admin",
  616. pwd: "m103-pass",
  617. roles: [
  618. {role: "root",db:"admin"}
  619. ]
  620. })
  621. '
  622. MongoDB shell version v3.6.9
  623. connecting to: mongodb://localhost:27000/admin
  624. Implicit session: session { "id" : UUID("8a9c96f6-8a6e-4caf-a0d3-a18502aa53b0") }
  625. MongoDB server version: 3.6.9
  626. 2019-01-11T23:10:06.307+0000 E QUERY [thread1] TypeError: db.create.User is not a function :
  627. @(shell eval):2:1
  628. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  629. db.createUser({
  630. user: "m103-admin",
  631. pwd: "m103-pass",
  632. roles: [
  633. {role: "root",db:"admin"}
  634. ]
  635. })
  636. '
  637. MongoDB shell version v3.6.9
  638. connecting to: mongodb://localhost:27000/admin
  639. Implicit session: session { "id" : UUID("b50087b3-5a27-49b2-aab7-97c9774f40e4") }
  640. MongoDB server version: 3.6.9
  641. Successfully added user: {
  642. "user" : "m103-admin",
  643. "roles" : [
  644. {
  645. "role" : "root",
  646. "db" : "admin"
  647. }
  648. ]
  649. }
  650. vagrant@m103:~$ validate_lab_launch_mongd
  651. validate_lab_launch_mongd: command not found
  652. vagrant@m103:~$ validate_lab_launch_mongod
  653. 5a21c6dd403b6546001e79c0
  654. vagrant@m103:~$ validate_lab_launch_mongod
  655. 5a21c6dd403b6546001e79c0
  656. vagrant@m103:~$ pico /etc/mongod.conf
  657. vagrant@m103:~$ cp /etc/mongod.conf /etc/mongod.ocnf.bk
  658. cp: cannot create regular file '/etc/mongod.ocnf.bk': Permission denied
  659. vagrant@m103:~$ whoami
  660. vagrant
  661. vagrant@m103:~$ sudo cp /etc/mongod.conf /etc/mongod.conf.bk
  662. vagrant@m103:~$ sudo pico /etc/mongod.conf
  663. vagrant@m103:~$ mongo
  664. MongoDB shell version v3.6.9
  665. connecting to: mongodb://127.0.0.1:27017
  666. 2019-01-12T00:52:42.546+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
  667. 2019-01-12T00:52:42.547+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
  668. connect@src/mongo/shell/mongo.js:257:13
  669. @(connect):1:6
  670. exception: connect failed
  671. vagrant@m103:~$ ps -ef | grep mongod
  672. vagrant 2045 1 0 00:29 ? 00:00:13 mongod --port 27000 --dbpath /data/db/ --logpath /data/mongd.log --bind_ip 127.0.0.1,192.168.103.100 --auth --fork
  673. vagrant 2272 1931 0 00:54 pts/0 00:00:00 grep --color=auto mongod
  674. vagrant@m103:~$ kill 2045
  675. vagrant@m103:~$ mongo
  676. MongoDB shell version v3.6.9
  677. connecting to: mongodb://127.0.0.1:27017
  678. 2019-01-12T00:54:51.042+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
  679. 2019-01-12T00:54:51.043+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
  680. connect@src/mongo/shell/mongo.js:257:13
  681. @(connect):1:6
  682. exception: connect failed
  683. vagrant@m103:~$ mongod
  684. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] MongoDB starting : pid=2276 port=27017 dbpath=/data/db 64-bit host=m103
  685. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] db version v3.6.9
  686. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  687. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  688. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] allocator: tcmalloc
  689. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] modules: enterprise
  690. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] build environment:
  691. 2019-01-12T00:55:08.225+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  692. 2019-01-12T00:55:08.226+0000 I CONTROL [initandlisten] distarch: x86_64
  693. 2019-01-12T00:55:08.226+0000 I CONTROL [initandlisten] target_arch: x86_64
  694. 2019-01-12T00:55:08.226+0000 I CONTROL [initandlisten] options: {}
  695. 2019-01-12T00:55:08.226+0000 I - [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
  696. 2019-01-12T00:55:08.227+0000 I STORAGE [initandlisten]
  697. 2019-01-12T00:55:08.227+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
  698. 2019-01-12T00:55:08.227+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
  699. 2019-01-12T00:55:08.227+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=488M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
  700. 2019-01-12T00:55:09.171+0000 I STORAGE [initandlisten] WiredTiger message [1547254509:171044][2276:0x7f07b07eea80], txn-recover: Main recovery loop: starting at 4/17920
  701. 2019-01-12T00:55:09.312+0000 I STORAGE [initandlisten] WiredTiger message [1547254509:312674][2276:0x7f07b07eea80], txn-recover: Recovering log 4 through 5
  702. 2019-01-12T00:55:09.390+0000 I STORAGE [initandlisten] WiredTiger message [1547254509:390874][2276:0x7f07b07eea80], txn-recover: Recovering log 5 through 5
  703. 2019-01-12T00:55:09.462+0000 I STORAGE [initandlisten] WiredTiger message [1547254509:462978][2276:0x7f07b07eea80], txn-recover: Set global recovery timestamp: 0
  704. 2019-01-12T00:55:09.485+0000 I CONTROL [initandlisten]
  705. 2019-01-12T00:55:09.486+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
  706. 2019-01-12T00:55:09.486+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
  707. 2019-01-12T00:55:09.486+0000 I CONTROL [initandlisten]
  708. 2019-01-12T00:55:09.486+0000 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
  709. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
  710. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
  711. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
  712. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
  713. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
  714. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten]
  715. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten]
  716. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
  717. 2019-01-12T00:55:09.487+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
  718. 2019-01-12T00:55:09.488+0000 I CONTROL [initandlisten]
  719. 2019-01-12T00:55:09.488+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
  720. 2019-01-12T00:55:09.488+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
  721. 2019-01-12T00:55:09.488+0000 I CONTROL [initandlisten]
  722. 2019-01-12T00:55:09.508+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
  723. 2019-01-12T00:55:09.510+0000 I NETWORK [initandlisten] waiting for connections on port 27017
  724. ^C2019-01-12T00:55:18.190+0000 I CONTROL [signalProcessingThread] got signal 2 (Interrupt), will terminate after current cmd ends
  725. 2019-01-12T00:55:18.191+0000 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets...
  726. 2019-01-12T00:55:18.193+0000 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
  727. 2019-01-12T00:55:18.195+0000 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
  728. 2019-01-12T00:55:18.199+0000 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
  729. 2019-01-12T00:55:18.324+0000 I STORAGE [signalProcessingThread] shutdown: removing fs lock...
  730. 2019-01-12T00:55:18.325+0000 I CONTROL [signalProcessingThread] now exiting
  731. 2019-01-12T00:55:18.325+0000 I CONTROL [signalProcessingThread] shutting down with code:0
  732. vagrant@m103:~$ pico /etc/mongod.conf
  733.  
  734. Error reading /home/vagrant/.nano_history: Permission denied
  735.  
  736. Press Enter to continue starting nano.
  737.  
  738. vagrant@m103:~$ mongod --config "/etc/mongod.conf"
  739. about to fork child process, waiting until server is ready for connections.
  740. forked process: 2310
  741. child process started successfully, parent exiting
  742. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  743. db.createUser({
  744. user: "m103-admin",
  745. pwd: "m103-pass",
  746. roles: [
  747. {role: "root",db:"admin"}
  748. ]
  749. })
  750. '
  751. MongoDB shell version v3.6.9
  752. connecting to: mongodb://localhost:27000/admin
  753. Implicit session: session { "id" : UUID("5ee3c722-47b0-4f22-84f7-d6265676eba7") }
  754. MongoDB server version: 3.6.9
  755. 2019-01-12T00:57:28.538+0000 E QUERY [thread1] Error: couldn't add user: there are no users authenticated :
  756. _getErrorWithCode@src/mongo/shell/utils.js:25:13
  757. DB.prototype.createUser@src/mongo/shell/db.js:1437:15
  758. @(shell eval):2:1
  759. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  760. db.createUser({
  761. user: "m103-admin",
  762. pwd: "m103-pass",
  763. roles: [
  764. {role: "root",db:"admin"}
  765. ]
  766. })
  767. '
  768. MongoDB shell version v3.6.9
  769. connecting to: mongodb://localhost:27000/admin
  770. Implicit session: session { "id" : UUID("3a8ac3f9-0abf-40e9-b7c1-8e6dd8aeb2c5") }
  771. MongoDB server version: 3.6.9
  772. 2019-01-12T00:57:52.989+0000 E QUERY [thread1] Error: couldn't add user: there are no users authenticated :
  773. _getErrorWithCode@src/mongo/shell/utils.js:25:13
  774. DB.prototype.createUser@src/mongo/shell/db.js:1437:15
  775. @(shell eval):2:1
  776. vagrant@m103:~$ validate_lab_configuration_file
  777. You need to bind the IP address to `192.168.103.100`
  778. vagrant@m103:~$ ps -ef |grep mongod
  779. vagrant 2310 1 1 00:56 ? 00:00:02 mongod --config /etc/mongod.conf
  780. vagrant 2356 1931 0 00:59 pts/0 00:00:00 grep --color=auto mongod
  781. vagrant@m103:~$ kill 2310
  782. vagrant@m103:~$ sudo pico /etc/mongod.conf
  783. vagrant@m103:~$ mongod
  784. 2019-01-12T01:01:20.272+0000 I CONTROL [initandlisten] MongoDB starting : pid=2362 port=27017 dbpath=/data/db 64-bit host=m103
  785. 2019-01-12T01:01:20.273+0000 I CONTROL [initandlisten] db version v3.6.9
  786. 2019-01-12T01:01:20.274+0000 I CONTROL [initandlisten] git version: 167861a164723168adfaaa866f310cb94010428f
  787. 2019-01-12T01:01:20.274+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
  788. 2019-01-12T01:01:20.274+0000 I CONTROL [initandlisten] allocator: tcmalloc
  789. 2019-01-12T01:01:20.275+0000 I CONTROL [initandlisten] modules: enterprise
  790. 2019-01-12T01:01:20.275+0000 I CONTROL [initandlisten] build environment:
  791. 2019-01-12T01:01:20.275+0000 I CONTROL [initandlisten] distmod: ubuntu1404
  792. 2019-01-12T01:01:20.275+0000 I CONTROL [initandlisten] distarch: x86_64
  793. 2019-01-12T01:01:20.275+0000 I CONTROL [initandlisten] target_arch: x86_64
  794. 2019-01-12T01:01:20.275+0000 I CONTROL [initandlisten] options: {}
  795. 2019-01-12T01:01:20.275+0000 I - [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
  796. 2019-01-12T01:01:20.275+0000 I STORAGE [initandlisten]
  797. 2019-01-12T01:01:20.275+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
  798. 2019-01-12T01:01:20.275+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
  799. 2019-01-12T01:01:20.275+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=488M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),cache_cursors=false,compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
  800. 2019-01-12T01:01:21.226+0000 I STORAGE [initandlisten] WiredTiger message [1547254881:226332][2362:0x7f067ebc0a80], txn-recover: Main recovery loop: starting at 6/6528
  801. 2019-01-12T01:01:21.367+0000 I STORAGE [initandlisten] WiredTiger message [1547254881:367047][2362:0x7f067ebc0a80], txn-recover: Recovering log 6 through 7
  802. 2019-01-12T01:01:21.457+0000 I STORAGE [initandlisten] WiredTiger message [1547254881:457765][2362:0x7f067ebc0a80], txn-recover: Recovering log 7 through 7
  803. 2019-01-12T01:01:21.533+0000 I STORAGE [initandlisten] WiredTiger message [1547254881:533869][2362:0x7f067ebc0a80], txn-recover: Set global recovery timestamp: 0
  804. 2019-01-12T01:01:21.584+0000 I CONTROL [initandlisten]
  805. 2019-01-12T01:01:21.585+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
  806. 2019-01-12T01:01:21.586+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
  807. 2019-01-12T01:01:21.587+0000 I CONTROL [initandlisten]
  808. 2019-01-12T01:01:21.588+0000 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
  809. 2019-01-12T01:01:21.589+0000 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
  810. 2019-01-12T01:01:21.590+0000 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
  811. 2019-01-12T01:01:21.591+0000 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
  812. 2019-01-12T01:01:21.592+0000 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
  813. 2019-01-12T01:01:21.592+0000 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
  814. 2019-01-12T01:01:21.594+0000 I CONTROL [initandlisten]
  815. 2019-01-12T01:01:21.595+0000 I CONTROL [initandlisten]
  816. 2019-01-12T01:01:21.595+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
  817. 2019-01-12T01:01:21.596+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
  818. 2019-01-12T01:01:21.597+0000 I CONTROL [initandlisten]
  819. 2019-01-12T01:01:21.598+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
  820. 2019-01-12T01:01:21.599+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
  821. 2019-01-12T01:01:21.600+0000 I CONTROL [initandlisten]
  822. 2019-01-12T01:01:21.619+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
  823. 2019-01-12T01:01:21.622+0000 I NETWORK [initandlisten] waiting for connections on port 27017
  824. ^C2019-01-12T01:01:28.782+0000 I CONTROL [signalProcessingThread] got signal 2 (Interrupt), will terminate after current cmd ends
  825. 2019-01-12T01:01:28.783+0000 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets...
  826. 2019-01-12T01:01:28.783+0000 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
  827. 2019-01-12T01:01:28.784+0000 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
  828. 2019-01-12T01:01:28.787+0000 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
  829. 2019-01-12T01:01:28.840+0000 I STORAGE [signalProcessingThread] shutdown: removing fs lock...
  830. 2019-01-12T01:01:28.841+0000 I CONTROL [signalProcessingThread] now exiting
  831. 2019-01-12T01:01:28.842+0000 I CONTROL [signalProcessingThread] shutting down with code:0
  832. vagrant@m103:~$ mongod --config "/etc/mongod.conf"
  833. about to fork child process, waiting until server is ready for connections.
  834. forked process: 2393
  835. child process started successfully, parent exiting
  836. vagrant@m103:~$ validate_lab_configuration_file
  837. Client experienced a timeout when connecting to the database - check that mongod is running on the correct port, and that your user was created with the correct settings.
  838. vagrant@m103:~$ validate_lab_configuration_file
  839. Client experienced a timeout when connecting to the database - check that mongod is running on the correct port, and that your user was created with the correct settings.
  840. vagrant@m103:~$ ps -ef |grep mongod
  841. vagrant 2393 1 5 01:01 ? 00:00:01 mongod --config /etc/mongod.conf
  842. vagrant 2432 1931 0 01:02 pts/0 00:00:00 grep --color=auto mongod
  843. vagrant@m103:~$ validate_lab_configuration_file
  844. Client experienced a timeout when connecting to the database - check that mongod is running on the correct port, and that your user was created with the correct settings.
  845. vagrant@m103:~$ mongo admin --host localhost:27000 --eval '
  846. db.createUser({
  847. user: "m103-admin",
  848. pwd: "m103-pass",
  849. roles: [
  850. {role: "root",db:"admin"}
  851. ]
  852. })
  853. '
  854. MongoDB shell version v3.6.9
  855. connecting to: mongodb://localhost:27000/admin
  856. 2019-01-12T01:03:56.661+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27000, in(checking socket for error after poll), reason: Connection refused
  857. 2019-01-12T01:03:56.661+0000 E QUERY [thread1] Error: couldn't connect to server localhost:27000, connection attempt failed :
  858. connect@src/mongo/shell/mongo.js:257:13
  859. @(connect):1:6
  860. exception: connect failed
  861. vagrant@m103:~$ mongo admin --host localhost:27000 --eval
  862. Error parsing command line: the required argument for option '--eval' is missing
  863. try 'mongo --help' for more information
  864. vagrant@m103:~$ mongo admin --host localhost:27000
  865. MongoDB shell version v3.6.9
  866. connecting to: mongodb://localhost:27000/admin
  867. 2019-01-12T01:04:26.048+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27000, in(checking socket for error after poll), reason: Connection refused
  868. 2019-01-12T01:04:26.048+0000 E QUERY [thread1] Error: couldn't connect to server localhost:27000, connection attempt failed :
  869. connect@src/mongo/shell/mongo.js:257:13
  870. @(connect):1:6
  871. exception: connect failed
  872. vagrant@m103:~$ mongo admin --host localhost:27000
  873. MongoDB shell version v3.6.9
  874. connecting to: mongodb://localhost:27000/admin
  875. 2019-01-12T01:05:21.056+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27000, in(checking socket for error after poll), reason: Connection refused
  876. 2019-01-12T01:05:21.056+0000 E QUERY [thread1] Error: couldn't connect to server localhost:27000, connection attempt failed :
  877. connect@src/mongo/shell/mongo.js:257:13
  878. @(connect):1:6
  879. exception: connect failed
  880. vagrant@m103:~$ mongo
  881. MongoDB shell version v3.6.9
  882. connecting to: mongodb://127.0.0.1:27017
  883. 2019-01-12T01:05:23.976+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
  884. 2019-01-12T01:05:23.977+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
  885. connect@src/mongo/shell/mongo.js:257:13
  886. @(connect):1:6
  887. exception: connect failed
  888. vagrant@m103:~$ ps aux |grep mongod
  889. vagrant 2393 1.3 2.7 1097748 55748 ? Sl 01:01 0:03 mongod --config /etc/mongod.conf
  890. vagrant 2454 0.0 0.0 8868 644 pts/0 S+ 01:05 0:00 grep --color=auto mongod
  891. vagrant@m103:~$ validate_lab_configuration_file
  892. Client experienced a timeout when connecting to the database - check that mongod is running on the correct port, and that your user was created with the correct settings.
  893. vagrant@m103:~$ sudo pico /etc/mongod.conf
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902. GNU nano 2.2.6 File: /etc/mongod.conf
  903.  
  904. # mongod.conf
  905.  
  906. # for documentation of all options, see:
  907. # http://docs.mongodb.org/manual/reference/configuration-options/
  908.  
  909. # Where and how to store data.
  910. storage:
  911. dbPath: /data/db
  912. journal:
  913. enabled: true
  914. # engine:
  915. # mmapv1:
  916. # wiredTiger:
  917.  
  918. # where to write logging data.
  919. systemLog:
  920. destination: file
  921. logAppend: true
  922. path: /data/mongod.log
  923.  
  924. # network interfaces
  925. net:
  926. port: 27000
  927. bindIp: 127.0.0.2,192.168.103.100
  928.  
  929.  
  930. # how the process runs
  931. processManagement:
  932. timeZoneInfo: /usr/share/zoneinfo
  933. fork: true
  934. #security:
  935.  
  936. #operationProfiling:
  937.  
  938. #replication:
  939.  
  940. #sharding:
  941.  
  942. ## Enterprise-Only Options:
  943.  
  944. #auditLog:
  945.  
  946. #snmp:
  947.  
  948. security:
  949. authorization: enabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement