sasha2002 Blog's

Just another blog from admin's

Install NodeJS and PostgreSQL —

NodeJS :
V8

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

V10

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

PostgreSQL :
Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ YOUR_UBUNTU_VERSION_HERE-pgdg main
Import the repository signing key, and update the package lists

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
sudo apt-key add -
sudo apt-get update

su – postgres
>
CREATE USER $LOGIN_HERE$ WITH password ‘$PASSWORD_HERE$’;
ALTER ROLE $LOGIN_HERE$ WITH SUPERUSER CREATEDB LOGIN;
CREATE DATABASE $DATABASE_HERE$ WITH OWNER $LOGIN_HERE$;


Categorised as: Linux

Comments are disabled on this post


Comments are closed.