Postgres主进程文件—postmaster.pid
生活随笔
收集整理的這篇文章主要介紹了
Postgres主进程文件—postmaster.pid
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
postmaster內(nèi)容
使用cat -n?命令可以查看postmaster.pid文件內(nèi)容:
)
根據(jù)每一行進(jìn)行解釋,并給出對應(yīng)的源代碼說明
/usr/local/pgsql/data: 代表數(shù)據(jù)目錄
1529235109: 代表postmaster文件的創(chuàng)建時(shí)間。
5432: 代表數(shù)據(jù)庫監(jiān)聽端口,在postgresql.conf中對應(yīng)port = 5432
來自源代碼說明:
/* The socket number we are listening for connections on */ int PostPortNumber;- 1
- 2
來自源代碼說明:
/* The directory names for Unix socket(s) */ char *Unix_socket_directories;- 1
- 2
來自源代碼說明:
/* The TCP listen address(es) */ char *ListenAddresses;- 1
- 2
輸入ipcs可以查看:
注:?postmaster.pid顯示的是key轉(zhuǎn)成10進(jìn)制后的數(shù)字。
總結(jié)
以上是生活随笔為你收集整理的Postgres主进程文件—postmaster.pid的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 几何基础,多种矩阵的学习,世界坐标到屏幕
- 下一篇: 多种方式Map集合遍历