• Quick guide to install various software on your linux/ubuntu system.

    Redis:
    sudo apt-get install redis-server
    redis-cli
    pip3 install django-redis
    systemctl stop redis-server
    systemctl start redis-server

    Apache
    sudo apt-get install apache2
    sudo service apache2 status
    sudo service apache2 restart
    PIP
    sudo sudo apt-get update
    sudo apt-get -y install python3-pip
    pip3 --version
    Python
    sudo apt-get install python3.6
    python3 --version
    sudo pip3 install django
    sudo apt-get update
    Postgres
    sudo apt install postgresql postgresql-contrib
    sudo apt-get update
    sudo -i -u postgres
    Vim pg_hba.conf -> change socket connection from peer to md5
    sudo service postgresql restart
    sudo service postgresql status
    MemcacheD
    sudo apt-get install memcached
    sudo apt-get install libmemcached-tools
    sudo apt-get update
    sudo apt-get update -y
    Elastic Search
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer -y
    sudo apt-get install oracle-java8-installer
    sudo apt install openjdk-8-jdk
    java -version
    wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
    sudo sh -c 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" > /etc/apt/sources.list.d/elastic-7.x.list'
    sudo apt update
    sudo apt install elasticsearch
    sudo systemctl enable elasticsearch.service
    sudo systemctl start elasticsearch.service
    curl -X GET "localhost:9200/"
    sudo journalctl -u elasticsearch
    sudo pip3 install -r requirements.txt


    Install Librarier
    sudo pip3 install xhtml2pdf
    sudo pip3 install xlwt
    ModuleNotFoundError: No module named 'psycopg2'
    sudo pip3 install drf-generators
    sudo pip3 install djangorestframework
    sudo apt-get install postgresql
    sudo apt-get install postgresql-client libpq5 libpq-dev
    sudo pip3 install pandas
    sudo pip3 install xhtml2pdf
    sudo pip3 install pdfkit
    install django version 2.2.6


    python3 manage.py runserver 0.0.0.0:8000
    sudo apt-get install python3-pip apache2 libapache2-mod-wsgi-py3
    WSGI PROCESS APACHE MODULES

    sudo apt-get install libapache2-mod-wsgi-py3

  • Quick guide to install various software on your linux/ubuntu system.<br /> <br /> Redis:<br /> sudo apt-get install redis-server<br /> redis-cli<br /> pip3 install django-redis<br /> systemctl stop redis-server<br /> systemctl start redis-server<br /> <br /> Apache<br /> sudo apt-get install apache2<br /> sudo service apache2 status<br /> sudo service apache2 restart<br /> PIP<br /> sudo sudo apt-get update<br /> sudo apt-get -y install python3-pip<br /> pip3 --version<br /> Python<br /> sudo apt-get install python3.6<br /> python3 --version<br /> sudo pip3 install django<br /> sudo apt-get update<br /> Postgres<br /> sudo apt install postgresql postgresql-contrib <br /> sudo apt-get update<br /> sudo -i -u postgres<br /> Vim pg_hba.conf -&gt; change socket connection from peer to md5<br /> sudo service postgresql restart<br /> sudo service postgresql status<br /> MemcacheD<br /> sudo apt-get install memcached<br /> sudo apt-get install libmemcached-tools <br /> sudo apt-get update<br /> sudo apt-get update -y<br /> Elastic Search<br /> sudo add-apt-repository ppa:webupd8team/java<br /> sudo apt-get update<br /> sudo apt-get install oracle-java8-installer -y<br /> sudo apt-get install oracle-java8-installer<br /> sudo apt install openjdk-8-jdk<br /> java -version<br /> wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -<br /> sudo sh -c &#039;echo &quot;deb https://artifacts.elastic.co/packages/7.x/apt stable main&quot; &gt; /etc/apt/sources.list.d/elastic-7.x.list&#039;<br /> sudo apt update<br /> sudo apt install elasticsearch<br /> sudo systemctl enable elasticsearch.service<br /> sudo systemctl start elasticsearch.service<br /> curl -X GET &quot;localhost:9200/&quot;<br /> sudo journalctl -u elasticsearch<br /> sudo pip3 install -r requirements.txt<br /> <br /> <br /> Install Librarier<br /> sudo pip3 install xhtml2pdf<br /> sudo pip3 install xlwt<br /> ModuleNotFoundError: No module named &#039;psycopg2&#039;<br /> sudo pip3 install drf-generators<br /> sudo pip3 install djangorestframework<br /> sudo apt-get install postgresql<br /> sudo apt-get install postgresql-client libpq5 libpq-dev<br /> sudo pip3 install pandas<br /> sudo pip3 install xhtml2pdf<br /> sudo pip3 install pdfkit<br /> install django version 2.2.6<br /> <br /> <br /> python3 manage.py runserver 0.0.0.0:8000<br /> sudo apt-get install python3-pip apache2 libapache2-mod-wsgi-py3<br /> WSGI PROCESS APACHE MODULES<br /> <br /> sudo apt-get install libapache2-mod-wsgi-py3 : Shorten, Share, Bookmark