postgres yum源安装

来源:这里教程网 时间:2026-03-14 20:38:50 作者:

一  虚拟机联通外网设置workstation虚拟机设置1 点击虚拟机网络编辑器 2 设置Vmnet8 NAT模式  192.168.23.0,其他勾选如下  3 windows电脑网络设置 4 虚拟机网卡设置  cd /etc/sysconfig/network-scripts/[root@long03s network-scripts]# ls ifcfg-ens33  ifdown-ib    ifdown-ppp       ifdown-tunnel  ifup-ib    ifup-plusb   ifup-Team         network-functionsifcfg-lo     ifdown-ippp  ifdown-routes    ifup           ifup-ippp  ifup-post    ifup-TeamPort     network-functions-ipv6ifdown       ifdown-ipv6  ifdown-sit       ifup-aliases   ifup-ipv6  ifup-ppp     ifup-tunnelifdown-bnep  ifdown-isdn  ifdown-Team      ifup-bnep      ifup-isdn  ifup-routes  ifup-wirelessifdown-eth   ifdown-post  ifdown-TeamPort  ifup-eth       ifup-plip  ifup-sit     init.ipv6-global  cat ifcfg-ens33 >> /tmp/0510ensbk.txt ping 二  登录postgres官网 选择postgres13 安装在redhat 7.7上 三 yum安装postgres  yum install -y postgresql13-server ............ 初始化 /usr/pgsql-13/bin/postgresql-13-setup initdb 启动数据库service postgresql-13 startRedirecting to /bin/systemctl start postgresql-13.service ps -ef |grep postgrespostgres  10507      1  0 10:26 ?        00:00:00 /usr/pgsql-13/bin/postmaster -D /var/lib/pgsql/13/data/postgres  10510  10507  0 10:26 ?        00:00:00 postgres: logger postgres  10525  10507  0 10:26 ?        00:00:00 postgres: checkpointer postgres  10526  10507  0 10:26 ?        00:00:00 postgres: background writer postgres  10527  10507  0 10:26 ?        00:00:00 postgres: walwriter postgres  10528  10507  0 10:26 ?        00:00:00 postgres: autovacuum launcher postgres  10529  10507  0 10:26 ?        00:00:00 postgres: stats collector postgres  10530  10507  0 10:26 ?        00:00:00 postgres: logical replication launcher root      10539   6436  0 10:26 pts/2    00:00:00 grep --color=auto postgres cd /var/lib/pgsql/13/data/[root@long03s data]# ls base              pg_commit_ts   pg_logical    pg_serial     pg_subtrans  pg_wal                postmaster.optscurrent_logfiles  pg_dynshmem    pg_multixact  pg_snapshots  pg_tblspc    pg_xact               postmaster.pidglobal            pg_hba.conf    pg_notify     pg_stat       pg_twophase  postgresql.auto.conflog               pg_ident.conf  pg_replslot   pg_stat_tmp   PG_VERSION   postgresql.conf 至此,完成postgresql-13安装和初始化

相关推荐