아래 참고.
https://github.com/Microsoft/WSL/issues/1822#issuecomment-330128322
sudo apt-get purge mongodb-org*
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
- ubuntu 16.04:
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
- ***Not in mongo's directions: but rather something i got from reading above comments:
sudo apt-get install mongodb
***At this point the version installed by mongo is an older version... for me ie.
mongod --version
db version v2.6.10
- sudo apt-get install -y mongodb-org
***Now, everything is installed correctly
mongod --version
db version v3.4.9
git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1604
distarch: x86_64
target_arch: x86_64
- ***Lastly, per the op's @Zx-EvM && @aseering above states that instead of the start command of mongod you would use the following command to start mongo:
sudo service mongodb start
그 밖에 참고할 곳
https://github.com/Microsoft/WSL/issues/796