tiup
A component manager for TiDB
파일 탐색기
최종 버전 다운로드 (.zip)- bug-report.md
- challenge-program.md
- feature-request.md
- general-question.md
- install.yaml
- integrate-cluster-cmd.yaml
- integrate-cluster-scale.yaml
- integrate-dm.yaml
- integrate-playground-ng.yaml
- integrate-playground.yaml
- integrate-tiup.yaml
- lint.yaml
- release-tiup.yaml
- reprotest.yaml
- pull_request_template.md
- test-v1.1.1-darwin-amd64.sha1
- test-v1.1.1-darwin-amd64.tar.gz
- test-v1.1.1-linux-amd64.sha1
- test-v1.1.1-linux-amd64.tar.gz
- tiup-component-test.index
- tiup-manifest.index
- clean.go
- env.go
- history.go
- install.go
- link.go
- list.go
- mirror.go
- root.go
- root_test.go
- status.go
- uninstall.go
- unlink.go
- update.go
- README.md
- endpoint.go
- main.go
- Makefile
- audit.go
- check.go
- clean.go
- deploy.go
- destroy.go
- disable.go
- display.go
- edit_config.go
- enable.go
- exec.go
- list.go
- meta.go
- patch.go
- prune.go
- reload.go
- rename.go
- replay.go
- restart.go
- root.go
- rotate_ssh.go
- scale_in.go
- scale_out.go
- show_config.go
- start.go
- stop.go
- template.go
- template_test.go
- test.go
- tls.go
- transfer.go
- upgrade.go
- main.go
- main_test.go
- main.go
- audit.go
- deploy.go
- deploy_test.go
- destroy.go
- disable.go
- display.go
- edit_config.go
- enable.go
- exec.go
- list.go
- meta.go
- patch.go
- prune.go
- reload.go
- replay.go
- restart.go
- root.go
- rotate_ssh.go
- scale_in.go
- scale_out.go
- start.go
- stop.go
- template.go
- template_test.go
- upgrade.go
- cluster.go
- logic.go
- topology_dm.go
- topology_dm_test.go
- update_dm_meta.go
- main.go
- main_test.go
- dm_master.go
- dm_worker.go
- drainer.go
- instance.go
- pd.go
- pd_config.go
- proc_attr_default.go
- proc_attr_linux.go
- process.go
- pump.go
- ticdc.go
- tidb.go
- tidb_config.go
- tiflash.go
- tiflash_config.go
- tiflash_pre7.go
- tiflash_pre7_config.go
- tiflash_pre7_proxy_config.go
- tikv.go
- tikv_cdc.go
- tikv_config.go
- tikv_worker.go
- tiproxy.go
- command.go
- env.go
- grafana.go
- grafana_test.go
- main.go
- main_test.go
- monitor.go
- ngmonitoring.go
- playground.go
- playground_test.go
- binlog.go
- cdc.go
- cdc_test.go
- dm.go
- monitoring.go
- path_test.go
- pd.go
- pd_config.go
- pd_test.go
- plan.go
- proc.go
- proc_attr_default.go
- proc_attr_linux.go
- tidb.go
- tidb_config.go
- tidb_test.go
- tiflash.go
- tiflash_config.go
- tiflash_test.go
- tikv.go
- tikv_config.go
- tikv_test.go
- tikv_worker.go
- tiproxy.go
- binlog.go
- cdc.go
- dm.go
- monitoring.go
- pd.go
- service.go
- service_test.go
- tidb.go
- tiflash.go
- tikv.go
- tiproxy.go
- AGENTS.md
- artifacts.go
- artifacts_test.go
- boot.go
- boot_executor.go
- boot_executor_test.go
- boot_startup.go
- boot_test.go
- catalog_flags.go
- cli_invocation.go
- cli_invocation_test.go
- command.go
- command_test.go
- controller.go
- controller_loop_test.go
- controller_state.go
- controller_state_test.go
- daemon_files.go
- daemon_files_test.go
- daemon_mode.go
- daemon_mode_test.go
- display.go
- display_test.go
- instances.go
- instances_test.go
- kill_unix.go
- kill_unix_test.go
- kill_windows.go
- main.go
- main_test.go
- plan.go
- plan_test.go
- playground.go
- playground_test.go
- procs.go
- procs_test.go
- repo_download_progress_eventlog_test.go
- scale.go
- shutdown.go
- start.go
- start_test.go
- tiup_instance_dir_test.go
- arch-playground-ng.md
- checkpoint.md
- manifest.md
- README.md
- requirements.md
- README.md
- release-note-guide.md
- 0001-separate-component-version-in-cluster.md
- 0002-support-run-component-without-tiup.md
- bench.md
- cluster.md
- mirrors.md
- overview.md
- package-manage.md
- package.md
- playground-ng.md
- playground.md
- README.md
- README.md
- .gitignore
- bashrc
- Dockerfile
- init.sh
- my.cnf
- bashrc
- Dockerfile
- run.sh
- .gitkeep
- .gitignore
- docker-compose.dm.yml.tpl
- docker-compose.yml.tpl
- README.md
- up.sh
- local.tpl
- minimal.yaml
- multi-dc.yaml
- topology.example.yaml
- local.tpl
- minimal.yaml
- topology.example.yaml
- alertmanager.yml
- blackbox.yml.tpl
- dashboard.yml.tpl
- datasource.yml.tpl
- grafana.ini.tpl
- ngmonitoring.toml.tpl
- prometheus.yml.tpl
- spark-defaults.conf.tpl
- spark-log4j.properties.tpl
- run_alertmanager.sh.tpl
- run_blackbox_exporter.sh.tpl
- run_cdc.sh.tpl
- run_dm-master.sh.tpl
- run_dm-master_scale.sh.tpl
- run_dm-worker.sh.tpl
- run_drainer.sh.tpl
- run_grafana.sh.tpl
- run_node_exporter.sh.tpl
- run_pd.sh.tpl
- run_pd_scale.sh.tpl
- run_prometheus.sh.tpl
- run_pump.sh.tpl
- run_resource-manager.sh.tpl
- run_router.sh.tpl
- run_scheduling.sh.tpl
- run_tidb-dashboard.sh.tpl
- run_tidb.sh.tpl
- run_tiflash.sh.tpl
- run_tikv-cdc.sh.tpl
- run_tikv-worker.sh.tpl
- run_tikv.sh.tpl
- run_tiproxy.sh.tpl
- run_tso.sh.tpl
- spark-env.sh.tpl
- start_tispark_slave.sh.tpl
- system.service.tpl
- tispark.service.tpl
- embed.go
- embed_test.go
- base52.go
- base52_test.go
- checkpoint.go
- checkpoint_test.go
- field.go
- gotrack.go
- dmmaster.pb.go
- dmworker.pb.go
- README.md
- duration.go
- duration_test.go
- README.md
- size.go
- size_test.go
- string_slice.go
- string_slice_test.go
- binlog.go
- cdcapi.go
- dmapi.go
- error.go
- error_test.go
- pdapi.go
- tidbapi.go
- tikv_cdc.go
- types.go
- audit.go
- audit_test.go
- cluster.go
- cluster_name.go
- context.go
- event_bus.go
- checkpoint.go
- executor.go
- local.go
- local_test.go
- scp.go
- ssh.go
- ssh_test.go
- basic.go
- builder.go
- cacert.go
- check.go
- cleanup.go
- deploy.go
- destroy.go
- display.go
- display_test.go
- edit_config.go
- exec.go
- list.go
- manager.go
- manager_test.go
- patch.go
- reload.go
- rename.go
- rotate_ssh.go
- scale_in.go
- scale_out.go
- show_config.go
- tls.go
- transfer.go
- transfer_test.go
- upgrade.go
- module.go
- shell.go
- systemd.go
- user.go
- wait_for.go
- action.go
- check.go
- check_test.go
- destroy.go
- download.go
- operation.go
- pd_member.go
- scale_in.go
- systemd.go
- upgrade.go
- tidb.json
- tidb.rules.yml
- topology_err.yaml
- alertmanager.go
- bindversion.go
- cdc.go
- dashboard.go
- drainer.go
- grafana.go
- grafana_test.go
- instance.go
- monitoring.go
- monitoring_test.go
- parse_topology.go
- parse_topology_test.go
- pd.go
- profile.go
- pump.go
- resource_manager.go
- router.go
- scheduling.go
- server_config.go
- server_config_test.go
- spec.go
- spec_manager.go
- spec_manager_test.go
- spec_test.go
- tidb.go
- tiflash.go
- tikv.go
- tikv_cdc.go
- tikv_worker.go
- tiproxy.go
- tispark.go
- tso.go
- util.go
- util_test.go
- validate.go
- validate_test.go
- action.go
- backup_component.go
- builder.go
- check.go
- copy_component.go
- copy_file.go
- download.go
- env_init.go
- func.go
- init_config.go
- init_config_test.go
- install_package.go
- limits.go
- mkdir.go
- monitored_config.go
- rmdir.go
- rotate_ssh.go
- scale_config.go
- shell.go
- shell_test.go
- ssh.go
- ssh_keygen.go
- ssh_keyset.go
- step.go
- sysctl.go
- systemd.go
- task.go
- tls.go
- update_meta.go
- update_topology.go
- alertmanager.go
- blackbox.go
- config.go
- dashboard.go
- datasource.go
- grafana.go
- ngmonitoring.go
- prometheus.go
- prometheus_test.go
- tispark.go
- local_install.sh.go
- alertmanager.go
- blackbox_exporter.go
- cdc.go
- dashboard.go
- dm_master.go
- dm_worker.go
- drainer.go
- grafana.go
- monitoring.go
- monitoring_test.go
- node_exporter.go
- pd.go
- pdms_test.go
- pump.go
- resource_manager.go
- router.go
- scheduling.go
- scripts.go
- tidb.go
- tiflash.go
- tikv.go
- tikv_cdc.go
- tikv_worker.go
- tiproxy.go
- tispark.go
- tso.go
- system.go
- tispark.go
- template.go
- passwd.go
- passwd_test.go
- rand.go
- ca.go
- ca_test.go
- keys.go
- rsa.go
- rsa_test.go
- debug.go
- env.go
- history.go
- history_test.go
- tiup.go
- run.go
- chrony.go
- dmesg.go
- epoll.go
- epoll_no_cgo.go
- insight.go
- ntp.go
- partitions.go
- process.go
- process_linux.go
- process_others.go
- socket.go
- socket_linux.go
- socket_others.go
- syscfg.go
- utils.go
- read.go
- types.go
- config.go
- constant.go
- profile.go
- profile_test.go
- log.go
- logger.go
- verbose.go
- audit.go
- debug.go
- logger.go
- err.go
- err_test.go
- paths.go
- resource_ctrl.go
- http_proxy.go
- proxy.go
- tcp_proxy.go
- any_queue.go
- any_queue_test.go
- error.go
- model.go
- publish.go
- local.go
- store.go
- store_test.go
- sync.go
- txn.go
- 1.alertmanager.json
- 1.bench.json
- 1.blackbox_exporter.json
- 1.cdc.json
- 1.client.json
- 1.cluster.json
- 1.ctl.json
- 1.doc.json
- 1.drainer.json
- 1.grafana.json
- 1.index.json
- 1.insight.json
- 1.mirrors.json
- 1.node_exporter.json
- 1.package.json
- 1.pd.json
- 1.playground.json
- 1.prometheus.json
- 1.pump.json
- 1.pushgateway.json
- 1.root.json
- 1.tidb.json
- 1.tiflash.json
- 1.tikv.json
- root.json
- snapshot.json
- timestamp.json
- root.json
- index.json
- snapshot.json
- tidb.json
- timestamp.json
- hash.go
- root.json
- index.json
- snapshot.json
- tidb.json
- timestamp.json
- key_store.go
- keys.go
- keys_test.go
- local_manifests.go
- local_manifests_test.go
- manifest.go
- manifest_test.go
- repo.go
- types.go
- types_test.go
- clone_mirror.go
- constant.go
- merge_mirror.go
- merge_mirror_test.go
- mirror.go
- mirror_cancel_test.go
- progress.go
- progress_test.go
- repository.go
- v1_repository.go
- v1_repository_test.go
- any_set.go
- any_set_test.go
- string_set.go
- string_set_test.go
- tidbver.go
- builtin_tokens.go
- color.go
- color_test.go
- display_props.go
- example_single_bar_test.go
- multi_bar.go
- progress.go
- renderer.go
- single_bar.go
- terminal.go
- mode.go
- mode_test.go
- cliutil.go
- cliutil_test.go
- color.go
- ssh.go
- tui.go
- atomic_writer.go
- callout.go
- default_writers.go
- labels.go
- event.go
- event_driven_test.go
- eventlog.go
- eventlog_test.go
- format.go
- group.go
- mode.go
- plain.go
- plain_test.go
- state.go
- task.go
- tty_bubbletea.go
- tty_bubbletea_test.go
- tty_components.go
- tty_components_test.go
- tty_styles.go
- ui.go
- ui_mode_test.go
- ui_sync_test.go
- writer.go
- writer_test.go
- mock.go
- test.tar.gz
- args.go
- diff.go
- diff_test.go
- edit.go
- error.go
- error_test.go
- freeport.go
- freeport_test.go
- http.go
- http_client.go
- ioutil.go
- ioutil_test.go
- regexp.go
- regexp_test.go
- retry.go
- semver.go
- semver_test.go
- sha.go
- tabledisplayer.go
- user.go
- user_test.go
- utils.go
- types.go
- version.go
- component.go
- error.go
- handler.go
- rotate.go
- tarball.go
- types.go
- package.go
- component.go
- root.go
- server.go
- session.go
- main.go
- router.go
- server.go
- static.go
- tiup-binary-package.output
- tiup-clean-all.output
- tiup-h.output
- tiup-help-ctl.output
- tiup-help-doc.output
- tiup-help-install.output
- tiup-help.output
- tiup-install-ctl.output
- tiup-install-doc.output
- tiup-install-not-exists.output
- tiup-install-package.output
- tiup-install-test.output
- tiup-install.output
- tiup-run-test-flag.output
- tiup-run-test-v1.1.1.output
- tiup-run-test.output
- tiup-run-test0.output
- tiup-run-test2.output
- tiup-run-test3.output
- tiup-self-update.output
- tiup-uninstall-all.output
- tiup-uninstall-test-all.output
- tiup-uninstall-test-v1.1.2.output
- tiup-uninstall-test.output
- tiup-uninstall.output
- tiup-update-not-exists.output
- tiup-update-test-nightly.output
- tiup-update-test.output
- tiup.output
- root.json
- .gitignore
- test_tiup.sh
- tiup.toml
- .gitkeep
- alertmanager.yml
- tidb.json
- tidb.rules.yml
- cmd_subtest.sh
- detect_error.sh
- external_labels.sh
- pull_log.sh
- scale_core.sh
- scale_tiproxy.sh
- scale_tools.sh
- tikv_cdc.sh
- upgrade.sh
- util.sh
- external_labels.yaml
- external_labels_invalid.yaml
- full.yaml
- full_scale_in_cdc.yaml
- full_scale_in_grafana.yaml
- full_scale_in_pd.yaml
- full_scale_in_prometheus.yaml
- full_scale_in_pump.yaml
- full_scale_in_tidb.yaml
- full_scale_in_tidb_2nd.yaml
- full_scale_in_tiflash.yaml
- full_scale_in_tikv.yaml
- full_scale_in_tiproxy.yaml
- full_scale_in_tispark.yaml
- full_tls.yaml
- full_without_tiflash.yaml
- tikv_cdc.yaml
- tiproxy.yaml
- upgrade.yaml
- upgrade_tls.yaml
- README.md
- root.json
- run.sh
- test_cmd.sh
- test_cmd_tls_native_ssh.sh
- test_external_labels.sh
- test_scale_core.sh
- test_scale_core_tls.sh
- test_scale_tiproxy.sh
- test_scale_tools.sh
- test_scale_tools_tls.sh
- test_tikv_cdc.sh
- test_upgrade.sh
- test_upgrade_tls.sh
- topology.yaml
- .gitkeep
- alertmanager.yml
- dm.json
- dm_instances.json
- dm_worker.rules.yml
- db1.prepare.sql
- db2.prepare.sql
- run.sh
- source1.yml
- source2.yml
- task.yaml
- util.sh
- .gitignore
- full_dm.yaml.tpl
- full_dm_monitored.yaml.tpl
- full_scale_in_dm-master.yaml.tpl
- full_scale_in_dm-worker.yaml.tpl
- full_scale_in_grafana.yaml.tpl
- root.json
- run.sh
- test_cmd.sh
- test_upgrade.sh
- test_playground.sh
- .gitignore
- test_playground_ng.sh
- Makefile
- check-tidy.sh
- errcheck_excludes.txt
- golangci.yaml
- revive.toml
- .codecov.yml
- .gitignore
- AGENTS.md
- CHANGELOG.md
- code_review_guide.md
- CONTRIBUTING.md
- examples
- go.mod
- go.sum
- install.sh
- LICENSE
- main.go
- main_test.go
- Makefile
- OWNERS
- README.md
- SECURITY.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/pingcap/tiup
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd tiup
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. 공식 설치 스크립트
쉬움 추천curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
공식 설치 스크립트를 다운로드해서 바로 실행합니다. 이 한 줄로 필요한 게 자동으로 설치됩니다.
설치 후 새 터미널을 열고, 프로그램의 버전 확인 명령(예: --version)으로 정상 설치됐는지 확인하세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Docker
쉬움사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
⚠️ 이 프로젝트는 규모가 큰 저장소라, 이 방법이 실제 핵심 제품이 아니라 내부 하위 패키지를 가리키는 것일 수 있습니다. README 전체를 함께 확인해보세요.
docker build -f docker/control/Dockerfile -t tiup .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run -p 8080:80 tiup
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
4. Go
보통go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
5. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
