1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Node x MongoDB on MacOS X での設定

Posted at

nodeが入っていることが前提

$ npm  \-v

packageのinstall

$ npm install

MongoDB

brew確認

$ brew update

brewでmongoDB install

$ brew install mongodb

mongoDB start

server side DB start command

$ mongod

client side DB start command

$ mongo

node app start

$ node app

Apache

  • vhostsにdomainでvertial hostを作成
  • ReverseProxyをsetting
  • etc/hosts にlocal IP(127.0.0.1)にvhostsに当てたdomainを割り当て
    で、nodeとApacheを連携させる。

Access

ブラウザからvhostsで設定したdomainにアクセス

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?