{"id":6556,"date":"2024-12-17T09:19:08","date_gmt":"2024-12-17T05:49:08","guid":{"rendered":"https:\/\/actobit.com\/actomag\/?p=6556"},"modified":"2024-12-17T09:37:49","modified_gmt":"2024-12-17T06:07:49","slug":"install-mongodb-on-ubuntu-24","status":"publish","type":"post","link":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/","title":{"rendered":"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04"},"content":{"rendered":"<p style=\"text-align: justify;\">\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0635\u062d\u0628\u062a \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u06cc\u0627 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a SQL \u067e\u06cc\u0631\u0648\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0622\u0646\u200c\u0647\u0627 \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 \u0633\u0627\u062e\u062a\u0627\u0631\u06cc\u0627\u0641\u062a\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 MySQL \u0647\u0633\u062a\u0646\u062f. \u0627\u0645\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0641\u0631\u0645\u062a\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0645\u0627\u0646\u0646\u062f \u06af\u0631\u0627\u0641\u200c\u0647\u0627\u060c \u0627\u0633\u0646\u0627\u062f \u0648 \u063a\u06cc\u0631\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u060c \u0648 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u062e\u0648\u0628 \u0627\u0632 \u0622\u0646\u200c\u0647\u0627 MongoDB \u0627\u0633\u062a.<\/p>\n<p style=\"text-align: justify;\">MongoDB \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u0633\u0646\u0627\u062f \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0627\u0633\u062a \u0648 \u0628\u0627 \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u062e\u0632\u0646 \u0622\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a \u0645\u0646\u0627\u0628\u0639 \u062e\u0648\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u06f2\u06f4.\u06f0\u06f4 \u062e\u0648\u062f \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<h2 style=\"text-align: justify;\">\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 MongoDB \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u06f2\u06f4.\u06f0\u06f4<\/h2>\n<p style=\"text-align: justify;\">\u062f\u0644\u0627\u06cc\u0644 \u0632\u06cc\u0627\u062f\u06cc \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0648\u0646\u06af\u0648 \u062f\u06cc \u0628\u06cc \u0628\u0647 \u062c\u0627\u06cc \u0633\u0627\u06cc\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0648 \u0627\u0646\u0639\u0637\u0627\u0641\u200c\u067e\u0630\u06cc\u0631\u06cc \u0631\u0627 \u0628\u062f\u0633\u062a \u0622\u0648\u0631\u06cc\u062f\u060c MongoDB \u0628\u0647\u062a\u0631\u06cc\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0633\u062a. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c MongoDB \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u06f3\u06f2 \u0648 \u06f6\u06f4 \u0628\u06cc\u062a\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 MongoDB\u060c \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f1: \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0645\u062e\u0632\u0646<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0647\u0646\u06af\u0627\u0645 \u0646\u0635\u0628 MongoDB\u060c \u0631\u0648\u06cc\u06a9\u0631\u062f \u067e\u06cc\u0634\u0646\u0647\u0627\u062f\u06cc \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u062e\u0632\u0646 MongoDB \u0628\u0647 \u0644\u06cc\u0633\u062a \u0645\u0646\u0627\u0628\u0639 \u062e\u0648\u062f \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0627\u06cc\u0646\u062f\u06a9\u0633 \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u0627 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0622\u0646\u060c \u062a\u0627\u0632\u0647 \u06a9\u0646\u06cc\u0645.<\/p>\n<pre><code>$ sudo apt update\r\n<\/code><\/pre>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f2: \u0646\u0635\u0628 \u0628\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0648\u0627\u0628\u0633\u062a\u0647<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0642\u0628\u0644 \u0627\u0632 \u0646\u0635\u0628 MongoDB\u060c \u0686\u0646\u062f \u0628\u0633\u062a\u0647 \u0628\u0627\u06cc\u062f \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 Ubuntu 24.04 \u0645\u0627 \u0646\u0635\u0628 \u0628\u0627\u0634\u0646\u062f. \u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u0642\u0628\u0644\u0627\u064b \u0646\u0635\u0628 \u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u0627\u0645\u0627 \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0648\u0627\u0628\u0633\u062a\u0647 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<pre><code>$ sudo apt install gnupg wget apt-transport-https ca-certificates software-properties-common\r\n<\/code><\/pre>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f3: \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u06a9\u0644\u06cc\u062f GPG MongoDB<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0647\u0646\u06af\u0627\u0645 \u0646\u0635\u0628 \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u0627\u0632 \u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0634\u062e\u0635 \u062b\u0627\u0644\u062b\u060c \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u06a9\u0644\u06cc\u062f GPG \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0627\u0635\u0627\u0644\u062a \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u0631\u0627 \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0627\u0632 \u0622\u0633\u06cc\u0628 \u0631\u0633\u06cc\u062f\u0646 \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0645\u062e\u0632\u0646 MongoDB\u060c \u0645\u0627 \u06a9\u0644\u06cc\u062f GPG \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.<\/p>\n<pre><code>$ wget -qO- https:\/\/pgp.mongodb.com\/server-7.0.asc | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/mongodb-server-7.0.gpg &gt;\/dev\/null\r\n<\/code><\/pre>\n<p style=\"text-align: justify;\">\u06a9\u0644\u06cc\u062f GPG (GNU Privacy Guard) \u06cc\u06a9 \u0631\u0648\u0634 \u0631\u0645\u0632\u0646\u06af\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u062a\u0636\u0645\u06cc\u0646 \u0627\u0645\u0646\u06cc\u062a \u0648 \u0627\u0639\u062a\u0628\u0627\u0631 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0627\u0646\u062a\u0642\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u06a9\u0644\u06cc\u062f GPG \u0628\u0647\u200c\u0637\u0648\u0631 \u062e\u0627\u0635 \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0628\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631\u06cc \u0628\u0647 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u0631\u0648\u062f\u060c \u062a\u0627 \u0627\u0632 \u0635\u062d\u062a \u0648 \u0627\u0639\u062a\u0628\u0627\u0631 \u0628\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0646\u0635\u0628\u200c\u0634\u062f\u0647 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u0645.<\/p>\n<p style=\"text-align: justify;\">\u06a9\u0644\u06cc\u062f GPG \u0686\u06af\u0648\u0646\u0647 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f\u061f<\/p>\n<p style=\"text-align: justify;\">\u06f1. \u06a9\u0644\u06cc\u062f \u0639\u0645\u0648\u0645\u06cc (Public Key):<\/p>\n<p style=\"text-align: justify;\">&#8211; \u0627\u06cc\u0646 \u06a9\u0644\u06cc\u062f \u0628\u0631\u0627\u06cc \u0631\u0645\u0632\u06af\u0634\u0627\u06cc\u06cc \u0648 \u062a\u0627\u06cc\u06cc\u062f \u0635\u062d\u062a \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<br \/>\n&#8211; \u062f\u0631 \u0645\u062e\u0632\u0646\u200c\u0647\u0627\u06cc \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631\u06cc\u060c \u06a9\u0644\u06cc\u062f \u0639\u0645\u0648\u0645\u06cc \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u062a\u0648\u0632\u06cc\u0639 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u06a9\u0647 \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u0647\u0646\u06af\u0627\u0645 \u062f\u0627\u0646\u0644\u0648\u062f \u0627\u0632 \u0645\u062e\u0632\u0646\u200c\u0647\u0627\u06cc \u0634\u062e\u0635 \u062b\u0627\u0644\u062b \u0628\u0627\u06cc\u062f \u062a\u0648\u0633\u0637 \u0627\u06cc\u0646 \u06a9\u0644\u06cc\u062f \u062a\u0627\u06cc\u06cc\u062f \u0634\u0648\u0646\u062f \u062a\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u0645 \u0628\u0633\u062a\u0647 \u062f\u0633\u062a\u06a9\u0627\u0631\u06cc \u0646\u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p style=\"text-align: justify;\">\u06f2. \u06a9\u0644\u06cc\u062f \u062e\u0635\u0648\u0635\u06cc (Private Key):<\/p>\n<p style=\"text-align: justify;\">&#8211; \u06a9\u0644\u06cc\u062f \u062e\u0635\u0648\u0635\u06cc \u0641\u0642\u0637 \u062f\u0631 \u062f\u0633\u062a \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u0647 \u06cc\u0627 \u0646\u0627\u0634\u0631 \u0628\u0633\u062a\u0647 \u0627\u0633\u062a \u0648 \u0628\u0631\u0627\u06cc \u0627\u0645\u0636\u0627\u06cc \u0628\u0633\u062a\u0647\u200c\u0647\u0627\u06cc \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<br \/>\n&#8211; \u0627\u06cc\u0646 \u06a9\u0644\u06cc\u062f \u0628\u0647\u200c\u0637\u0648\u0631 \u0645\u062d\u0631\u0645\u0627\u0646\u0647 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0628\u0631\u0627\u06cc \u062f\u06cc\u06af\u0631\u0627\u0646 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0646\u06cc\u0633\u062a.<\/p>\n<p style=\"text-align: justify;\">\u0646\u062d\u0648\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u06a9\u0644\u06cc\u062f GPG \u062f\u0631 \u0646\u0635\u0628 \u0628\u0633\u062a\u0647\u200c\u0647\u0627<\/p>\n<p style=\"text-align: justify;\">&#8211; \u0648\u0642\u062a\u06cc \u0634\u0645\u0627 \u0628\u0633\u062a\u0647\u200c\u0627\u06cc \u0631\u0627 \u0627\u0632 \u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0634\u062e\u0635 \u062b\u0627\u0644\u062b (\u0645\u062b\u0644 MongoDB) \u062f\u0627\u0646\u0644\u0648\u062f \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c \u0645\u062e\u0632\u0646 \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0644\u06cc\u062f \u062e\u0635\u0648\u0635\u06cc \u062e\u0648\u062f \u0627\u0645\u0636\u0627 \u0645\u06cc\u200c\u06a9\u0646\u062f.<br \/>\n&#8211; \u0633\u067e\u0633\u060c \u0633\u06cc\u0633\u062a\u0645 \u0634\u0645\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0644\u06cc\u062f \u0639\u0645\u0648\u0645\u06cc (\u06a9\u0647 \u0642\u0628\u0644\u0627\u064b \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f) \u0627\u0645\u0636\u0627\u06cc \u0622\u0646 \u0628\u0633\u062a\u0647 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.<br \/>\n&#8211; \u0627\u06af\u0631 \u0627\u0645\u0636\u0627 \u0645\u0639\u062a\u0628\u0631 \u0628\u0627\u0634\u062f (\u06cc\u0639\u0646\u06cc \u0628\u0633\u062a\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u0646\u06a9\u0631\u062f\u0647 \u0628\u0627\u0634\u062f)\u060c \u0628\u0633\u062a\u0647 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0646\u0635\u0628 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u0645\u0627 \u0627\u06af\u0631 \u0627\u0645\u0636\u0627 \u0645\u0639\u062a\u0628\u0631 \u0646\u0628\u0627\u0634\u062f\u060c \u0633\u06cc\u0633\u062a\u0645 \u0647\u0634\u062f\u0627\u0631 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0628\u0633\u062a\u0647 \u062f\u0633\u062a\u06a9\u0627\u0631\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u0648 \u0627\u0632 \u0646\u0635\u0628 \u0622\u0646 \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f4: \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u062e\u0632\u0646 MongoDB<\/strong><\/p>\n<p style=\"text-align: justify;\">\u06af\u0627\u0645 \u0628\u0639\u062f\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0645\u062e\u0632\u0646 MongoDB \u0628\u0631\u0627\u06cc \u0646\u0633\u062e\u0647 Ubuntu Noble Numbat \u0634\u0645\u0627 \u0627\u0633\u062a. \u0645\u0627 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>echo<\/code> \u0628\u0631\u0627\u06cc \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u062e\u0632\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a \u0645\u0646\u0627\u0628\u0639 \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645. \u062f\u0633\u062a\u0648\u0631 <code>lsb_release -cs<\/code> \u0646\u0627\u0645 \u06a9\u062f (codename) \u0646\u0633\u062e\u0647 Ubuntu 24.04 \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u0647 \u0648 \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0645\u062e\u0632\u0646 \u0645\u0631\u0628\u0648\u0637\u0647 MongoDB \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<pre><code>$ echo \"deb [ arch=amd64,arm64 signed-by=\/usr\/share\/keyrings\/mongodb-server-7.0.gpg ] https:\/\/repo.mongodb.org\/apt\/ubuntu $(lsb_release -cs)\/mongodb-org\/7.0 multiverse\" | sudo tee -a \/etc\/apt\/sources.list.d\/mongodb-org-7.0.list\r\n<\/code><\/pre>\n<p style=\"text-align: justify;\">\u062f\u0648\u0628\u0627\u0631\u0647\u060c \u0645\u062e\u0632\u0646 \u062e\u0648\u062f \u0631\u0627 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0645\u062e\u0632\u0646 \u062c\u062f\u06cc\u062f \u0627\u0641\u0632\u0648\u062f\u0647\u200c\u0634\u062f\u0647 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0634\u0648\u062f.<\/p>\n<pre><code>$ sudo apt update\r\n<\/code><\/pre>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f5: \u0646\u0635\u0628 MongoDB<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0646 \u0645\u062e\u0632\u0646 MongoDB \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645\u060c \u0627\u06a9\u0646\u0648\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 MongoDB \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645.<\/p>\n<pre><code>$ sudo apt install mongodb-org\r\n<\/code><\/pre>\n<p style=\"text-align: justify;\">\u067e\u06a9\u06cc\u062c mongodb-org \u062f\u0631 \u0648\u0627\u0642\u0639 \u06cc\u06a9 \u0628\u0633\u062a\u0647\u200c \u062c\u0627\u0645\u0639 \u0627\u0633\u062a \u06a9\u0647 \u0634\u0627\u0645\u0644 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0648 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc MongoDB \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633 (\u0645\u0627\u0646\u0646\u062f Ubuntu) \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 MongoDB \u0631\u0627 \u0628\u0647\u200c\u0637\u0648\u0631 \u06a9\u0627\u0645\u0644 \u0648 \u0635\u062d\u06cc\u062d \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u0632 \u062a\u0645\u0627\u0645 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0622\u0646 \u0628\u0647\u0631\u0647\u200c\u0645\u0646\u062f \u0634\u0648\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u067e\u06a9\u06cc\u062c mongodb-org \u0634\u0627\u0645\u0644 \u0686\u0646\u062f\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0645\u062e\u062a\u0644\u0641 \u0627\u0633\u062a \u06a9\u0647 \u0647\u0631\u06a9\u062f\u0627\u0645 \u0628\u0631\u0627\u06cc \u0628\u062e\u0634 \u062e\u0627\u0635\u06cc \u0627\u0632 MongoDB \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647\u200c\u0627\u0646\u062f:<\/p>\n<p style=\"text-align: justify;\">\u06f1. mongodb-org-server:<br \/>\n&#8211; \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0634\u0627\u0645\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0635\u0644\u06cc \u0633\u0631\u0648\u0631 MongoDB \u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc (queries) \u0631\u0627 \u067e\u0631\u062f\u0627\u0632\u0634 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0647\u0633\u062a\u0647 \u0627\u0635\u0644\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f MongoDB \u0631\u0627 \u062a\u0634\u06a9\u06cc\u0644 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<p style=\"text-align: justify;\">\u06f2. mongodb-org-mongos:<br \/>\n&#8211; \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0634\u0627\u0645\u0644 Mongos \u0627\u0633\u062a \u06a9\u0647 \u06cc\u06a9 \u067e\u0631\u0648\u06a9\u0633\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0632\u06cc\u0639 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627 \u062f\u0631 MongoDB \u0627\u0633\u062a. Mongos \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u062e\u0648\u0634\u0647 (Cluster) \u0627\u0632 MongoDB \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u062a\u0648\u0632\u06cc\u0639 \u06a9\u0646\u06cc\u062f.<br \/>\n&#8211; \u0628\u0647 \u0637\u0648\u0631 \u062e\u0627\u0635\u060c \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0628\u0631\u0627\u06cc \u062e\u0648\u0634\u0647\u200c\u0628\u0646\u062f\u06cc (Sharding) MongoDB \u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0627\u0631\u062f\u060c \u062c\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0686\u0646\u062f\u06cc\u0646 \u0633\u0631\u0648\u0631 \u0645\u062e\u062a\u0644\u0641 \u062a\u0648\u0632\u06cc\u0639 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u06f3. mongodb-org-shell:<br \/>\n&#8211; \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0634\u0627\u0645\u0644 mongo shell \u0627\u0633\u062a \u06a9\u0647 \u0627\u0628\u0632\u0627\u0631 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 MongoDB \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631\u0627\u062a MongoDB \u0648 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<br \/>\n&#8211; Mongo shell \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0639\u0645\u0644\u06cc\u0627\u062a\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0645\u0627\u0646\u0646\u062f \u062f\u0631\u062c \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u060c \u062c\u0633\u062a\u062c\u0648\u060c \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0648 \u062d\u0630\u0641 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u06f4. mongodb-org-tools:<br \/>\n&#8211; \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0634\u0627\u0645\u0644 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc MongoDB \u0645\u0627\u0646\u0646\u062f mongodump\u060c mongorestore\u060c mongoexport\u060c mongoimport \u0648 \u0633\u0627\u06cc\u0631 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u200c\u06af\u06cc\u0631\u06cc\u060c \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0648 \u0648\u0627\u0631\u062f\/\u0635\u0627\u062f\u0631 \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0627\u0632 MongoDB \u0628\u0647 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u0631\u0648\u0646\u062f.<br \/>\n&#8211; \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u062a\u0627 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0627\u0632 MongoDB \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u06a9\u0631\u062f\u0647 \u06cc\u0627 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 MongoDB \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0646\u0635\u0628 \u067e\u06a9\u06cc\u062c mongodb-org \u0628\u0647 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u06cc\u06a9 \u0646\u0633\u062e\u0647 \u06a9\u0627\u0645\u0644 \u0627\u0632 MongoDB \u0631\u0627 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0634\u0627\u0645\u0644 \u062a\u0645\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 MongoDB \u0645\u06cc\u200c\u0628\u0627\u0634\u062f. \u0627\u06cc\u0646 \u067e\u06a9\u06cc\u062c \u0628\u0647\u200c\u0648\u06cc\u0698\u0647 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0646\u0635\u0628 \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 MongoDB \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0647\u0633\u062a\u0646\u062f\u060c \u0645\u0641\u06cc\u062f \u0627\u0633\u062a \u0632\u06cc\u0631\u0627 \u062a\u0645\u0627\u0645 \u0627\u062c\u0632\u0627\u06cc \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0647\u200c\u0637\u0648\u0631 \u06a9\u0627\u0645\u0644 \u062f\u0631 \u06cc\u06a9 \u067e\u06a9\u06cc\u062c \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f.<\/p>\n<p style=\"text-align: justify;\"><strong>\u0645\u0631\u062d\u0644\u0647 \u06f6: \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0648 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0633\u0631\u0648\u06cc\u0633 MongoDB<\/strong><\/p>\n<p style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628 MongoDB\u060c \u0647\u0645\u0686\u0646\u0627\u0646 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u0622\u0646 \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0633\u0631\u0648\u06cc\u0633 \u0622\u0646 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0627\u0632 \u0633\u0631\u0648\u06cc\u0633 <code>mongod.service<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645.<\/p>\n<pre><code>$ sudo systemctl enable mongod.service\r\n<\/code><\/pre>\n<pre><code>$ sudo systemctl start mongod.service\r\n<\/code><\/pre>\n<pre><code>$ sudo systemctl status mongod.service\r\n<\/code><\/pre>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f7: \u062a\u0633\u062a \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 MongoDB<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0645\u0627 \u0645\u0648\u0646\u06af\u0648 \u062f\u06cc \u0628\u06cc \u0631\u0627 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u062e\u0648\u062f \u0646\u0635\u0628 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645\u060c \u0627\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u0627\u062a\u0635\u0627\u0644 \u0631\u0627 \u062a\u0633\u062a \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u0645 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u06cc\u06a9 \u0631\u0648\u0634 \u0639\u0627\u0644\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 <code>mongosh<\/code> \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0648\u0636\u0639\u06cc\u062a \u0627\u062a\u0635\u0627\u0644 \u0627\u0633\u062a. \u0627\u06af\u0631 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0628\u0631\u0642\u0631\u0627\u0631 \u0634\u0648\u062f\u060c \u06cc\u06a9 \u0648\u0636\u0639\u06cc\u062a &#8220;OK&#8221; \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f.<\/p>\n<pre><code>$ mongosh --eval 'db.runCommand({ connectionStatus: 1 })'\r\n<\/code><\/pre>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f8: \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631\u0627\u06cc \u0627\u0645\u0646\u06cc\u062a \u0628\u0647\u062a\u0631<\/strong><\/p>\n<p style=\"text-align: justify;\">MongoDB \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u0627\u06cc\u0647\u200c\u0627\u06cc \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0633\u0627\u062f\u0647 \u0645\u0646\u0627\u0633\u0628 \u0647\u0633\u062a\u0646\u062f. \u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u0628\u062e\u0634 \u0627\u0645\u0646\u06cc\u062a\u06cc \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0622\u0646 \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f\u060c \u0628\u0647\u200c\u0648\u06cc\u0698\u0647 \u0627\u06af\u0631 \u0627\u0632 \u0622\u0646 \u062f\u0631 \u06cc\u06a9 \u0645\u062d\u06cc\u0637 Production \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f. \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06cc\u06a9 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u062e\u0634 \u0627\u0645\u0646\u06cc\u062a\u06cc \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<pre><code>$ sudo vim \/etc\/mongod.conf\r\n<\/code><\/pre>\n<p dir=\"ltr\">\n\t\t<div class=\"clearfix\"><\/div>\n\t\t<div class=\"toggle tie-sc-close\">\n\t\t\t<h3 class=\"toggle-head\">mongod.conf <span class=\"fa fa-angle-down\" aria-hidden=\"true\"><\/span><\/h3>\n\t\t\t<div class=\"toggle-content\">\n<p dir=\"ltr\">#security<br \/>\nsecurity:<br \/>\nauthorization: enabled<\/p>\n<p dir=\"ltr\">\n\t\t\t<\/div>\n\t\t<\/div>\n\t\n<p style=\"text-align: justify;\">\u0628\u0627 \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u06af\u0632\u06cc\u0646\u0647 authorization: enabled\u060c \u0633\u06cc\u0633\u062a\u0645 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a MongoDB \u0631\u0648\u0634\u0646 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u06cc\u0646 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0628\u0627\u06cc\u062f \u0647\u0648\u06cc\u062a \u062e\u0648\u062f \u0631\u0627 \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0646\u0646\u062f \u0648 \u0641\u0642\u0637 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646\u06cc \u06a9\u0647 \u062f\u0627\u0631\u0627\u06cc \u0645\u062c\u0648\u0632 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0646\u0627\u0633\u0628 \u0647\u0633\u062a\u0646\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u0646\u062f (\u0645\u0627\u0646\u0646\u062f \u062e\u0648\u0627\u0646\u062f\u0646\u060c \u0646\u0648\u0634\u062a\u0646\u060c \u062d\u0630\u0641 \u06cc\u0627 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627).<\/p>\n<p style=\"text-align: justify;\">\u0628\u0647\u200c\u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\u060c MongoDB \u062f\u0631 \u062d\u0627\u0644\u062a \u0628\u062f\u0648\u0646 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a (unauthenticated) \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f\u060c \u06cc\u0639\u0646\u06cc \u0647\u0631 \u06a9\u0633\u06cc \u06a9\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 MongoDB \u0645\u062a\u0635\u0644 \u0634\u0648\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f. \u0628\u0627 \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a\u060c \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0647\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0647\u0631 \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc\u060c \u06cc\u06a9 \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0627 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0634\u062e\u0635 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647\u060c \u0627\u0632 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u0645\u062a\u0646 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f \u0648 \u0633\u0631\u0648\u06cc\u0633 MongoDB \u0631\u0627 \u0631\u06cc\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<pre><code>$ sudo systemctl restart mongod.service\r\n<\/code><\/pre>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u06f9: \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0645\u062f\u06cc\u0631<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u0628\u062e\u0634\u06cc \u0627\u0632 \u062a\u0642\u0648\u06cc\u062a \u0627\u0645\u0646\u06cc\u062a \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u0634\u0644 MongoDB \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f \u0648 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u200c\u0627\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<p dir=\"ltr\">$ mongosh<\/p>\n<p dir=\"ltr\">$ use admin<\/p>\n<p style=\"text-align: justify;\">\u0633\u067e\u0633 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0645\u062f\u06cc\u0631 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0627\u0648 \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u06cc\u062f \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0627\u0632 \u0634\u0644 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f.<\/p>\n<p dir=\"ltr\">&gt; db.createUser({<br \/>\nuser: &#8220;admin&#8221;,<br \/>\npwd: &#8220;yourPassword&#8221;,<br \/>\nroles: [{ role: &#8220;root&#8221;, db: &#8220;admin&#8221; }]\n})<\/p>\n<p dir=\"ltr\">admin&gt; quit()<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u062a\u0627\u06cc\u06cc\u062f \u0627\u06cc\u0646\u200c\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0645\u062f\u06cc\u0631 \u0634\u0645\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u062a\u0639\u06cc\u06cc\u0646\u200c\u0634\u062f\u0647 \u0648\u0627\u0631\u062f MongoDB \u0634\u0648\u06cc\u062f.<\/p>\n<p dir=\"ltr\">$ mongosh -u username -p<\/p>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u062e\u0648\u062f\u060c \u0628\u0627\u06cc\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 MongoDB \u0631\u0627 \u0628\u0647 \u062f\u0633\u062a \u0622\u0648\u0631\u06cc\u062f.<\/p>\n<h2 dir=\"rtl\">\u0633\u0627\u062e\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 \u0645\u0648\u0646\u06af\u0648 \u062f\u06cc \u0628\u06cc<\/h2>\n<p dir=\"rtl\" style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0631 MongoDB\u060c \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0631\u0627\u06cc \u0622\u0646 \u0648 \u0627\u0639\u0637\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627 \u0628\u0647 \u0622\u0646\u060c \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n<p><strong>\u06f1. \u062f\u0633\u062a\u0631\u0633\u0649 \u0628\u0647 \u0634\u0644 MongoDB<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0627\u0628\u062a\u062f\u0627 \u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u0634\u0644 MongoDB \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f:<\/p>\n<pre><code>$ mongosh\r\n<\/code><\/pre>\n<p><strong>\u06f2. \u0627\u06cc\u062c\u0627\u062f \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/strong><\/p>\n<p style=\"text-align: justify;\">MongoDB \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u0648\u0644\u06cc\u0646 \u0628\u0627\u0631 \u0627\u0632 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c \u0622\u0646 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062c\u062f\u06cc\u062f\u060c \u06a9\u0627\u0641\u06cc\u0633\u062a \u0628\u0647 \u0622\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0633\u0648\u0626\u06cc\u0686 \u06a9\u0646\u06cc\u062f (\u0627\u06af\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c MongoDB \u0622\u0646 \u0631\u0627 \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u062f\u0627\u062f\u0647\u200c\u0627\u06cc \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f\u060c \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f). \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u200c\u0627\u06cc \u0628\u0647 \u0646\u0627\u0645 mydatabase:<\/p>\n<p dir=\"ltr\">&gt; use mydatabase<\/p>\n<p style=\"text-align: justify;\">\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 mydatabase \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0647 \u0622\u0646 \u0633\u0648\u0626\u06cc\u0686 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p><strong>\u06f3. \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/strong><\/p>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627\u06cc \u0645\u0634\u062e\u0635 \u0628\u0631\u0627\u06cc \u0622\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<h3 dir=\"ltr\"><span style=\"background-color: #f2f4f5; color: #222222; font-family: monospace, serif; font-size: 15px; font-weight: lighter; text-align: left;\">&gt; db.createUser({<\/span><\/h3>\n<pre><code>    user: \"myuser\",\r\n    pwd: \"mypassword\",\r\n    roles: [{ role: \"readWrite\", db: \"mydatabase\" }]\r\n})\r\n<\/code><\/pre>\n<p style=\"text-align: justify;\">user: \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f (\u0645\u062b\u0644\u0627\u064b &#8220;myuser&#8221;).<br \/>\npwd: \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u062c\u062f\u06cc\u062f (\u0645\u062b\u0644\u0627\u064b &#8220;mypassword&#8221;).<br \/>\nroles: \u0646\u0642\u0634\u06cc \u06a9\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062e\u062a\u0635\u0627\u0635 \u0645\u06cc\u200c\u062f\u0647\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644\u060c \u06a9\u0627\u0631\u0628\u0631 \u0646\u0642\u0634 readWrite \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 mydatabase \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0628\u0647 \u0627\u0648 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u062f \u0648 \u0628\u0646\u0648\u06cc\u0633\u062f.<\/p>\n<p><strong>\u06f4. \u0627\u0639\u0637\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631<\/strong><\/p>\n<p style=\"text-align: justify;\">MongoDB \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0631\u0627\u06cc \u062a\u0639\u06cc\u06cc\u0646 \u0627\u0642\u062f\u0627\u0645\u0627\u062a \u0642\u0627\u0628\u0644 \u0627\u0646\u062c\u0627\u0645 \u062a\u0648\u0633\u0637 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0628\u0631\u062e\u06cc \u0627\u0632 \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u0631\u0627\u06cc\u062c \u0639\u0628\u0627\u0631\u062a\u0646\u062f \u0627\u0632:<\/p>\n<p style=\"text-align: justify;\">readWrite: \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 \u0648 \u0646\u0648\u0634\u062a\u0646 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<br \/>\nread: \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0641\u0642\u0637 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u062f.<br \/>\ndbAdmin: \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0627\u0642\u062f\u0627\u0645\u0627\u062a\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc \u0628\u0631 \u0631\u0648\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u062f\u060c \u0645\u0627\u0646\u0646\u062f \u0627\u06cc\u0646\u062f\u06a9\u0633\u200c\u06af\u0630\u0627\u0631\u06cc\u060c \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0627\u0633\u06a9\u06cc\u0645\u0627\u06cc \u062f\u0627\u062f\u0647 \u0648 \u063a\u06cc\u0631\u0647.<br \/>\nuserAdmin: \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0648 \u0646\u0642\u0634\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a \u0627\u0632 \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627 \u0631\u0627 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u062f\u060c \u06a9\u0627\u0641\u06cc \u0627\u0633\u062a \u0641\u06cc\u0644\u062f roles \u0631\u0627 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644\u060c \u0628\u0631\u0627\u06cc \u062f\u0627\u062f\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a\u06cc \u06a9\u0627\u0645\u0644 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0646\u0642\u0634 dbAdmin \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre><code>&gt; db.createUser({\r\n    user: \"myadminuser\",\r\n    pwd: \"adminpassword\",\r\n    roles: [{ role: \"dbAdmin\", db: \"mydatabase\" }]\r\n})\r\n<\/code><\/pre>\n<p style=\"text-align: justify;\">\u06cc\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0686\u0646\u062f \u0646\u0642\u0634 \u0631\u0627 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u06cc\u062f\u060c \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u062a\u0631\u06a9\u06cc\u0628\u06cc \u0627\u0632 readWrite \u0648 dbAdmin:<\/p>\n<pre><code>&gt; db.createUser({\r\n    user: \"myuser\",\r\n    pwd: \"mypassword\",\r\n    roles: [\r\n        { role: \"readWrite\", db: \"mydatabase\" },\r\n        { role: \"dbAdmin\", db: \"mydatabase\" }\r\n    ]\r\n})\r\n<\/code><\/pre>\n<p><strong>\u06f5. \u0628\u0631\u0631\u0633\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647<\/strong><\/p>\n<p style=\"text-align: justify;\">\u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p dir=\"ltr\">&gt; show users<\/p>\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0641\u0647\u0631\u0633\u062a\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0641\u0639\u0644\u06cc \u0631\u0627 \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u0622\u0646\u0647\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<p><strong>\u06f6. \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0627\u0631\u0628\u0631<\/strong><\/p>\n<p style=\"text-align: justify;\">\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0627\u0631\u0628\u0631\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647\u060c \u0648\u0627\u0631\u062f MongoDB \u0634\u0648\u06cc\u062f:<\/p>\n<pre><code>$ mongosh -u myuser -p --authenticationDatabase mydatabase\r\n<\/code><\/pre>\n<p style=\"text-align: justify;\">\u0627\u06af\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0628\u0627\u0634\u062f\u060c \u0628\u0627\u06cc\u062f \u0642\u0627\u062f\u0631 \u0628\u0627\u0634\u06cc\u062f \u0628\u0627 \u0648\u0631\u0648\u062f \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 \u0648 \u0627\u0646\u062c\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0637\u0627\u0628\u0642 \u0628\u0627 \u0646\u0642\u0634\u200c\u0647\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647\u060c \u0648\u0627\u0631\u062f \u0634\u0648\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0635\u062d\u0628\u062a \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u06cc\u0627 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a SQL \u067e\u06cc\u0631\u0648\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0622\u0646\u200c\u0647\u0627 \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 \u0633\u0627\u062e\u062a\u0627\u0631\u06cc\u0627\u0641\u062a\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 MySQL \u0647\u0633\u062a\u0646\u062f. \u0627\u0645\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0641\u0631\u0645\u062a\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0645\u0627\u0646\u0646\u062f \u06af\u0631\u0627\u0641\u200c\u0647\u0627\u060c \u0627\u0633\u0646\u0627\u062f \u0648 \u063a\u06cc\u0631\u0647 &hellip;<\/p>\n","protected":false},"author":1417,"featured_media":6562,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130,324,228,191],"tags":[],"class_list":["post-6556","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-training","category-devops","category-others","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.0 (Yoast SEO v24.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04\" \/>\n<meta property=\"og:description\" content=\"\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0635\u062d\u0628\u062a \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u06cc\u0627 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a SQL \u067e\u06cc\u0631\u0648\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0622\u0646\u200c\u0647\u0627 \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 \u0633\u0627\u062e\u062a\u0627\u0631\u06cc\u0627\u0641\u062a\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 MySQL \u0647\u0633\u062a\u0646\u062f. \u0627\u0645\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0641\u0631\u0645\u062a\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0645\u0627\u0646\u0646\u062f \u06af\u0631\u0627\u0641\u200c\u0647\u0627\u060c \u0627\u0633\u0646\u0627\u062f \u0648 \u063a\u06cc\u0631\u0647 &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-17T05:49:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T06:07:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"686\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@acto_bit\" \/>\n<meta name=\"twitter:site\" content=\"@acto_bit\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\"},\"author\":{\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e\"},\"headline\":\"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04\",\"datePublished\":\"2024-12-17T05:49:08+00:00\",\"dateModified\":\"2024-12-17T06:07:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\"},\"wordCount\":181,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp\",\"articleSection\":[\"\u062f\u0627\u0646\u0634\u0646\u0627\u0645\u0647\",\"\u062f\u0648\u0627\u067e\u0633\",\"\u0633\u0627\u06cc\u0631\",\"\u0644\u06cc\u0646\u0648\u06a9\u0633\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\",\"url\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\",\"name\":\"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04\",\"isPartOf\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp\",\"datePublished\":\"2024-12-17T05:49:08+00:00\",\"dateModified\":\"2024-12-17T06:07:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage\",\"url\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp\",\"contentUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp\",\"width\":1200,\"height\":686,\"caption\":\"\u0646\u0635\u0628 MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/actobit.com\/actomag\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/actobit.com\/actomag\/#website\",\"url\":\"https:\/\/actobit.com\/actomag\/\",\"name\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"description\":\"\u0628\u0644\u0627\u06af \u062c\u0627\u0645\u0639 \u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"publisher\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/actobit.com\/actomag\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\",\"name\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"url\":\"https:\/\/actobit.com\/actomag\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png\",\"contentUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png\",\"width\":599,\"height\":98,\"caption\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/acto_bit\",\"https:\/\/www.instagram.com\/actobit\/\",\"https:\/\/www.linkedin.com\/in\/actobit\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e\",\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g\",\"caption\":\"\u0627\u062f\u0645\u06cc\u0646\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04","og_description":"\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0635\u062d\u0628\u062a \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u06cc\u0627 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a SQL \u067e\u06cc\u0631\u0648\u06cc \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u0648 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0622\u0646\u200c\u0647\u0627 \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 \u0633\u0627\u062e\u062a\u0627\u0631\u06cc\u0627\u0641\u062a\u0647 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0646\u0645\u0648\u0646\u0647\u200c\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 MySQL \u0647\u0633\u062a\u0646\u062f. \u0627\u0645\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u063a\u06cc\u0631\u0631\u0627\u0628\u0637\u0647\u200c\u0627\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0641\u0631\u0645\u062a\u200c\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u0645\u0627\u0646\u0646\u062f \u06af\u0631\u0627\u0641\u200c\u0647\u0627\u060c \u0627\u0633\u0646\u0627\u062f \u0648 \u063a\u06cc\u0631\u0647 &hellip;","og_url":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/","og_site_name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","article_published_time":"2024-12-17T05:49:08+00:00","article_modified_time":"2024-12-17T06:07:49+00:00","og_image":[{"width":1200,"height":686,"url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp","type":"image\/webp"}],"author":"\u0627\u062f\u0645\u06cc\u0646","twitter_card":"summary_large_image","twitter_creator":"@acto_bit","twitter_site":"@acto_bit","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637":"\u0627\u062f\u0645\u06cc\u0646","\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647":"10 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#article","isPartOf":{"@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/"},"author":{"name":"\u0627\u062f\u0645\u06cc\u0646","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e"},"headline":"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04","datePublished":"2024-12-17T05:49:08+00:00","dateModified":"2024-12-17T06:07:49+00:00","mainEntityOfPage":{"@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/"},"wordCount":181,"commentCount":0,"publisher":{"@id":"https:\/\/actobit.com\/actomag\/#organization"},"image":{"@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage"},"thumbnailUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp","articleSection":["\u062f\u0627\u0646\u0634\u0646\u0627\u0645\u0647","\u062f\u0648\u0627\u067e\u0633","\u0633\u0627\u06cc\u0631","\u0644\u06cc\u0646\u0648\u06a9\u0633"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/","url":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/","name":"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04","isPartOf":{"@id":"https:\/\/actobit.com\/actomag\/#website"},"primaryImageOfPage":{"@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage"},"image":{"@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage"},"thumbnailUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp","datePublished":"2024-12-17T05:49:08+00:00","dateModified":"2024-12-17T06:07:49+00:00","breadcrumb":{"@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#primaryimage","url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp","contentUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2024\/12\/install-mongodb-on-ubuntu-24-1.webp","width":1200,"height":686,"caption":"\u0646\u0635\u0628 MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04"},{"@type":"BreadcrumbList","@id":"https:\/\/actobit.com\/actomag\/1403\/install-mongodb-on-ubuntu-24\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/actobit.com\/actomag\/"},{"@type":"ListItem","position":2,"name":"\u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc MongoDB \u0628\u0631 \u0631\u0648\u06cc Ubuntu 24.04"}]},{"@type":"WebSite","@id":"https:\/\/actobit.com\/actomag\/#website","url":"https:\/\/actobit.com\/actomag\/","name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","description":"\u0628\u0644\u0627\u06af \u062c\u0627\u0645\u0639 \u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","publisher":{"@id":"https:\/\/actobit.com\/actomag\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/actobit.com\/actomag\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/actobit.com\/actomag\/#organization","name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","url":"https:\/\/actobit.com\/actomag\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/","url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png","contentUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png","width":599,"height":98,"caption":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a"},"image":{"@id":"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/acto_bit","https:\/\/www.instagram.com\/actobit\/","https:\/\/www.linkedin.com\/in\/actobit"]},{"@type":"Person","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e","name":"\u0627\u062f\u0645\u06cc\u0646","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g","caption":"\u0627\u062f\u0645\u06cc\u0646"}}]}},"_links":{"self":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/users\/1417"}],"replies":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/comments?post=6556"}],"version-history":[{"count":9,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6556\/revisions"}],"predecessor-version":[{"id":6566,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6556\/revisions\/6566"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/media\/6562"}],"wp:attachment":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/media?parent=6556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/categories?post=6556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/tags?post=6556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}