Cara Install 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 repositori Ubuntu, ternyata tidak ada.

Jangan khawatir, Anda bisa menginstal Nodejs secara manual. Akan lebih baik jika proses instalasi Nodejs dilakukan pada awal setup VPS, bukan pada saat proyek berjalan normal.

Berikut ini cara menginstal NodeJS di Server Ubuntu menggunakan panduan langkah demi langkah.

  1. Masuk ke server Anda menggunakan SSH
  2. Perbarui sistem Ubuntu dengan perintah apt update -y && apt upgrade -y
  3. Sekarang cd Di mana Anda ingin menginstal nodejs, di sini saya memilih /home/
  4. Buat folder disini, lalu beri nama sesuka anda, disini saya menggunakan nama nodejs mkdir nodejs
  5. Buka situs nodejs, lalu buka Unduhan. Setelah itu pilih paket Biner bawaan
  6. Copy link paket download nodejs, lalu gunakan wget untuk mendownload file ke server. Cara menempelkan perintah ke terminal wget link-nodejswget https://nodejs.org/dist/v20.15.0/node-v20.15.0-linux-x64.tar.xz
  7. Jika sudah selesai download, ekstrak file tar.xz pada folder yang sama, tar -xvf node-xxxxx
  8. Sekarang masuk ke folder nodejs yang Anda download, lalu masuk ke folder bin. Sekarang di folder ini kita memiliki file biner dari nodejs yang siap dieksekusi.
  9. Salin jalur folder **/bin** Dalam variabel lingkungan Ubuntu. Untuk melakukan ini, ketikkan perintah pwdKemudian copy alamat folder nodejs, misal nodejs sekarang sudah bisa diakses /home/nodejs/node-xxxx/bin.
  10. Buka/edit file variabel lingkungan sudo nano /etc/environment Kemudian paste di awal baris, lalu tambahkan titik dua (:) sebagai pemisah antar jalur lingkungan lainnya. Misalnya, satu baris saja terlihat seperti ini: PATH="/home/nodejs/node-xxxx/bin:/usr/local/sbin:/usr/local/bin"
  11. Setelah itu simpan dan restart server.
  12. Sekarang server Ubuntu Anda siap menjalankan NodeJS.

Semoga bermanfaat, 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

Tinggalkan Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *