当前位置:首页 >> 车险

统信UOS 1060上加装postgreSQL

来源:车险   2024年01月16日 12:16

11.18-0+deb10u1) .../var/cache/apt/archives/postgresql-client-11_11.18-0+deb10u1_arm64.deb刚刚选入未能为了让的的软件 postgresql-common。准备tar .../2-postgresql-common_200+deb10u3_all.deb ...刚刚填充 通过 postgresql-common 从 /usr/bin/pg_config 到 /usr/bin/pg_config.libpq-dev 的重新分配刚刚tar postgresql-common (200+deb10u3) .../var/cache/apt/archives/postgresql-common_200+deb10u3_all.deb刚刚选入未能为了让的的软件 postgresql-11。准备tar .../3-postgresql-11_11.18-0+deb10u1_arm64.deb ...刚刚tar postgresql-11 (11.18-0+deb10u1) .../var/cache/apt/archives/postgresql-11_11.18-0+deb10u1_arm64.deb刚刚选入未能为了让的的软件 postgresql。准备tar .../4-postgresql_11+200+deb10u3_all.deb ...刚刚tar postgresql (11+200+deb10u3) .../var/cache/apt/archives/postgresql_11+200+deb10u3_all.deb刚刚选入未能为了让的的软件 postgresql-contrib。准备tar .../5-postgresql-contrib_11+200+deb10u3_all.deb ...刚刚tar postgresql-contrib (11+200+deb10u3) .../var/cache/apt/archives/postgresql-contrib_11+200+deb10u3_all.deb刚刚选入未能为了让的的软件 sysstat。准备tar .../6-sysstat_12.0.3.1-2+security_arm64.deb ...刚刚tar sysstat (12.0.3.1-2+security) .../var/cache/apt/archives/sysstat_12.0.3.1-2+security_arm64.deb刚刚所设 postgresql-client-common (200+deb10u3) ...刚刚所设 postgresql-client-11 (11.18-0+deb10u1) ...update-alternatives: 常用 /usr/share/postgresql/11/man/man1/psql.1.gz 来在自动模式中会提供 /usr/share/man/man1/psql.1.gz (psql.1.gz)刚刚所设 postgresql-common (200+deb10u3) ...supported-versions: WARNING! Unknown distribution: uos/usr/share/postgresql-common/supported-versions: 66: /usr/share/postgresql-common/supported-versions: ID_LIKE: parameter not set/usr/share/postgresql-common/supported-versions: 69: /usr/share/postgresql-common/supported-versions: ID_LIKE: parameter not setPlease submit this as a bug report to your distribution.刚刚将常用者“postgres”加入到“ssl-cert”组中会Creating config file /etc/postgresql-common/createcluster.conf with new versionBuilding PostgreSQL dictionaries from installed myspell/hunspell packages...Removing obsolete dictionary files:Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /lib/systemd/system/postgresql.service.刚刚所设 postgresql-11 (11.18-0+deb10u1) ...Creating new PostgreSQL cluster 11/main .../usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main ----auth-local peer ----auth-host md5不属于此资料库系统的元数据寄生物为常用者 "postgres".此常用者也需要为伺服器进程的寄生物.资料库簇将常用本地化自然语言 "zh_CN.UTF-8"进;大初始化.预设的资料库区块已经相应的所设为 "UTF8".initdb: 不能为本地化自然语言环境"zh_CN.UTF-8"找合适的文本查询备有缺省的文本查询备有才会被所设到"simple"禁止为图表页生成校验和.修复已存在附录 /var/lib/postgresql/11/main 的权限 ... 最终刚刚成立子附录 ... 最终为了让预设最大联接数 (max_connections) ... 100为了让预设分享缓冲大小 (shared_buffers) ... 128MBselecting default timezone ... Asia/Beijing为了让动态的网络借助于 ......posix成立备有元数据 ... 最终刚刚直通自举脚本 ...最终刚刚执;大自举后初始化 ...最终同步图表到磁盘...最终最终。您现在可以用下面的指示带入资料库伺服器:pg_ctlcluster 11 main startVer Cluster Port Status Owner Data directory Log file11 main 5432 down postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.logupdate-alternatives: 常用 /usr/share/postgresql/11/man/man1/postmaster.1.gz 来在自动模式中会提供 /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz)刚刚所设 postgresql-contrib (11+200+deb10u3) ...刚刚所设 postgresql (11+200+deb10u3) ...刚刚所设 sysstat (12.0.3.1-2+security) ...Creating config file /etc/default/sysstat with new versionupdate-alternatives: 常用 /usr/bin/sar.sysstat 来在自动模式中会提供 /usr/bin/sar (sar)刚刚处理事件应用于 man-db (2.8.5-2) 的触发器 ...刚刚处理事件应用于 systemd (241.52-deepin1) 的触发器 ...root@uos-PC:~#

3、启动并所设开机自启postgreSQL

root@uos-PC:~# systemctl start postgresqlroot@uos-PC:~# systemctl enable postgresqlSynchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.Executing: /lib/systemd/systemd-sysv-install enable postgresqlroot@uos-PC:~# systemctl status postgresql● postgresql.service - PostgreSQL RDBMSLoaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)Active: active (exited) since Wed 2023-07-05 10:15:17 CST; 1min 55s agoMain PID: 6066 (code=exited, status=0/SUCCESS)Tasks: 0 (limit: 4626)Memory: 0BCGroup: /system.slice/postgresql.service7月 05 10:15:17 uos-PC systemd[1]: Starting PostgreSQL RDBMS...7月 05 10:15:17 uos-PC systemd[1]: Started PostgreSQL RDBMS.root@uos-PC:~#

4、所设postgres常用者攻击者

root@uos-PC:~# passwd postgres 取而代之 攻击者:重取而代之可用取而代之 攻击者:passwd:已最终更取而代之攻击者root@uos-PC:~# su - postgres

5、成立资料库常用者及资料库

postgres@uos-PC:~$ createuser ----interactive可用要增大的角色地名: pdsyw取而代之角色是否是超级常用者? (y/n) ypostgres@uos-PC:~$ createdb pdsywdbpostgres@uos-PC:~$

6、登录资料库,简化常用者攻击者及提示资料库信息

postgres@uos-PC:~$ psql psql (11.18 (Debian 11.18-0+deb10u1))可用 "help" 来换取帮助信息.postgres=# ALTER USER pdsyw WITH PASSWORD 'pdsyw';ALTER ROLEpostgres=# SELECT usename FROM pg_user;usename --------------------postgresDBUSERpdsyw(3 ;大记事)postgres=# l资料库列表地名 | 私有 | 读音元区块 | 文稿规则 | Ctype | 存取权限 ---------------------+--------------------+--------------------+-------------------------+-------------------------+---------------------------------------------pdsyw | postgres | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | pdsywdb | postgres | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | postgres | postgres | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | template0 | postgres | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/postgres +| | | | | postgres=CTc/postgrestemplate1 | postgres | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/postgres +| | | | | postgres=CTc/postgres(5 ;大记事)postgres=#。

艾得辛和甲氨蝶呤有什么区别
心肺复苏模拟人
烟台人流手术多少钱
应急救护进校园
心肺复苏模拟人模型
友情链接