CentOS 7.6.1810
postgresql 14.4
netstat 查看进程占用的端口信息
[postgres@localhost ~]$ netstat -antp | grep postmaster (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 73135/postmaster tcp6 0 0 ::1:5432 :::* LISTEN 73135/postmaster
复制
[postgres@localhost ~]$ netstat -a | grep post
tcp 0 0 localhost:postgres 0.0.0.0:* LISTEN
tcp6 0 0 localhost:postgres [::]:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 171343 /var/run/postgresql/.s.PGSQL.5432
[postgres@localhost ~]$ cd /var/run/postgresql/
[postgres@localhost postgresql]$ ll
total 0
[postgres@localhost postgresql]$ ls -a
. .. .s.PGSQL.5432 .s.PGSQL.5432.lock
[postgres@localhost postgresql]$ ls -al
total 4
drwxr-xr-x. 2 postgres postgres 80 Jul 12 20:43 .
drwxr-xr-x. 42 root root 1300 Jul 12 20:37 ..
srwxrwxrwx. 1 postgres postgres 0 Jul 12 20:43 .s.PGSQL.5432
-rw-------. 1 postgres postgres 65 Jul 12 20:43 .s.PGSQL.5432.lock
复制
学习资料
欢迎各位同学一起来交流学习心得!
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
文章被以下合辑收录
评论
相关阅读
明明想执行的SQL是DELETE、UPDATE,但为什么看到的是SELECT(FDW的实现原理解析)
小满未满、
383次阅读
2025-03-19 23:11:26
PostgreSQL初/中/高级认证考试(3.15)通过考生公示
开源软件联盟PostgreSQL分会
364次阅读
2025-03-20 09:50:36
9.9 分高危漏洞,尽快升级到 pgAdmin 4 v9.2 进行修复
严少安
249次阅读
2025-04-11 10:43:23
openHalo问世,全球首款基于PostgreSQL兼容MySQL协议的国产开源数据库
严少安
227次阅读
2025-04-07 12:14:29
IvorySQL 4.4 发布 - 基于 PostgreSQL 17.4,增强平台支持
通讯员
226次阅读
2025-03-20 15:31:04
PG vs MySQL 执行计划解读的异同点
进击的CJR
146次阅读
2025-03-21 10:50:08
PostgreSQL分区管理扩展——pg_partman
chirpyli
117次阅读
2025-03-19 15:48:31
手把手教你在 openKylin 上部署 IvorySQL 4.4
严少安
115次阅读
2025-03-27 20:41:28
postgresql+patroni+etcd高可用安装
necessary
112次阅读
2025-03-28 10:11:23
从 Oracle 到 PostgreSQL迁移成本评估揭秘
梧桐
103次阅读
2025-03-27 17:21:42