暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

PostgreSQL基础 netstat 查看postgres进程的端口信息

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进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文章被以下合辑收录

评论