LoginSignup
3
3

More than 5 years have passed since last update.

macでJava開発環境構築 PostgreSQL編

Last updated at Posted at 2015-06-14

ターミナルからインストール

  1. Homebrewのインストール
ターミナル
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"



2. HomebrewでPostgreSQLのインストール

ターミナル
$ brew install postgresql



3. UTF-8でデータベースの初期化

ターミナル
$ initdb /usr/local/Cellar/postgres -E utf8



4. PostgreSQLサーバの起動

ターミナル
$ postgres -D /usr/local/Cellar/postgres



5. PostgreSQLサーバの起動

ターミナル
$ pg_ctl -l /usr/local/Cellar/postgres/server.log start



6. PostgreSQLサーバの停止

ターミナル
$ pg_ctl stop -s -m fast


Installerからインストール

  1. サイトへ移動
    http://www.pgadmin.org/download/macosx.php
    http://www.enterprisedb.com/products-services-training/pgdownload#osx
    Mac OS X の最新版をダウンロードしてインストール(StackBuilderも)

  2. StackBuilderからその他ツールもインストール EDB Language Pack
    pgMemcache
    pgJDBC
    PostgreSQL database server(最新)

以下、参考にしたサイト

http://codenote.net/mac/homebrew/187.html
http://qiita.com/tstomoki/items/0f1a930bd42a8e1fdaac
http://blog.a-z0-9.net/archives/221

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3