- How To Install PostgreSQL Server Into Linux, Debian, Ubuntu, CentOS, Mint, Fedora, Redhat?
- Show PostgreSQL Package Version For Ubuntu, Debian, Mint, Kali with Apt
- Show PostgreSQL Package Version For Fedora, CentOS, RedHat with Yum
- Install PostgreSQL Package Version For Ubuntu, Debian, Mint, Kali with Apt
- Install PostgreSQL Package Version For Fedora, CentOS, RedHat with Yum
- Install With Setup File For All Linux Versions
- Postgresql install problem in Kali Linux #42
- Comments
- Nieto- commented Apr 24, 2013
- meefik commented Apr 24, 2013
- Nieto- commented Apr 24, 2013
- http://bugs.kali.org/view.php?id=264#c372
- How to Install Latest PostgreSQL 9.x on Kali Linux Easy Guide
- Install PostgreSQL 9.x on Kali
- Как установить PostgreSQL на Kali Linux, создать базу данных и таблицу?
- Что такое Bug Bounty или как заработать деньги на этичном хакинге?
- Курсы по пентесту. Где пройти обучение и стать специалистом в этой области.
- Что такое форензика или другими словами компьютерная криминалистика?
- Работа с MySQL на Kali Linux (полное руководство)
- Что такое база данных?
How To Install PostgreSQL Server Into Linux, Debian, Ubuntu, CentOS, Mint, Fedora, Redhat?
PostgreSQL is very popular open source database. It is used by big companies like Google, Facebook etc. PostgreSQL can be used without a cost. In this tutorial we will look how to install PostgreSQL into Linux distributions like Debian, Ubuntu, Mint, Fedora, CentOS, RedHat by using different ways like package management or downloading setup file.
Show PostgreSQL Package Version For Ubuntu, Debian, Mint, Kali with Apt
In apt-get or apt based distros the postgresql server is named as postgresql . We can print and show package related information with show option. This will list information like version, section, download size, installed size.
Show PostgreSQL Package Version For Ubuntu, Debian, Mint, Kali with Apt
Show PostgreSQL Package Version For Fedora, CentOS, RedHat with Yum
In yum or dnf based distros postgresql is named as postgresql-server . We can show detailed packages information like version, arch, size release by using info option.
Show PostgreSQL Package Version For Fedora, CentOS, RedHat with Yum
Install PostgreSQL Package Version For Ubuntu, Debian, Mint, Kali with Apt
Now we can install related postgresql package as we have enough information about the package. We will use install option in order to install postgresql server. We will also provide -y to automatically accept questions about installation.
Install PostgreSQL Package Version For Fedora, CentOS, RedHat with Yum
We will use yum or dnf package manager for rpm type. We will use install option and provide the postgre sql package name which is postgresql-server . We will also provide -y in order to automatically accept asked questions.
Install With Setup File For All Linux Versions
We have option to installe PostgreSQL Server from binary without using package manager. The adventage of using setup file is getting the latest version of the PostgreSQL Server. But the downside is there may be some incompabilities with the current distribution. We can download the binary setup file from link below.
Источник
Postgresql install problem in Kali Linux #42
Comments
Nieto- commented Apr 24, 2013
I try to install postgresql in kali linux in my samsung galaxy tab 2 10.1 and when i try to install with apt-get upgrade i recibe the next message:
root@localhost: # apt-get upgrade
Reading package lists. Done
Building dependency tree
Reading state information. Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up postgresql-9.1 (9.1.9-1) .
[. ] Starting PostgreSQL 9.1 database server: main[. ] The PostgreSQL server failed to start. Please check the log output: 2013-04-24 13:33:29 CDT FATAL: co[FAILot access private key file «server.key»: Permission denied . failed!
failed!
invoke-rc.d: initscript postgresql, action «start» failed.
dpkg: error processing postgresql-9.1 (—configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-9.1; however: Package postgresql-9.1 is not configured yet. dpkg: error processing postgresql (—configure): dependency problems — leaving unconfigured Errors were encountered while processing:
postgresql-9.1
postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@localhost:
some suggest to correct this probblem?
The text was updated successfully, but these errors were encountered:
meefik commented Apr 24, 2013
Nieto- commented Apr 24, 2013
is not working i have the same result
root@localhost:/home/android# usermod -G aid_inet postgres
root@localhost:/home/android# apt-get upgrade
Reading package lists. Done
Building dependency tree
Reading state information. Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up postgresql-9.1 (9.1.9-1) .
[. ] Starting PostgreSQL 9.1 database server: main[. ] The PostgreSQL server failed to start. Please check the log output: 2013-04-24 14:22:13 CDT FATAL: co[FAILot access private key file «server.key»: Permission denied . failed!
failed!
invoke-rc.d: initscript postgresql, action «start» failed.
dpkg: error processing postgresql-9.1 (—configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-9.1; however:
Package postgresql-9.1 is not configured yet.
dpkg: error processing postgresql (—configure):
dependency problems — leaving unconfigured
Errors were encountered while processing:
postgresql-9.1
postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@localhost:/home/android#
i create acertificate signed for «server.key» but i get the same problem , i was reading the next
«———————————————————————-
(0000372) muts (administrator) — 2013-04-15 03:57
http://bugs.kali.org/view.php?id=264#c372
This is not bug. Postgresql wont install in a Linux Deploy chroot without first
whitelisting it in update-rc.d.
Issue History
Date Modified Username Field Change
================================================== ====================
2013-04-14 11:51 clearday New Issue
2013-04-14 11:51 clearday File Added: attachments.zip
2013-04-15 03:57 muts Note Added: 0000372
2013-04-15 03:57 muts Status new => closed
================================================== ====================»
i try to do
update-rc.d postgresql defaults
or
update-rc.d postgresql enable
but is the same problem i mean, how do i whitelisting it in update-rc.d .
Источник
How to Install Latest PostgreSQL 9.x on Kali Linux Easy Guide
Install PostgreSQL 9.x on Kali
The Tutorial Shows You How to Install and Getting-Started with PostgreSQL 9.x Database for Kali i386/amd64 Kde/Gnome/Xfce/Lxde Linux.
As with every annual release, PostgreSQL 9.x includes many New Features to make working with PostgreSQL easier, more flexible and more fun for application developers, administrators and architects.
The New PostgreSQL Features include:
- Additional JSON constructor and extractor methods
- Automatically updatable VIEWs
- Parallel pg_dump to speed backups of large databases
- LATERAL JOINs
Further, PostgreSQL 9.4’s User-Defined Background Workers allow developers to write task managers, request handlers, parallel processors, queuing tools and other helper applications to enable PostgreSQL as a workload coordinator.
One example of this already released is Mongres, a background worker which accepts MongoDB queries, interprets them and passes them on to PostgreSQL.
To the PostgreSQL Database Installation Kali Guide Bottom You find Link to Quick-Start with PostgreSQL on Kali.
Download PostgreSQL DB for Linux
Open a Terminal Shell emulator window
(Press “Enter” to Execute Commands)
Access the Target location
(Usually Downloads go in the Home folder or when Downloaded with Firefox may be into the Temporary directory /tmp/mozilla*)
Or when downloaded with Firefox maybe:
To Verify that it’s there List the contents with:
Give Permissions and Start PostgreSQL Installer
Follow PostgreSQL Installation Wizard.
Set the PostgreSQL Installation Path.
Set the PostgreSQL Data Path.
Set-Up the Postgres Administrator.
Set the PostgreSQL Server Listening Port.
Set the PostgreSQL Database Locale in Use.
Start PostgreSQL Installation.
Last Possibly Add some PostgreSQL Tools…
Getting-Started Quickly with PostgreSQL on Linux Kali
Источник
Как установить PostgreSQL на Kali Linux, создать базу данных и таблицу?
Сегодня поговорим о том, как установить PostgreSQL на Kali Linux.
Чтобы установить PostgreSQL введите в терминале следующую команду:
Чтобы проверить, установилась ли база данных, введите такую команду:
Если вас интересует куда поставился PostgreSQL, выполните такую команду:
Теперь давайте посмотрим, какие вообще базы по умолчанию есть в PostgreSQL. Для начала нам надо переключиться на учетную запить PostgreSQL на вашем сервере. Вводим такую команду
Теперь посмотрим, какие таблицы есть у нас в базе данных по умолчанию, введя такую команду.
Получаем примерно такое.
Давайте теперь создадим свою базу данных, чтобы мы смогли с ней работать. Вводим команду:
Теперь проверим, создалась ли база, вводим снова команду:
Супер, база создалась, теперь мы можем с ней работать. Давайте убедимся, что база пустая и в ней нет никаких таблиц. Вводим такую команду.
Как мы видим, у нас нет никаких таблиц.
Попробуем создать таблицу используя данную команду.
Теперь создадим запись в таблице, пишем команду и выведем результат с помощью селекта.
Теперь попробуем изменить структуру таблицы и добавить еще одну колонку middlename.
Теперь обновим таблицу, добавив midllename к первой записи.
Теперь удалим запись такой командой.
Готово, теперь у нас 0 записей в таблице.
Как-то так. Мы рассмотрели, как устанавливать PostgreSQL, как подключаться к базе и как работать с таблицами. Думаю, для начала этого будет достаточно.
Если что, вы можете ввести команду \help, чтобы посмотреть список доступным команд.
Другие статьи этого автора
Что такое Bug Bounty или как заработать деньги на этичном хакинге?
Курсы по пентесту. Где пройти обучение и стать специалистом в этой области.
Что такое форензика или другими словами компьютерная криминалистика?
Работа с MySQL на Kali Linux (полное руководство)
Друзья, в прошлой статье мы говорили о том, как установить и работать с системой управления базами данных PosgreSQL. Сегодня поговорим о MySQL, СУБД, которая установлена . . .
Что такое база данных?
База данных — это систематизированный или организованный набор связанной информации, которая хранится таким образом, чтобы к ней можно было легко получить доступ, а также удалять, . . .
Станьте автором материалов в нашем сообществе! Стать автором!
Источник