[英]PostgreSQL installation as a user on Cygwin
I'm trying to install PostgreSQL on Cygwin as a user following the instructions given in the cygwin package installation: 我正在尝试按照cygwin软件包安装中给出的说明,以用户身份在Cygwin上安装PostgreSQL:
cygrunsrv -S cygserver
initdb -D /usr/share/postgresql/data
pg_ctl start -D /usr/share/postgresql/data -l /var/log/postgresql.log
createdb
psql
After I do the third step, I get the following output in the terminal, 完成第三步后,在终端中获得以下输出,
$ postgres -D /usr/share/postgresql/data
LOG: database system was shut down at 2013-04-12 19:04:33 PDT
LOG: autovacuum launcher started
LOG: database system is ready to accept connections
After that, I'm unsure on what to do since I never see the command line again(the "$" sign). 在那之后,我不确定该怎么做,因为我再也没有看到命令行(“ $”符号)。 I'm a complete beginner when it comes to databases, so are there any 'for dummies' pointers for me?
在数据库方面,我是一个完整的初学者,所以对我来说有“傻瓜”指针吗?
Use pg_ctl -D /usr/share/postgresql/data -l /path/to/write/log/to start
if you want the server to start up and background its self. 如果要服务器启动并使其自身后台运行,请使用
pg_ctl -D /usr/share/postgresql/data -l /path/to/write/log/to start
。
I strongly recommend reading the PostgreSQL tutorial and manual, which cover this in detail. 我强烈建议阅读PostgreSQL教程和手册,其中有详细介绍。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.