想考PCA认证的,请认真学习以下笔记(学霸笔记,必过过过)

1. 创建postgres用户并修改yum源:
groupadd -g 1001 postgres
useradd -u 1001 -g 1001 postgres
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2. 使用yum进行下载:
yum install -y postgresql13-server
3. 初始化数据库:
postgresql-13-setup initdb
4. 使用syustem启动数据库:
systemctl enable postgresql-13
systemctl start postgresql-13
5. 登录数据库:
su - postgres
psql -U postgres -d postgres -p 5432
本文为想考PCA认证者提供学习笔记,包含创建postgres用户、修改yum源、用yum下载PostgreSQL、初始化数据库、使用system启动数据库以及登录数据库等操作步骤,助力考生备考。
139

被折叠的 条评论
为什么被折叠?



