【发布时间】:2015-05-23 09:53:08
【问题描述】:
我在 centos 6.6 上运行这个
PSQL='/usr/bin/psql'
su - postgres "$PSQL" template1 -f 'sql.sql'
但是启动psql总是启动失败
Starting postgresql-9.4 service: [FAILED]
然后我得到这个错误
/usr/bin/psql: /usr/bin/psql: cannot execute binary file
感谢大家的帮助。
【问题讨论】:
-
请给我一个例子。我跑了
su -c postgres /usr/bin/psql,但我不工作。
标签: bash postgresql centos6