0 mongodb
Is there any possible for installation of mongodb on ubuntu
Try running ALL the commands below, one by one
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Run Code Online (Sandbox Code Playgroud)
Taken from https://serverfault.com/a/728145/155817:
For installation on 32 bit OS, based on mongdodb docs you can try to install the tarball installation. That is (taken from the docs):
- download the binary files here or using
`curl -O https://fastdl.mongodb.org/linux/mongodb-linux-i686-3.0.6.tgz`
Run Code Online (Sandbox Code Playgroud)
extract the files
tar -zxvf mongodb-linux-i686-3.0.6.tgzcopy extracted files
Run Code Online (Sandbox Code Playgroud)mkdir -p mongodb cp -R -n mongodb-linux-i686-3.0.6/ mongodbadd it to PATH
Run Code Online (Sandbox Code Playgroud)#example in ~/.bashrc export PATH=<mongodb-install-directory>/bin:$PATHnote as noted in mongodb using this method will have some limitation
“这个 32 位旧版发行版不包括 SSL 加密,并且仅限于大约 2GB 的数据。一般来说,您应该使用 64 位版本。”
但最终取决于你。
| 归档时间: |
|
| 查看次数: |
12716 次 |
| 最近记录: |