Installing LPNP Stack on Fedora 34

Step1: Login as root user

Step2: Installing Python2.7 on Linux (optional step, if your code base is not in python3)

Execute below commands to install python2.7

#verify if the current python is latest

$python -V
$dnf install python-devel
#sample output of above command will be python3.9

$dnf install gcc openssl-devel bzip2-devel libffi-devel zlib-devel

#compiling python2.7 on our system

$cd /opt
$wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tgz 
$tar zxf Python-2.7.16.tgz 
$cd Python-2.7.16
$./configure --enable-optimizations
$make altinstall
$which python2.7
# sample output /usr/local/bin/python2.7

$dnf install python-virtualenv

Step3: Installing git and nginx

$dnf install git
$dnf install nginx

Step4: Installing postgresql-server

$dnf install postgresql-server
$/usr/bin/postgresql-setup --initdb
$systemctl start postgresql
$sudo -u postgres psql postgres -p 5432
$postgres#

#now type \q to quit
Published:
comments powered by Disqus