Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-popular-posts domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/koalabiru.my.id/httpdocs/wp-includes/functions.php on line 6121
Instalasi MongoDB 4.4 pada Ubuntu 18.04 – Koalabiru

Instalasi MongoDB 4.4 pada Ubuntu 18.04

Pada kali ini penulis akan menjeleskan bagaimana cara menginstall MongoDB pada server anda, pada kali ini pada server Ubuntu 18.04

Langkah 1 – Install MongoDB Desktop

Import MongoDB public GPG Key, apabila berhasil maka akan muncul respon OK

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

Membuat list untuk MongoDB

$ sudo echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

Lakukan update pada Ubuntu terlebih dahulu

$ sudo apt update

Install MongoDB Package

$ sudo apt-get install -y mongodb-org

Langkah 2 – Jalankan MongoDB

Jalankan MongoDB yang telah diinstall

$ sudo systemctl start mongod.service
$ sudo systemctl status mongod

Apabila sudah running lalu enable MongoDB

$sudo systemctl enable mongod

$sudo systemctl stop mongod

$sudo systemctl restart mongod

Lalu untuk memulainya dapat menggunakan command berikut:

$ sudo mongo

I Hear and I Forget
I See and I Remember
I Do and I Understand

Confucius

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *