Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Expose local postgres database over https

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
su - postgres
psql
createuser --interactive --pwprompt
createdb -O cleopatra egypt
//on root user
nano /etc/postgresql/10/main/postgresql.conf
listen_addresses = '*'
nano /etc/postgresql/10/main/pg_hba.conf
host    all             all             0.0.0.0/0            md5
sudo ufw allow 5432/tcp
sudo systemctl restart postgresql
Comment

PREVIOUS NEXT
Code Example
Shell :: rollback git 
Shell :: open xampp control panel from terminal ubuntu 20 
Shell :: linux chmod remove sticky bit 
Shell :: pygtk install ubuntu 
Shell :: ssh pc without password ubuntu 
Shell :: Installing mongodb over ubuntu 22.04 
Shell :: drop cache ubuntu 
Shell :: android check if package is installed 
Shell :: create ubuntu 20.04 with azure cli 
Shell :: npm@azure/msal-browser 2.3.0 
Shell :: git worktree remove 
Shell :: bash see active ports 
Shell :: convert all files and folders in current directory into zip in linux 
Shell :: linux find text in files recursively -include 
Shell :: progress bar file.tar.xz extract 
Shell :: install node js from ubuntu 
Shell :: shared folder virtualbox ubuntu 
Shell :: kill php ubuntu 
Shell :: cut first word 
Shell :: scp connection refused 
Shell :: kill process running on port linux 
Shell :: install deb linux ubuntu uninstall 
Shell :: az login acr -n 
Shell :: ssh no strict checking 
Shell :: tar extract gz 
Shell :: make executable bash script 
Shell :: Error: ENOSPC: System limit for number of file watchers reached, watch 
Shell :: git discard changes to one file 
Shell :: check user terminal 
Shell :: ubuntu not showing currently open application icons 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =