Install The PostgreSQL on the Ubuntu Server hosted by the Digital Ocean
来源:互联网 发布:像堆糖的软件 编辑:程序博客网 时间:2024/05/11 22:08
Today I tried to install the postgresql on the ubuntu server hosted by the digital ocean like[1]. It should be a quite easy task. But I kept getting errors when I typed the command "psql", the error showed up:
psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
When I search this error I didn't get any useful link which can solve my problem.
I tried uninstalling the postgresql and reinstalling the postgresql, I found there is something wrong during the installation similar with:
sudo /etc/init.d/postgresql startperl: warning: Setting locale failed.perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_MESSAGES = "en_IN.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). * No PostgreSQL clusters exist; see "man pg_createcluster"
Then I found [2], problems solved.
Reference:
[1] https://www.digitalocean.com/community/articles/how-to-install-and-use-postgresql-on-ubuntu-12-04
[2] http://stackoverflow.com/questions/17399622/postgresql-9-2-installation-on-ubuntu-12-04
0 0
- Install The PostgreSQL on the Ubuntu Server hosted by the Digital Ocean
- The Ubuntu Install By USB
- Install the high performance Nginx web server on Ubuntu
- UVa Problem 922 - Rectangle by the Ocean
- install web server on the linux
- install openwrt system on the ubuntu
- Ubuntu Install The Eclipse
- change the username on ubuntu 12.04 server
- install the crags on the sublime
- Install PostgreSql and PostGIS On Ubuntu Server
- Install nmon on the Centos
- install PHP on the IIS
- install mysql on the linux
- Install the Domino server 7 on aix 5L 5.2
- Install and configure SVN server on the linux
- How to install the Sun Java JDK on Ubuntu 10.10
- on Ubuntu 12.04 to install and setup the tomcat 7
- How to Install the Latest Nvidia Driver on Ubuntu 12.04
- J2SE_条件语句
- Github使用教程(一)--搭建Github环境
- mysql常用函数
- 函数式编程的优点
- 空间坐标变换的矩阵表示法
- Install The PostgreSQL on the Ubuntu Server hosted by the Digital Ocean
- SQL中内连接和外连接
- 为SUSE Linux添加软件安装源的方法(图文)
- HLSL初级教程
- WebView
- 单例模式(Singleton)
- ORACLE 如何删除归档日志文件[转]
- 第三周作业——冒泡排序和归并排序(计科1113练思安)
- jquery调试输出插件