windows:mongodb

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
windows:mongodb [2020/03/10 10:33] – 作成 ともやんwindows:mongodb [2020/03/20 15:40] (現在) – [インストール] ともやん
行 5: 行 5:
       overflow: scroll;       overflow: scroll;
       overflow-x: hidden;       overflow-x: hidden;
-      font-size: 12px;+      font-size: 10px;
     }     }
     #source_code pre {     #source_code pre {
行 11: 行 11:
       overflow: scroll;       overflow: scroll;
       overflow-x: hidden;       overflow-x: hidden;
-      font-size: 12px;+      font-size: 10px;
     }     }
   </style>   </style>
行 72: 行 72:
 'mongodb' は 'extras/vcredist2017' のインストールを提案します。 'mongodb' は 'extras/vcredist2017' のインストールを提案します。
 </WRAP> </WRAP>
 +
 +===== 動作確認 =====
 +<code powershell>
 +PS > mongod --version
 +db version v4.2.3
 +git version: 6874650b362138df74be53d366bbefc321ea32d4
 +allocator: tcmalloc
 +modules: none
 +build environment:
 +    distmod: 2012plus
 +    distarch: x86_64
 +    target_arch: x86_64
 +</code>
 +
 +===== 設定 =====
 +<code powershell>
 +PS > vi ~\scoop\apps\mongodb\current\bin\mongod.cfg
 +</code>
 +<WRAP prewrap 100% #source_code>
 +<code autoconf ~\scoop\apps\mongodb\current\bin\mongod.cfg>
 +# mongod.conf
 +
 +# for documentation of all options, see:
 +#   http://docs.mongodb.org/manual/reference/configuration-options/
 +
 +# Where and how to store data.
 +storage:
 +  dbPath: C:\Users\tomoyan\scoop\apps\mongodb\4.2.3\data
 +  journal:
 +    enabled: true
 +#  engine:
 +#  mmapv1:
 +#  wiredTiger:
 +
 +# where to write logging data.
 +systemLog:
 +  destination: file
 +  logAppend: true
 +  path:  C:\Users\tomoyan\scoop\apps\mongodb\4.2.3\log\mongod.log
 +
 +# network interfaces
 +net:
 +  port: 27017
 +  bindIp: 127.0.0.1
 +
 +
 +#processManagement:
 +
 +#security:
 +
 +#operationProfiling:
 +
 +#replication:
 +
 +#sharding:
 +
 +## Enterprise-Only Options:
 +
 +#auditLog:
 +
 +#snmp:
 +</code>
 +</WRAP>
 +
 +===== サービスのインストールと起動 =====
 +<code powershell>
 +PS > sudo mongod --install 
 +PS > sudo net start MongoDB
 +MongoDB サービスを開始します.
 +MongoDB サービスは正常に開始されました。
 +</code>
 +
 +===== 参考文献 =====
 +[[https://gist.github.com/basir/a812d6870c12d8bd2d53981bbeeefa7c|Scoop.md]]\\
  
  • windows/mongodb.1583804007.txt.gz
  • 最終更新: 2020/03/10 10:33
  • by ともやん