我在我的Windows 10电脑上安装了Postgresql。 我使用pgAdmin II工具创建了一个名为company的数据库,现在我想启动数据库服务器运行。 我无法弄清如何做到这一点。 我在postgres命令行上运行了启动命令,但似乎没有任何反应。
我正在进行的操作是:
postgres=# pg_ctl start
postgres=# pg_ctl status
postgres=# pg_ctl restart
postgres=# pg_ctl start company
postgres=# pg_ctl status
我看到没有返回任何东西。
psql
通常会连接到正在运行的服务器。因此,如果您可以启动psql
,那么 Postgres 已经在运行了。 - user330315pg_ctl
命令与服务器相关,而net
命令与服务相关。 - user9652688