RedHat8¶
Before installation¶
Please note that PostgreSQL YUM repository and Faraday, depend on EPEL repository for some packages. Users with RHEL, CentOS, etc. should install EPEL repo RPM along with PGDG repo RPMs to satisfy dependencies. In order to do that, follow these instructions:
If you are using RHEL, first run the following command:
Install EPEL using the following command:
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum repolist
RedHat8 Installation Guide for PostgreSQL¶
-
Install PostgreSQL >= 9.6 (local or remote). Follow the Postgres installation guide for Redhat: Postgres(RedHat)
-
Download Faraday installer (.rpm)
- GitHub for Community Edition
- Faraday Portal for Professional/Corporate
- Go to your Download directory and run the following command
sudo yum install ./faraday-server_amd64.rpm
If PostgreSQL is running in a remote machine please follow these instructions, if instead, it is running locally, you need to open the pg_hba.conf file.
There, you need to modify the localhost authentication type from "ident" to "md5". To do this, change host IPV4 local and IPV6 local from "ident" to "md5".
- Go to the file:
Edit the following lines:
$ nano /var/lib/pgsql/POSTGRESQL_VERSION/data/pg_hba.conf
# IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
-
Once installed, add your user to the faraday group and re-login
sudo usermod -aG faraday $USER
-
Restart PostgreSQL server and initialize the database(first time only)
This will generate a random password, use it for Faraday Web UI and change it
sudo systemctl restart postgresql-XX
sudo faraday-manage initdb
Important: In case of being in a SELinux environment run prior to the checks:
sudo setenforce 0
Redis install¶
sudo dnf install redis
Importing License¶
Step 1¶
Import license from Faraday Portal
faraday-manage import-license
Step 2¶
- Start and enable the autostart of Faraday server by running:
systemctl start faraday-server systemctl enable faraday-server systemctl start faraday-worker systemctl enable faraday-worker systemctl start faraday-worker-reports systemctl enable faraday-worker-reports
We highly recommend you to check our First Steps guide.