ВМ
Size: a a a
ВМ
ВМ
AN
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ
AN
# psql -h 127.0.0.1 -p 30000 -U netbox -W
Password for user netbox:
psql (9.6.12)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
netbox=> \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
netbox | netbox | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
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
(4 rows)
netbox=> \quit
# netstat -nap | grep LISTEN | grep 30000
tcp 0 0 0.0.0.0:30000 0.0.0.0:* LISTEN 8797/nginx: worker
ВМ