服务器显示PG,我无法启动服务器PostgreSQL 11:“ pg_ctl:无法启动服务器”

我在CentOS Linux版本7.5.1804(Core)中

当我以postgres身份登录并运行时:bash-4.2$ /usr/pgsql-11/bin/initdb -D /var/lib/pgsql/11/data

The files belonging to this database system will be owned by user "postgres".

This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".

The default database encoding has accordingly been set to "UTF8".

The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /var/lib/pgsql/11/data ... ok

creating subdirectories ... ok

selecting default max_connections ... 100

selecting default shared_buffers ... 128MB

selecting dynamic shared memory implementation ... posix

creating configuration files ... ok

running bootstrap script ... ok

performing post-bootstrap initialization ... ok

syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections

You can change this by editing pg_hba.conf or using the option -A, or

--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

/usr/pgsql-11/bin/pg_ctl -D /var/lib/pgsql/11/data -l logfile start

bash-4.2$

然后我跑bash-4.2$ /usr/pgsql-11/bin/pg_ctl start -l logfile -D /var/lib/pgsql/11/data

waiting for server to start..../bin/sh: logfile: Permission denied

stopped waiting

pg_ctl: could not start server

Examine the log output.

bash-4.2$ date

Wed Oct 24 01:50:44 -05 2018

bash-4.2$

我在GOOGLE中搜索“正在等待服务器启动。.../ bin / sh:日志文件:权限被拒绝”,但是此错误仅在MAC中发生,并且未显示任何解决方案...

我也跑bash-4.2$ postgres --version;postmaster --version;

postgres (PostgreSQL) 11.0

postgres (PostgreSQL) 11.0

bash-4.2$

那么我认为PostgreSQL 11可以很好地安装,但是我无法启动服务器。

我用这行安装:yum install postgresql-jdbc.noarch postgresql-jdbc-javadoc.noarch postgresql-unit11.x86_64 postgresql-unit11-debuginfo.x86_64 postgresql11.x86_64 postgresql11-contrib.x86_64 postgresql11-debuginfo.x86_64 postgresql11-devel.x86_64 postgresql11-docs.x86_64 postgresql11-libs.x86_64 postgresql11-odbc.x86_64 postgresql11-plperl.x86_64 postgresql11-plpython.x86_64 postgresql11-pltcl.x86_64 postgresql11-server.x86_64 postgresql11-tcl.x86_64 postgresql11-test.x86_64

我没有添加[postgresql11-llvmjit.x86_64],因为这需要很多依赖。

CentOS Linux版本7.5.1804 + PostgreSQL 11

我需要安装其他软件吗?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值