系统运维
yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm
yum install postgresql-server
发现如下问题:error: package: postgresql93-contrib-9.3.5-1pgdg.rhel6.i686 (pgdg93) requires: libcrypto.so.10(libcrypto.so.10)
su postgres
yum install http://mirror.centos.org/centos/6/os/x86_64/packages/openssl-1.0.1e-30.el6.x86_64.rpm
yum install postgresql-server
service postgresql-9.4 initdb
chkconfig postgresql-9.4 on
find / -name \\\’pg_hba.conf\\\’
vim /var/lib/pgsql/9.4/data/pg_hba.conf
# local is for unix domain socket connections only
local all all trust
# ipv4 local connections:
host all all 127.0.0.1/32 md5
host all all 172.22.8.51/24 md5
host all all 172.10.23.27/24 md5
host all all 172.22.14.51/24 md5
vim /var/lib/pgsql/9.4/data/postgresql.conf
listen_addresses = \\\’*\\\’
su postgres
psql
postgres=#alteruserpostgreswithpassword\\\’newpassword\\\’;
postgres=#\\\\q
yum install postgresql-odbc
=====================================================================
wget ftp://ftp.unixodbc.org/pub/unixodbc/unixodbc-2.3.2.tar.gz
tar xvf unixodbc-2.3.2.tar
cd unixodbc-2.3.2
./configure –prefix=/usr/local/unixodbc-2.3. –includedir=/usr/include
–libdir=/usr/lib -bindir=/usr/bin –sysconfdir=/etc
make
make install
这时,unixodbc已经安装完毕,这时候可以使用odbc的通用api进行编程了。
但是如果要操作具体的数据库,还需要相应数据库提供的odbc驱动,比如操作mysql的odbc驱动,下载地址是:http://dev.mysql.com/downloads/connector/odbc/5.1.html。
jquery判断是否为数字的方法是什么新零售风口下 各电商巨头回归商业本质腾讯云服务器优惠方法低价网站建设有什么不好?对企业网络营销有什么影响?母婴3.0时代是什么UCloud优刻得US3在海量数据归档存储下的成本优化实践,使存储成本再降80%论坛用什么配置云服务器配置没办法接入知道创宇云等了一天