Install Nginx dan Monggodb, Node JS, NVM dan Sample Project dari Git



Full Commandline on this video :
apt update
apt install nginx -y
apt install curl -y
apt install git -y
apt install wget -y
apt-get install gnupg -y
apt install ffmpeg -y
curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh -o install_nvm.sh
bash install_nvm.sh
source ~/.profile
nvm ls-remote
nvm i 14.15.4
npm install pm2 -g
wget -qO – https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add – //debian
echo “deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main” | tee /etc/apt/sources.list.d/mongodb-org-4.4.list //debian
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add – //ubuntu
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 //ubuntu
apt-get update
apt-get install -y mongodb-org
systemctl start mongod
systemctl status mongod
apt install python3-acme python3-certbot python3-mock python3-openssl python3-pkg-resources python3-pyparsing python3-zope.interface -y
apt install python3-certbot-nginx -y
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
sudo ln -s /usr/bin/python3 /usr/bin/python //ubuntu
youtube-dl –version
cd /data/
mkdir remote
cd remote
ls
git clone https://github.com/robertyulisman/internetCipitihBE.git
ls
mv internetCipitihBE APIappmusica
cd APIappmusica
nano .env
npm install [email protected] -f
node server.js
nano /etc/nginx/conf.d/api.mejormusica.xyz.conf
certbot –nginx -d api.mejormusica.xyz
cd /data/remote
cd APIappmusica
pm2 status
pm2 start server.js
cd /data/html/
git clone https://github.com/robertyulisman/internetCipitihFE.git
ls
mv internetCipitihFE.git appmusica
ls
npm i
nano /etc/nginx/sites-available/musica.mejormusica.xyz.conf
ln -s /etc/nginx/sites-available/musica.mejormusica.xyz.conf /etc/nginx/sites-enabled/
certbot –nginx -d musica.mejormusica.xyz
cd /data/html/appmusica
REACT_APP_BASE_URL=https://api.mejormusica.xyz/ npm run build
Download This Video

(Visited 5 times, 1 visits today)
treehoster
Author: treehoster

Share This Post
Have your say!
00