Skip to Content
CockroachDB:決定版ガイド
book

CockroachDB:決定版ガイド

by Guy Harrison, Jesse Seldess, Ben Darnell
May 2025
Intermediate to advanced
488 pages
7h 56m
Japanese
O'Reilly Media, Inc.
Content preview from CockroachDB:決定版ガイド

第3章 はじめに

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

CockroachDBは洗練されたモダンなアーキテクチャを持ち、グローバルなスケールを想定して設計されている。 しかし、その複雑さとスケーラビリティは、険しい学習曲線やエントリへの障壁を意味するものではない。 この章では、CockroachDBのインストールを始め、CockroachDBシステムでの作業の基本を紹介する。

インストール

CockroachDBは、事実上どんなフレーバーのデスクトップOSにも数分でインストールできる。 また、無料のCockroachDB Serverlessデータベースを作成したり、DockerコンテナやKubernetesクラスタ内でCockroachDBを実行することもできる。

CockroachDBソフトウェアをインストールする

ほとんどのシナリオでは、デスクトップ・コンピュータにCockroachDBソフトウェアを。CockroachDBバイナリの完全なリストは、https://www.cockroachlabs.com/docs/releases。 そこからOSを選んで最新版をダウンロードするか、以前のバージョンを選ぶことができる。

以下の手順は執筆時点では機能しているが、リリースごとにインストール方法が変わる可能性があるので、CockroachDBのWebサイトで最新の手順を確認してほしい。

macOSへのインストール

brew パッケージ・マネージャがインストールされているなら、MacにCockroachDBをインストールする最も簡単な方法は、おそらくこれだろう。 実際、brewがインストールされていなくても、CockroachDBを手動でインストールするよりも、brewをインストールしてからCockroachDBをインストールする方が簡単だろう。

brewをインストールするには、ターミナルウィンドウから以下のコマンドを実行する:

/bin/bash -c \
 "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh

brewをインストールしたら、以下のコマンドでCockroachDBをインストールできる:

guyharrison@macos ~ % brew install cockroachdb/tap/cockroach ==> Tapping cockroachdb/tap Cloning into '/usr/local/Homebrew/Library/Taps/cockroachdb/homebrew-tap'... … ==> Installing cockroach from cockroachdb/tap …. To have launchd start cockroachdb/tap/cockroach now and restart at login: brew services start cockroachdb/tap/cockroach Or, if you don't want/need a background service you can just run: cockroach start-single-node --insecure ==> Summary 🍺 usr/local/Cellar/cockroach/20.2.7: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

実践的レイクハウス・アーキテクチャー

実践的レイクハウス・アーキテクチャー

Gaurav Ashok Thalpati
ゲームストーム2.0

ゲームストーム2.0

Dave Gray, Sunni Brown
実践者向けの説明可能なAI

実践者向けの説明可能なAI

Michael Munn, David Pitman

Publisher Resources

ISBN: 9798341651838