Mongodb ติดตั้งอยู่ใน ubuntu

รหัสตัวอย่าง

23
0

mongodb ติดตั้งอยู่ใน ubuntu

sudo apt update
sudo apt install -y mongodb
//checking service and db
sudo systemctl status mongodb
or service mongodb status
//start service
sudo systemctl start mongod
or service mongodb start
//stop service
sudo systemctl stop mongod  or
service mongodb stop
7
0

เริ่ม mongodb บริการ ubuntu

sudo systemctl start mongod
sudo systemctl stop mongod
3
0

mongoclient ติดตั้ง ubuntu

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
2
0

mongodb ติดตั้ง ubuntu

follow the steps from the below link

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
1
0

วิธีติดตั้ง mongodb อยู่ในระบบลินุกซ์


How To Install MongoDB on Ubuntu 18.04 through command line :

Step 1 — Installing MongoDB

$ curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -

$ apt-key list

$ sudo apt update

$ sudo apt install mongodb-org



Step 2 — Starting the MongoDB Service and Testing the Database

Run the following systemctl command to start the MongoDB service:

$ sudo systemctl start mongod.service

$ sudo systemctl status mongod 
          
$ sudo systemctl enable mongod

$ mongo --eval 'db.runCommand({ connectionStatus: 1 })'
0
0

mongo ติดตั้งระบบลินุกซ์

sudo apt install mongodb-clients

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................