mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
install: 默认使用清华源安装mongodb
This commit is contained in:
1 parent
728b49c553
commit
af70df2a5d
6 files changed
+10
-10
No files matched your search
@@ -10,7 +10,7 @@ apt-get -qq update
|
||||
echo "apt-get install curl wget gnupg -y"
|
||||
apt-get install -y curl wget gnupg >/dev/null
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
|
||||
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu $name/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
|
||||
echo "deb [ arch=amd64 ] https://mirrors.tuna.tsinghua.edu.cn/mongodb/apt/ubuntu $name/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
|
||||
echo "apt-get update"
|
||||
apt-get -qq update
|
||||
mkdir -p /data/db /data/file
|
||||
|
||||
Reference in new issue
Block a user