dacker

نصب MongoDB Community روی Ubuntu 22.04 (jammy)

MongoDB Community نسخهٔ 8.0.32 را روی Ubuntu 22.04 از مخزن داخلی dacker نصب کنید؛ بدون خطای ۴۰۳ و با سرعت داخلی. دستور زیر کامل است: کلید امضا، مخزن، نصب، راه‌اندازی و بررسی.

  • نسخه: 8.0.32
  • حجم مخزن: 193.3 MB
  • مدیر بسته: apt
  • آخرین تغییر:
  • مجوز: SSPL-1.0

دستور نصب MongoDB Community روی Ubuntu 22.04

نسخه

مرورگر شما انتخاب بدون JavaScript را پشتیبانی نمی‌کند؛ دستورهای همهٔ نسخه‌ها زیر هم آمده‌اند.

MongoDB Community 9.09.0.2

  • Ubuntu 22.04
  • 225.9 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-mongodb-9.0.list -o /etc/apt/sources.list.d/dacker-mongodb-9.0.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install mongodb-org
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now mongod
  5. ۵بررسی نصب
    # 5) Check the installationmongod --version

MongoDB Community 8.08.0.32

  • Ubuntu 22.04
  • 193.3 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-mongodb-8.0.list -o /etc/apt/sources.list.d/dacker-mongodb-8.0.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install mongodb-org
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now mongod
  5. ۵بررسی نصب
    # 5) Check the installationmongod --version

MongoDB Community 7.07.0.43

  • Ubuntu 22.04
  • 181.6 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-mongodb-7.0.list -o /etc/apt/sources.list.d/dacker-mongodb-7.0.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install mongodb-org
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo systemctl enable --now mongod
  5. ۵بررسی نصب
    # 5) Check the installationmongod --version

نسخهٔ بسته‌های MongoDB Community روی Ubuntu 22.04

همهٔ بسته‌های مخزن mongodb-8.0 برای این توزیع، مستقیم از manifest مخزن. نام بسته‌ها را برای apt install می‌توانید استفاده کنید.

بستهنسخه
mongodb-org8.0.32

وابستگی‌هایی که همراهشان از همین مخزن نصب می‌شوند: mongodb-database-tools، mongodb-mongosh، mongodb-org-database، mongodb-org-database-tools-extra، mongodb-org-mongos، mongodb-org-server، mongodb-org-shell، mongodb-org-tools

پیش از نصب روی Ubuntu 22.04

مجوز SSPL-1.0 از نوع source-available است، نه متن‌باز به تعریف OSI؛ پیش از استفادهٔ تجاری شرایطش را بخوانید.

خطاهای رایج نصب MongoDB Community روی Ubuntu 22.04

خطای NO_PUBKEY یا «is not signed» در apt update

output
W: GPG error: https://repo.dacker.ir/apt/mongodb-8.0 jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1363921AA23CD7DBE: The repository 'https://repo.dacker.ir/apt/mongodb-8.0 jammy InRelease' is not signed.

کلید امضای dacker روی سرور نیست یا فایل آن خراب است. مرحلهٔ ۱ بلوک بالا را دوباره اجرا کنید و بعد apt update را تکرار کنید.

bash · Ubuntu 22.04
sudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpgsudo apt update

بررسی اثر انگشت کلید ←

«Unable to locate package mongodb-org»

output
E: Unable to locate package mongodb-org

یا فایل مخزن (مرحلهٔ ۲) اضافه نشده، یا بعد از آن apt update اجرا نشده. با دستور زیر ببینید apt بسته را از repo.dacker.ir می‌شناسد یا نه؛ اگر خروجی خالی بود، مرحله‌های ۲ و ۳ را تکرار کنید.

bash · Ubuntu 22.04
apt-cache policy mongodb-org

mongod با «Illegal instruction» متوقف می‌شود

output
Illegal instruction (core dumped)mongod.service: Main process exited, code=dumped, status=4/ILL

MongoDB از نسخهٔ ۵ به بعد به پردازنده‌ای با پشتیبانی AVX نیاز دارد. روی بعضی سرورهای مجازی AVX به ماشین مجازی داده نمی‌شود. با دستور زیر بررسی کنید؛ اگر خروجی خالی بود، از میزبان بخواهید CPU را با پشتیبانی AVX در اختیار ماشین بگذارد.

bash · Ubuntu 22.04
grep -o -m1 avx /proc/cpuinfo

مرتبط

روی توزیع دیگری هستید؟

معمولاً کنار MongoDB روی Ubuntu 22.04 نصب می‌شوند:

همهٔ نسخه‌ها و توزیع‌های MongoDB Community ← · همهٔ محصولات برای Ubuntu 22.04 ←