安装: brew install postgresql -v
初始化: initdb /usr/local/var/postgres -E utf8
启动: pg_ctl -D /usr/local/var/postgres start
关闭: pg_ctl -D /usr/local/var/postgres stop
参考:
https://www.cnblogs.com/shineqiujuan/p/4703304.html
https://stackoverflow.com/questions/7975556/how-to-start-postgresql-server-on-mac-os-x
网友评论