日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > centos >内容正文

centos

Centos 8 安装 Openbravo 之安装 postgresql

發布時間:2023/12/18 centos 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Centos 8 安装 Openbravo 之安装 postgresql 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝 postgresql[root@openbravo ~]# dnf module list postgresql 上次元數據過期檢查:0:14:10 前,執行于 2019年11月14日 星期四 22時05分57秒。 CentOS-8 - AppStream Name ? ? ? ? ? ? ? ? Stream ? ? ? ? ? ? ?Profiles ? ? ? ? ? ? ? ? ? ? Summary ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? postgresql ? ? ? ? ? 10 [d][e] ? ? ? ? ? client, server [d] ? ? ? ? ? PostgreSQL server and client module ? ? ? ? ? postgresql ? ? ? ? ? 9.6 ? ? ? ? ? ? ? ? client, server [d] ? ? ? ? ? PostgreSQL server and client module ? ? ? ? ?Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled [root@openbravo ~]# dnf -y install postgresql postgresql-server 上次元數據過期檢查:0:16:05 前,執行于 2019年11月14日 星期四 22時05分57秒。 依賴關系解決。 ===================================================================================================================軟件包 ? ? ? ? ? ? ? ? ? ? 架構 ? ? ? ? ? ?版本 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?倉庫 ? ? ? ? ? ? ? ?大小 =================================================================================================================== Installing:postgresql ? ? ? ? ? ? ? ? x86_64 ? ? ? ? ?10.6-1.module_el8.0.0+15+f57f353b ? ? ? ? ? ? AppStream ? ? ? ? ?1.5 Mpostgresql-server ? ? ? ? ?x86_64 ? ? ? ? ?10.6-1.module_el8.0.0+15+f57f353b ? ? ? ? ? ? AppStream ? ? ? ? ?5.1 M 安裝依賴關系:libpq ? ? ? ? ? ? ? ? ? ? ?x86_64 ? ? ? ? ?10.5-1.el8 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?AppStream ? ? ? ? ?188 k事務概要 =================================================================================================================== 安裝 ?3 軟件包總下載:6.7 M 安裝大小:27 M 下載軟件包: (1/3): libpq-10.5-1.el8.x86_64.rpm ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 180 kB/s | 188 kB ? ? 00:01 ? ? (2/3): postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64.rpm ? ? ? ? ? ? ? ? ? ? 224 kB/s | 1.5 MB ? ? 00:06 ? ? (3/3): postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64.rpm ? ? ? ? ? ? ?355 kB/s | 5.1 MB ? ? 00:14 ? ? ------------------------------------------------------------------------------------------------------------------- 總計 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 430 kB/s | 6.7 MB ? ? 00:16 ? ?? 運行事務檢查 事務檢查成功。 運行事務測試 事務測試成功。 運行事務準備中 ? ? ?: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1/1?Installing ?: libpq-10.5-1.el8.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1/3?Installing ?: postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?2/3?運行腳本 ? ?: postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3/3?Installing ?: postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3/3?運行腳本 ? ?: postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3/3?驗證 ? ? ? ?: libpq-10.5-1.el8.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1/3?驗證 ? ? ? ?: postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?2/3?驗證 ? ? ? ?: postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3/3?已安裝:postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64 ?postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64?libpq-10.5-1.el8.x86_64 ? ? ? ? ? ? ? ? ? ? ? ? ? ??完畢!

[root@openbravo ~]# su - postgres
上一次登錄:四 11月 14 21:56:11 EST 2019tty1 上

[postgres@openbravo ~]$ postgresql-setup --initdb
?* Initializing database in '/var/lib/pgsql/data'
?* Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log

打開網絡監聽

[root@openbravo ~]# vim /var/lib/pgsql/data/postgresql.conf

listen_addresses = '*'

[root@openbravo ~]# systemctl enable postgresql
Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /usr/lib/systemd/system/postgresql.service.

[root@openbravo ~]# systemctl status postgresql
● postgresql.service - PostgreSQL database server
? ?Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled)
? ?Active: active (running) since Fri 2019-11-15 00:18:46 EST; 4min 1s ago
?Main PID: 5118 (postmaster)
? ? Tasks: 8 (limit: 4595)
? ?Memory: 16.1M
? ?CGroup: /system.slice/postgresql.service
? ? ? ? ? ?├─5118 /usr/bin/postmaster -D /var/lib/pgsql/data
? ? ? ? ? ?├─5120 postgres: logger process ??
? ? ? ? ? ?├─5122 postgres: checkpointer process ??
? ? ? ? ? ?├─5123 postgres: writer process ??
? ? ? ? ? ?├─5124 postgres: wal writer process ??
? ? ? ? ? ?├─5125 postgres: autovacuum launcher process ??
? ? ? ? ? ?├─5126 postgres: stats collector process ??
? ? ? ? ? ?└─5127 postgres: bgworker: logical replication launcher ??

11月 15 00:18:46 openbravo systemd[1]: Starting PostgreSQL database server...
11月 15 00:18:46 openbravo postmaster[5118]: 2019-11-15 00:18:46.808 EST [5118] 日志: ?listening on IPv4 address ">
11月 15 00:18:46 openbravo postmaster[5118]: 2019-11-15 00:18:46.808 EST [5118] 日志: ?listening on IPv6 address ">
11月 15 00:18:46 openbravo postmaster[5118]: 2019-11-15 00:18:46.811 EST [5118] 日志: ?listening on Unix socket "/>
11月 15 00:18:46 openbravo postmaster[5118]: 2019-11-15 00:18:46.819 EST [5118] 日志: ?listening on Unix socket "/>
11月 15 00:18:46 openbravo postmaster[5118]: 2019-11-15 00:18:46.827 EST [5118] 日志: ?日志輸出重定向到日志收集進程
11月 15 00:18:46 openbravo postmaster[5118]: 2019-11-15 00:18:46.827 EST [5118] 提示: ?后續的日志輸出將出現在目錄 >
11月 15 00:18:46 openbravo systemd[1]: Started PostgreSQL database server.

[root@openbravo ~]# su - postgres
上一次登錄:五 11月 15 00:32:31 EST 2019pts/0 上

[postgres@openbravo ~]$ psql
psql (10.6)
輸入 "help" 來獲取幫助信息.

postgres=# \password
輸入新的密碼:
再次輸入:

postgres=# \q
[postgres@openbravo ~]$?

?

[root@openbravo ~]# vim /var/lib/pgsql/data/postgresql.conf

lc_numeric = 'zh_CN.UTF-8'

max_locks_per_transaction = 128

[root@openbravo ~]# systemctl restart postgresql

?

?

?

總結

以上是生活随笔為你收集整理的Centos 8 安装 Openbravo 之安装 postgresql的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。