Cara menginstal Nodejs di Server Ubuntu
3 mins read

Cara menginstal Nodejs di Server Ubuntu

mrfdn.com – Jika Anda memiliki proyek web yang menggunakan nodejs, Anda mungkin ingin menjalankannya di server VPS.

Namun ketika saya cek keberadaan paket nodejs di direktori Ubuntu, ternyata tidak ada.

Jangan khawatir, Anda bisa menginstal nodejs secara manual. Sebaiknya proses nodejs dijalankan pada awal instalasi VPS, bukan pada saat program berjalan normal.

Berikut cara menginstal NodeJS di server Ubuntu menggunakan panduan langkah demi langkah.

  1. Akses server Anda dengan SSH
  2. Perbarui sistem Ubuntu dengan perintah apt update -y && apt upgrade -y
  3. Sekaligus cd di mana Anda ingin menginstal nodejs, di sini saya pilih /home/
  4. Buat folder disini, lalu beri nama sesuai keinginan, disini saya menggunakan nama nodejs mkdir nodejs
  5. Kunjungi website nodejs, lalu download. Setelah itu pilih paket Biner Pra-bangun
  6. Copy link paket download nodejs, lalu gunakan wget untuk mendownload file di server. cara menghubungkan terminal dengan perintah wget link-nodejswget https://nodejs.org/dist/v20.15.0/node-v20.15.0-linux-x64.tar.xz
  7. Setelah pengunduhan selesai, unzip file tar.xz di folder yang sama, tar -xvf node-xxxxx
  8. Masuk ke folder nodejs yang sudah anda download, lalu masuk ke folder bin. Sekarang kita memiliki file biner dari nodejs yang siap dieksekusi.
  9. Salin umpannya **/bin** di perubahan lingkungan Ubuntu. Untuk melakukan ini, klik pada perintah pwdlalu copy alamat folder nodejs, misal nodejs sudah bisa diakses sekarang /home/nodejs/node-xxxx/bin.
  10. Hapus/ubah file lingkungan variabel sudo nano /etc/environment lalu tambahkan di awal baris, lalu tambahkan titik dua (:) sebagai pemisah antara jalur lingkungan lainnya. Misalnya satu baris saja seperti ini: PATH="/home/nodejs/node-xxxx/bin:/usr/local/sbin:/usr/local/bin"
  11. Setelah itu simpan, lalu restart servernya.
  12. Sekarang server Ubuntu Anda siap menjalankan NodeJS.

Semoga ini bisa membantu, selamat mencoba.

PakarPBN

A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.

In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.

The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.

Jasa Backlink

Download Anime Batch