createdb:could not connect to database templatel:could not connect ot server:NO such file or directory
Is the server running locally and accepting
cornections on unix domain socket "/tem/.s.pgsql.5432"?这里说明你的数据库还没有启动 !对于最后行的“&”参数我不是很理解 : 这是linux下面的 ,就是把当前这个程序放到后台执行 !如果 /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data 初始化没也错的话
启动数据库应该是没问题的 !你的操作正确,建义重试一遍 !
chown postgres /usr/local/pgsql/data -R
Is the server running locally and accepting
cornections on unix domain socket "/tem/.s.pgsql.5432"?这里说明你的数据库还没有启动 !对于最后行的“&”参数我不是很理解 : 这是linux下面的 ,就是把当前这个程序放到后台执行 !如果 /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data 初始化没也错的话
启动数据库应该是没问题的 !你的操作正确,建义重试一遍 !
chown postgres /usr/local/pgsql/data -R
先查postgres的包的类型,在redhat上可以通过rpm -qf /usr/bin/psql查到
然后rpm -e package name卸载之