如何在Linux上的XAMPP中启用PostgreSQL [英] How can I enable PostgreSQL in XAMPP on Linux

查看:159
本文介绍了如何在Linux上的XAMPP中启用PostgreSQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Linux的新用户,遇到了一些问题。我不知道如何在Linux上的XAMPP中启用PostgreSQL。我是在WIndows的WAMP上完成的,但我在Linux上无法做到。我在互联网上搜索有关它的一些信息,但是所有用户都在Windows中显示它。我已经安装了PostgreSQL和XAMPP,并且服务器可以正常工作,但是与数据库的连接不正确。
也许XAMPP不是最好的使用方式?

I'm new user of Linux and I have some problem. I don't know how i can enable PostgreSQL in my XAMPP on Linux. I did it on WAMP on WIndows, but i can't do that on Linux. I was searching some informations about it in the internet, but all users show it in Windows. I have already installed PostgreSQL and XAMPP and the server works properly but connection with data base not. Maybe XAMPP isn't the best way to use it? Maybe you can reccomend something else?

推荐答案

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.

这篇关于如何在Linux上的XAMPP中启用PostgreSQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆