我正在用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谢谢你的帮助。
发布于 2015-03-20 03:50:04
试试这个:
PSQL='/usr/bin/psql'
su - postgres -c "$PSQL template1 -f 'sql.sql'"https://stackoverflow.com/questions/29158898
复制相似问题