Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Postgresql
(view source)
Revision as of 23:30, 8 November 2021
845 bytes added
,
23:30, 8 November 2021
→How to install Postgres 12
Line 132:
Line 132:
systemctl enable postgresql-12
systemctl enable postgresql-12
</syntaxhighlight>
</syntaxhighlight>
+
+
+
Working with systemd - still testing this
+
+
db yum_repositories set postgresql12 repository \
+
BaseURL https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-7Server-\$basearch/ \
+
EnableGroups no \
+
GPGCheck yes \
+
Name "MongoDB" \
+
GPGKey https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-12 \
+
Visible no \
+
status disabled
+
+
Update yum
+
signal-event yum-modify
+
+
Install the rpms
+
yum --enablerepo=postgresql12 install postgresql12-server postgresql12-contrib
+
+
Set a config key
+
config set postgresqld service status enabled access private
+
+
We will need a file
+
+
mkdir -p /usr/lib/systemd/system/postgresqld.service.d
+
+
nano /usr/lib/systemd/system/postgresqld.service.d/50koozali.conf
+
+
Something like:
+
+
[Unit]
+
After=network.target network.service wan.service
+
[Install]
+
WantedBy=sme-server.target
+
+
+
+
+
----
----
[[Category:Howto]]
[[Category:Howto]]
[[Category:Administration]]
[[Category:Administration]]
ReetP
Bureaucrats
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Administrators
877
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search