安装MongoDB 与postgres类似的,可以打开用到的,也就是说安装两个
source ~/env_file
linlin@linlin-i5:~$ asdf install mongodb 5.0.6
download_url https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-5.0.6.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243 0 243 0 0 210 0 --:--:-- 0:00:01 --:--:-- 210
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
linlin@linlin-i5:~$ asdf install mongodb 5.0.6
download_url https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-5.0.6.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243 0 243 0 0 199 0 --:--:-- 0:00:01 --:--:-- 199
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
linlin@linlin-i5:~$ asdf install mongodb 5.0.6
download_url https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-5.0.6.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243 0 243 0 0 358 0 --:--:-- --:--:-- --:--:-- 358
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
linlin@linlin-i5:~$ cd ~/.asdf/
linlin@linlin-i5:~/.asdf$ ls
asdf.elv asdf.sh bin completions defaults downloads installs LICENSE README.md scripts shims tmp
asdf.fish ballad-of-asdf.md CHANGELOG.md CONTRIBUTING.md docs help.txt lib plugins repository SECURITY.md test version.txt
linlin@linlin-i5:~/.asdf$ git pull
remote: Enumerating objects: 505, done.
remote: Counting objects: 100% (265/265), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 505 (delta 202), reused 222 (delta 176), pack-reused 240
Receiving objects: 100% (505/505), 494.76 KiB | 37.00 KiB/s, done.
Resolving deltas: 100% (296/296), completed with 61 local objects.
From https://github.com/asdf-vm/asdf
* [new branch] dependabot/npm_and_yarn/docs/vue/component-compiler-utils-3.3.0 -> origin/dependabot/npm_and_yarn/docs/vue/component-compiler-utils-3.3.0
* [new branch] dependabot/npm_and_yarn/docs/vuepress-vite-2.0.0-beta.45 -> origin/dependabot/npm_and_yarn/docs/vuepress-vite-2.0.0-beta.45
* [new branch] dependabot/npm_and_yarn/docs/vuepress/plugin-back-to-top-2.0.0-beta.48 -> origin/dependabot/npm_and_yarn/docs/vuepress/plugin-back-to-top-2.0.0-beta.48
* [new branch] dependabot/npm_and_yarn/docs/vuepress/plugin-search-2.0.0-beta.48 -> origin/dependabot/npm_and_yarn/docs/vuepress/plugin-search-2.0.0-beta.48
* [new branch] dependabot/npm_and_yarn/docs/vuepress/plugin-shiki-2.0.0-beta.48 -> origin/dependabot/npm_and_yarn/docs/vuepress/plugin-shiki-2.0.0-beta.48
* [new branch] docs/bump-site-generator-version -> origin/docs/bump-site-generator-version
+ 0505834...9689352 gh-pages -> origin/gh-pages (forced update)
7493f40..a953095 master -> origin/master
* [new branch] release-v0.11.0 -> origin/release-v0.11.0
+ 8a6a0c9...1c8648d tb/no-unset-vars -> origin/tb/no-unset-vars (forced update)
* [new branch] tmp -> origin/tmp
* [new tag] v0.10.0 -> v0.10.0
* [new tag] v0.10.1 -> v0.10.1
* [new tag] v0.10.2 -> v0.10.2
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
linlin@linlin-i5:~/.asdf$ ls
asdf.elv asdf.sh bin completions defaults downloads installs LICENSE README.md scripts shims tmp
asdf.fish ballad-of-asdf.md CHANGELOG.md CONTRIBUTING.md docs help.txt lib plugins repository SECURITY.md test version.txt
linlin@linlin-i5:~/.asdf$ cd plugins/
linlin@linlin-i5:~/.asdf/plugins$ ls
mongodb nodejs postgres redis ruby
linlin@linlin-i5:~/.asdf/plugins$ cd ^C
linlin@linlin-i5:~/.asdf/plugins$ rm mongodb/ -rf
linlin@linlin-i5:~/.asdf/plugins$ asdf plugin-add mongodb https://github.com/sylph01/asdf-mongodb.git
(reverse-i-search)`mong': asdf plugin-add mongodb https://github.com/sylph01/asdf-^Cngodb.git
linlin@linlin-i5:~/.asdf/plugins$ asdf install mongodb 5.0.6
download_url https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-5.0.6.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 243 0 243 0 0 191 0 --:--:-- 0:00:01 --:--:-- 191
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
linlin@linlin-i5:~/.asdf/plugins$ docker pull mongo:5.0.6
^C
linlin@linlin-i5:~/.asdf/plugins$ ^C
linlin@linlin-i5:~/.asdf/plugins$ sudo docker pull mongo:5.0.6
[sudo] password for linlin:
5.0.6: Pulling from library/mongo
Digest: sha256:fed6248ae0bb0d54c0448eb786c87120737eedc522172ee1536ad47789782348
Status: Image is up to date for mongo:5.0.6
docker.io/library/mongo:5.0.6