{"id":6965,"date":"2020-04-29T08:12:14","date_gmt":"2020-04-29T00:12:14","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6965"},"modified":"2020-04-29T08:12:14","modified_gmt":"2020-04-29T00:12:14","slug":"pg-ctl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/pg-ctl","title":{"rendered":"pg_ctl\u547d\u4ee4 – \u63a7\u5236PostgreSQL\u670d\u52a1"},"content":{"rendered":"\n

pg_ctl\u662f\u4e00\u4e2a\u542f\u52a8\u3001\u505c\u6b62\u3001\u91cd\u65b0\u542f\u52a8\u3001\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u3001\u62a5\u544aPostgreSQL\u670d\u52a1\u5668\u7684\u72b6\u6001\uff0c\u6216\u8005\u662f\u6740\u6389PostgreSQL\u8fdb\u7a0b\u7684\u5de5\u5177\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> pg_ctl [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-D<\/td>\u6307\u5b9a\u6570\u636e\u5b58\u50a8\u7684\u4f4d\u7f6e<\/td><\/tr>
-s<\/td>\u53ea\u663e\u793a\u9519\u8bef\u4fe1\u606f\uff0c\u6ca1\u6709\u5176\u4ed6\u4fe1\u606f<\/td><\/tr>
-W<\/td>\u4e0d\u7528\u7b49\u5f85\u64cd\u4f5c\u5b8c\u6210<\/td><\/tr>
-w<\/td>\u7b49\u5f85\u76f4\u5230\u64cd\u4f5c\u5b8c\u6210<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u542f\u52a8postgresql\u670d\u52a1<\/p>\n\n\n\n

[root@linuxcool ~]# pg_ctl start<\/pre>\n\n\n\n

\u542f\u52a8\u670d\u52a1\u5668\u7684\u4e00\u4e2a\u4f8b\u5b50\uff0c \u7b49\u5230\u670d\u52a1\u5668 \u542f\u52a8\u4e86\u624d\u9000\u51fa\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pg_ctl -w start<\/pre>\n\n\n\n

\u7528\u4e8e\u4e00\u4e2a postmaster \u4f7f\u7528\u7aef\u53e3 5433\uff0c\u800c\u4e14\u4e0d\u5e26 fsync \u8fd0\u884c\uff0c\u4f7f\u7528\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# pg_ctl -o \"-F -p 5433\" start<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

pg_ctl\u662f\u4e00\u4e2a\u542f\u52a8\u3001\u505c\u6b62\u3001\u91cd\u65b0\u542f\u52a8\u3001\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u3001\u62a5\u544aPostgreSQL\u670d\u52a1\u5668\u7684\u72b6\u6001\uff0c\u6216\u8005\u662f\u6740\u6389Po […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6965"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6965"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6965\/revisions"}],"predecessor-version":[{"id":7288,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6965\/revisions\/7288"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}