日韩精品成人无码专区免费-国产99久久久久久免费看-国产精品丝袜久久久久久不卡-国产精品无码一区二区三区

Redhat6 安裝postgresql

發布時間:2023-12-23 點擊:167
系統運維
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%
論壇用什么配置云服務器配置
沒辦法接入知道創宇云等了一天