您的位置:首页 > 博客中心 > 数据库 >

psql: command not found

时间:2022-03-14 04:51

在默认安装完成PostGreSQL后

在执行createdb,psql后,可能会出现command not found

 

只需要在添加PostGreSQL安装的路径+bin目录

 

例如:PATH=$PATH:/app/PostgreSQL/9.4/bin

 

再执行psql 

bash-3.2$ psql

Password:
psql.bin (9.4.0)
Type "help" for help.

No entry for terminal type "vt100";
using dumb terminal settings.
postgres=# SELECT 2+2;
?column?
----------
4
(1 row)

postgres=#

完成。

热门排行

今日推荐

热门手游