Git on Ubuntu
git remote add origin git@github.com:JantonZeng/eCAL.git
git clone git@github.com:JantonZeng/eCAL
(Need to set up SSH key)
Installing ipython
sudo -i #enter as root user (use exit to quit)
apt install python-pip
pip install --upgrade pip
pip install ipython jupyter numpy requests bs4 lxml requesocks pysocks psycopg2 psutil nbimporter
jupyter notebook
Start postgres ubuntu terminal
sudo -u postgres psql
//
sudo -i -u postgres #-i for interactive mode
VS.
Start postgres mac os
brew services start postgresql
psql db_teld
\dt
Modify postgresql config file:
SHOW config_file;
vim ---(directory)
max_files_per_process
max_connections
Restart Server:
Linux platforms results in "Too many open files" error:
- Increase “Open Files Limit”
/proc/
cat /proc/sys/fs/file-max
sudo vim /etc/sysctl.conf
ulimit -a
/etc/security/limits.conf
sudo service postgresql restart
- Check RAM usage
sudo swapon -s