国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > 綜合 > 正文

PostgreSQL數(shù)據(jù)庫psql的使用之三

2024-07-21 02:51:46
字體:
供稿:網(wǎng)友
[postgres@rhel73 data]$ [postgres@rhel73 data]$ psql -l -p 5432                                  List of databases   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   access PRivileges   -----------+----------+----------+-------------+-------------+----------------------- postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |  template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +           |          |          |             |             | postgres=CTc/postgres template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +           |          |          |             |             | postgres=CTc/postgres test      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | (4 rows)[postgres@rhel73 data]$ psql -l -p 5433psql: could not connect to server: No such file or directory ------>>>從此處可以看出,PG是用端口號(hào)來區(qū)分不同的cluster.	Is the server running locally and accepting	connections on Unix domain socket "/tmp/.s.PGSQL.5433"?[postgres@rhel73 data]$ exit[root@rhel73 ~]# netstat -lpntu| grep --color -i -E 'listen|listening' | grep 5432tcp        0      0 127.0.0.1:5432          0.0.0.0:*         LISTEN      2632/postgres---->>2632是ospid,見下面的命令tcp6       0      0 ::1:5432                :::*              LISTEN      2632/postgres       [root@rhel73 ~]# ps -ef | grep 2632postgres  2632     1  0 03:51 pts/0    00:00:00 /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/datapostgres  2634  2632  0 03:51 ?        00:00:00 postgres: checkpointer process   postgres  2635  2632  0 03:51 ?        00:00:00 postgres: writer process   postgres  2636  2632  0 03:51 ?        00:00:00 postgres: wal writer process   postgres  2637  2632  0 03:51 ?        00:00:00 postgres: autovacuum launcher process   postgres  2638  2632  0 03:51 ?        00:00:00 postgres: stats collector process   root      8190  2501  0 13:41 pts/0    00:00:00 grep --color=auto 2632[root@rhel73 ~]# 額外說一句:SAP Sybase ASE也是用端口號(hào)來區(qū)分不同的數(shù)據(jù)庫服務(wù).
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 临夏县| 吉林省| 肥城市| 桐乡市| 铜川市| 资中县| 酒泉市| 乐平市| 昌江| 许昌市| 安阳市| 丹凤县| 黔江区| 聂荣县| 昭通市| 教育| 正蓝旗| 平山县| 理塘县| 资溪县| 苏尼特左旗| 昌乐县| 凤城市| 县级市| 新丰县| 益阳市| 汾西县| 长沙市| 琼结县| 磐石市| 墨江| 高阳县| 海兴县| 望都县| 门头沟区| 阿鲁科尔沁旗| 灵丘县| 逊克县| 闽侯县| 武鸣县| 石首市|