且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Linux上的XAMPP中启用PostgreSQL

更新时间:2023-02-24 13:59:07

XAMPP是PHP,Apache,MySQL和Perl的捆绑产品。

XAMPP is a bundle of PHP, Apache, MySQL and Perl.

它可能没有使用PostgreSQL编译的PHP。

It probably doesn't have PHP compiled with PostgreSQL support.

我强烈建议您学习而不是使用某些第三方应用程序捆绑包如何从发行包中正确安装东西。这样,您将获得明智的,可协作的PHP,PostgreSQL,Apache等,并且还将获得安全更新。

Rather than using some 3rd party application bundle, I strongly recommend learning how to install things properly, from distro packages. That way you'll get a sensible, co-operating PHP, PostgreSQL, Apache, etc, and you'll get security updates too.

您没有提到您的发行版,但您可能想研究yum(RHEL / CentOS / Fedora)或apt(Debian / Ubuntu)。

You didn't mention your distro, but you probably want to look into yum (RHEL/CentOS/Fedora) or apt (Debian/Ubuntu).

对于最新的PostgreSQL版本,PostgreSQL发行了大多数发行版的发行包。请参见 http://yum.postgresql.org/ http://apt.postgresql.org/ 。或者,如果您不介意没有最新消息,则可以使用发行版中内置的供应商软件包。

For up to date PostgreSQL release, PostgreSQL publishes distro packages for most distros; see http://yum.postgresql.org/ and http://apt.postgresql.org/ . Or you can use the vendor packages built in to the distro if you don't mind not having the latest.