|
|
|
|
]# vi ssh_config
|
|
|
|
|
[root@localhost ssh]# sudo find / -name topology.yaml 2>/dev/null
|
|
|
|
|
/root/tidb-deploy/tidb-community-server-v8.5.1-linux-arm64/topology.yaml
|
|
|
|
|
/root/topology.yaml
|
|
|
|
|
[root@localhost ssh]# cd /
|
|
|
|
|
[root@localhost /]# cd /root
|
|
|
|
|
[root@localhost ~]# ls
|
|
|
|
|
anaconda-ks.cfg original-ks.cfg tidb-community-toolkit-v8.5.1-linux-amd64 tidb-deploy topology.yaml
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Expect at least 3 arguments, but received 2 arguments (tui.mismatch_args)
|
|
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
tiup cluster deploy <cluster-name> <version> <topology.yaml> [flags]
|
|
|
|
|
|
|
|
|
|
Flags:
|
|
|
|
|
-h, --help help for deploy
|
|
|
|
|
-i, --identity_file string The path of the SSH identity file. If specified, public key authentication will be used. (default "/root/.ssh/id_rsa")
|
|
|
|
|
--ignore-config-check Ignore the config check result of components
|
|
|
|
|
--no-labels Don't check TiKV labels
|
|
|
|
|
-p, --password Use password of target hosts. If specified, password authentication will be used.
|
|
|
|
|
--skip-create-user (EXPERIMENTAL) Skip creating the user specified in topology.
|
|
|
|
|
-u, --user string The user name to login via SSH. The user must has root (or sudo) privilege. (default "root")
|
|
|
|
|
|
|
|
|
|
Global Flags:
|
|
|
|
|
-c, --concurrency int max number of parallel tasks allowed (default 5)
|
|
|
|
|
--format string (EXPERIMENTAL) The format of output, available values are [default, json] (default "default")
|
|
|
|
|
--ssh string (EXPERIMENTAL) The executor type: 'builtin', 'system', 'none'.
|
|
|
|
|
--ssh-timeout uint Timeout in seconds to connect host via SSH, ignored for operations that don't need an SSH connection. (default 5)
|
|
|
|
|
--wait-timeout uint Timeout in seconds to wait for an operation to complete, ignored for operations that don't fit. (default 120)
|
|
|
|
|
-y, --yes Skip all confirmations and assumes 'yes'
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# df -h /tidb-data
|
|
|
|
|
文件系统 容量 已用 可用 已用% 挂载点
|
|
|
|
|
/dev/mapper/klas-root 380G 36G 345G 10% /
|
|
|
|
|
[root@localhost ~]# fdisk -l
|
|
|
|
|
Disk /dev/sda:446.63 GiB,479559942144 字节,936640512 个扇区
|
|
|
|
|
磁盘型号:MR9361-8i
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
磁盘标签类型:gpt
|
|
|
|
|
磁盘标识符:622B49B2-FEC8-4D7B-B288-4F361748252F
|
|
|
|
|
|
|
|
|
|
设备 起点 末尾 扇区 大小 类型
|
|
|
|
|
/dev/sda1 2048 1230847 1228800 600M EFI 系统
|
|
|
|
|
/dev/sda2 1230848 3327999 2097152 1G Linux 文件系统
|
|
|
|
|
/dev/sda3 3328000 936638463 933310464 445G Linux LVM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/sdb:7.28 TiB,8000450330624 字节,15625879552 个扇区
|
|
|
|
|
磁盘型号:MR9361-8i
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 512 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
磁盘标签类型:gpt
|
|
|
|
|
磁盘标识符:6A2BC416-B62B-4E3D-9DB9-31169B164FC0
|
|
|
|
|
|
|
|
|
|
设备 起点 末尾 扇区 大小 类型
|
|
|
|
|
/dev/sdb1 2048 15625877503 15625875456 7.3T Linux 文件系统
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/mapper/klas-root:379.84 GiB,407849926656 字节,796581888 个扇区
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/mapper/klas-swap:15.2 GiB,16315842560 字节,31866880 个扇区
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/mapper/klas-backup:50 GiB,53687091200 字节,104857600 个扇区
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
[root@localhost ~]# lsblk
|
|
|
|
|
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
|
|
|
|
|
sda 8:0 0 446.6G 0 disk
|
|
|
|
|
├─sda1 8:1 0 600M 0 part /boot/efi
|
|
|
|
|
├─sda2 8:2 0 1G 0 part /boot
|
|
|
|
|
└─sda3 8:3 0 445G 0 part
|
|
|
|
|
├─klas-root 252:0 0 379.8G 0 lvm /
|
|
|
|
|
├─klas-swap 252:1 0 15.2G 0 lvm [SWAP]
|
|
|
|
|
└─klas-backup 252:2 0 50G 0 lvm
|
|
|
|
|
sdb 8:16 0 7.3T 0 disk
|
|
|
|
|
└─sdb1 8:17 0 7.3T 0 part /media/raid1
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
Start instance 10.42.0.1:9093 success
|
|
|
|
|
Starting component node_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
Starting component blackbox_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - UpdateTopology: cluster=tidb-cluster
|
|
|
|
|
Started cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
|
|
|
Your MySQL connection id is 648019974
|
|
|
|
|
Server version: 8.0.11-TiDB-v8.5.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
|
|
|
|
|
|
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> show databses;
|
|
|
|
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 13 near "databses"
|
|
|
|
|
MySQL [(none)]> show databases;
|
|
|
|
|
+--------------------+
|
|
|
|
|
| Database |
|
|
|
|
|
+--------------------+
|
|
|
|
|
| INFORMATION_SCHEMA |
|
|
|
|
|
| METRICS_SCHEMA |
|
|
|
|
|
| PERFORMANCE_SCHEMA |
|
|
|
|
|
| mysql |
|
|
|
|
|
| sys |
|
|
|
|
|
| test |
|
|
|
|
|
+--------------------+
|
|
|
|
|
6 rows in set (0.000 sec)
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> exit;
|
|
|
|
|
Bye
|
|
|
|
|
[root@localhost ~]# tuip cluster display tidb-cluster
|
|
|
|
|
-bash: tuip:未找到命令
|
|
|
|
|
[root@localhost ~]# tiup cluster display tidb-cluster
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Deploy user: tidb
|
|
|
|
|
SSH type: builtin
|
|
|
|
|
Dashboard URL: http://10.42.0.1:2379/dashboard
|
|
|
|
|
Grafana URL: http://10.42.0.1:3000
|
|
|
|
|
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
|
|
|
|
|
-- ---- ---- ----- ------- ------ -------- ----------
|
|
|
|
|
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Up /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
|
|
|
|
|
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Up - /tidb-deploy/grafana-3000
|
|
|
|
|
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
|
|
|
|
|
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
|
|
|
|
|
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Up - /tidb-deploy/tidb-4000
|
|
|
|
|
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
|
|
|
|
|
Total nodes: 6
|
|
|
|
|
[root@localhost ~]# tiup cluster list
|
|
|
|
|
Name User Version Path PrivateKey
|
|
|
|
|
---- ---- ------- ---- ----------
|
|
|
|
|
tidb-cluster tidb v8.5.1 /root/.tiup/storage/cluster/clusters/tidb-cluster /root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa
|
|
|
|
|
[root@localhost ~]# df -h /tidb-data
|
|
|
|
|
文件系统 容量 已用 可用 已用% 挂载点
|
|
|
|
|
/dev/mapper/klas-root 380G 36G 345G 10% /
|
|
|
|
|
[root@localhost ~]# fdisk -l
|
|
|
|
|
Disk /dev/sda:446.63 GiB,479559942144 字节,936640512 个扇区
|
|
|
|
|
磁盘型号:MR9361-8i
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
磁盘标签类型:gpt
|
|
|
|
|
磁盘标识符:622B49B2-FEC8-4D7B-B288-4F361748252F
|
|
|
|
|
|
|
|
|
|
设备 起点 末尾 扇区 大小 类型
|
|
|
|
|
/dev/sda1 2048 1230847 1228800 600M EFI 系统
|
|
|
|
|
/dev/sda2 1230848 3327999 2097152 1G Linux 文件系统
|
|
|
|
|
/dev/sda3 3328000 936638463 933310464 445G Linux LVM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/sdb:7.28 TiB,8000450330624 字节,15625879552 个扇区
|
|
|
|
|
磁盘型号:MR9361-8i
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 512 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
磁盘标签类型:gpt
|
|
|
|
|
磁盘标识符:6A2BC416-B62B-4E3D-9DB9-31169B164FC0
|
|
|
|
|
|
|
|
|
|
设备 起点 末尾 扇区 大小 类型
|
|
|
|
|
/dev/sdb1 2048 15625877503 15625875456 7.3T Linux 文件系统
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/mapper/klas-root:379.84 GiB,407849926656 字节,796581888 个扇区
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/mapper/klas-swap:15.2 GiB,16315842560 字节,31866880 个扇区
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disk /dev/mapper/klas-backup:50 GiB,53687091200 字节,104857600 个扇区
|
|
|
|
|
单元:扇区 / 1 * 512 = 512 字节
|
|
|
|
|
扇区大小(逻辑/物理):512 字节 / 4096 字节
|
|
|
|
|
I/O 大小(最小/最佳):262144 字节 / 262144 字节
|
|
|
|
|
[root@localhost ~]# lsblk
|
|
|
|
|
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
|
|
|
|
|
sda 8:0 0 446.6G 0 disk
|
|
|
|
|
├─sda1 8:1 0 600M 0 part /boot/efi
|
|
|
|
|
├─sda2 8:2 0 1G 0 part /boot
|
|
|
|
|
└─sda3 8:3 0 445G 0 part
|
|
|
|
|
├─klas-root 252:0 0 379.8G 0 lvm /
|
|
|
|
|
├─klas-swap 252:1 0 15.2G 0 lvm [SWAP]
|
|
|
|
|
└─klas-backup 252:2 0 50G 0 lvm
|
|
|
|
|
sdb 8:16 0 7.3T 0 disk
|
|
|
|
|
└─sdb1 8:17 0 7.3T 0 part /media/raid1
|
|
|
|
|
[root@localhost ~]# ^C
|
|
|
|
|
[root@localhost ~]# ^C
|
|
|
|
|
[root@localhost ~]# ^C
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# mkdir -p /media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# cp -a /tidb-data/* /media/raid1/tidb-data/
|
|
|
|
|
[root@localhost ~]# mv /tidb-data /tidb-data.bak
|
|
|
|
|
[root@localhost ~]# chown -R tidb:tidb /media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# chmod -R 750 /media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
|
|
|
|
|
Error: failed to start alertmanager: failed to start: 10.42.0.1 alertmanager-9093.service, please check the instance's log(/tidb-deploy/alertmanager-9093/log) for more detail.: timed out waiting for port 9093 to be started after 2m0s
|
|
|
|
|
|
|
|
|
|
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2025-04-24-15-40-27.log.
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.0.1.11 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.12 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.13 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.17 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.18 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.19 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.14 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.15 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.16 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.20 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.21 Arch info ... Error
|
|
|
|
|
- Detecting node 10.0.1.22 Arch info ... Error
|
|
|
|
|
|
|
|
|
|
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for 'root@10.0.1.11:22' {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; uname -m}, cause: dial tcp 10.0.1.11:22: connect: network is unreachable
|
|
|
|
|
|
|
|
|
|
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2025-04-24-11-08-27.log.
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# source /root/.bash_profile
|
|
|
|
|
[root@localhost ~]# tiup playground v8.5.1 --host 10.42.0.1
|
|
|
|
|
Start pd instance: v8.5.1
|
|
|
|
|
Start tikv instance: v8.5.1
|
|
|
|
|
Start tidb instance: v8.5.1
|
|
|
|
|
Waiting for tidb instances ready
|
|
|
|
|
10.42.0.1:4000 ... ⠋
|
|
|
|
|
^CGot signal interrupt (Component: playground ; PID: 32567)
|
|
|
|
|
|
|
|
|
|
Playground receive signal: interrupt
|
|
|
|
|
Waiting for tidb instances ready
|
|
|
|
|
Waiting for tidb instances ready
|
|
|
|
|
10.42.0.1:4000 ... ⠋
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.42.0.1 Arch info ... Error
|
|
|
|
|
|
|
|
|
|
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for 'root@10.42.0.1:22' {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; uname -m}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
|
|
|
|
|
|
|
|
|
|
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2025-04-24-11-16-16.log.
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.42.0.1 Arch info ... Done
|
|
|
|
|
|
|
|
|
|
+ Detect CPU OS Name
|
|
|
|
|
- Detecting node 10.42.0.1 OS info ... Done
|
|
|
|
|
Please confirm your topology:
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Role Host Ports OS/Arch Directories
|
|
|
|
|
---- ---- ----- ------- -----------
|
|
|
|
|
pd 10.42.0.1 2379/2380 linux/aarch64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
|
|
|
|
|
tikv 10.42.0.1 20160/20180 linux/aarch64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
|
|
|
|
|
tidb 10.42.0.1 4000/10080 linux/aarch64 /tidb-deploy/tidb-4000
|
|
|
|
|
tiflash 10.42.0.1 9000/3930/20170/20292/8234/8123 linux/aarch64 /tidb-deploy/tiflash-9000,/tidb-data/tiflash-9000
|
|
|
|
|
prometheus 10.42.0.1 9090/12020 linux/aarch64 /tidb-deploy/prometheus-9090,/tidb-data/prometheus-9090
|
|
|
|
|
grafana 10.42.0.1 3000 linux/aarch64 /tidb-deploy/grafana-3000
|
|
|
|
|
alertmanager 10.42.0.1 9093/9094 linux/aarch64 /tidb-deploy/alertmanager-9093,/tidb-data/alertmanager-9093
|
|
|
|
|
Attention:
|
|
|
|
|
1. If the topology is not what you expected, check your yaml file.
|
|
|
|
|
2. Please confirm there is no port/directory conflicts in same host.
|
|
|
|
|
Do you want to continue? [y/N]: (default=N) y
|
|
|
|
|
+ Generate SSH keys ... Done
|
|
|
|
|
+ Download TiDB components
|
|
|
|
|
- Download pd:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tikv:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tidb:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tiflash:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download prometheus:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download grafana:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download alertmanager: (linux/arm64) ... Done
|
|
|
|
|
- Download node_exporter: (linux/arm64) ... Done
|
|
|
|
|
- Download blackbox_exporter: (linux/arm64) ... Done
|
|
|
|
|
+ Initialize target host environments
|
|
|
|
|
- Prepare 10.42.0.1:22 ... Done
|
|
|
|
|
+ Deploy TiDB instance
|
|
|
|
|
- Copy pd -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tikv -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tidb -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tiflash -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy prometheus -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy grafana -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy alertmanager -> 10.42.0.1 ... Done
|
|
|
|
|
- Deploy node_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
- Deploy blackbox_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
+ Copy certificate to remote host
|
|
|
|
|
+ Init instance configs
|
|
|
|
|
- Generate config pd -> 10.42.0.1:2379 ... Done
|
|
|
|
|
- Generate config tikv -> 10.42.0.1:20160 ... Done
|
|
|
|
|
- Generate config tidb -> 10.42.0.1:4000 ... Done
|
|
|
|
|
- Generate config tiflash -> 10.42.0.1:9000 ... Done
|
|
|
|
|
- Generate config prometheus -> 10.42.0.1:9090 ... Done
|
|
|
|
|
- Generate config grafana -> 10.42.0.1:3000 ... Done
|
|
|
|
|
- Generate config alertmanager -> 10.42.0.1:9093 ... Done
|
|
|
|
|
+ Init monitor configs
|
|
|
|
|
- Generate config node_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
- Generate config blackbox_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
Enabling component pd
|
|
|
|
|
Enabling instance 10.42.0.1:2379
|
|
|
|
|
Enable instance 10.42.0.1:2379 success
|
|
|
|
|
Enabling component tikv
|
|
|
|
|
Enabling instance 10.42.0.1:20160
|
|
|
|
|
Enable instance 10.42.0.1:20160 success
|
|
|
|
|
Enabling component tidb
|
|
|
|
|
Enabling instance 10.42.0.1:4000
|
|
|
|
|
Enable instance 10.42.0.1:4000 success
|
|
|
|
|
Enabling component tiflash
|
|
|
|
|
Enabling instance 10.42.0.1:9000
|
|
|
|
|
Enable instance 10.42.0.1:9000 success
|
|
|
|
|
Enabling component prometheus
|
|
|
|
|
Enabling instance 10.42.0.1:9090
|
|
|
|
|
Enable instance 10.42.0.1:9090 success
|
|
|
|
|
Enabling component grafana
|
|
|
|
|
Enabling instance 10.42.0.1:3000
|
|
|
|
|
Enable instance 10.42.0.1:3000 success
|
|
|
|
|
Enabling component alertmanager
|
|
|
|
|
Enabling instance 10.42.0.1:9093
|
|
|
|
|
Enable instance 10.42.0.1:9093 success
|
|
|
|
|
Enabling component node_exporter
|
|
|
|
|
Enabling instance 10.42.0.1
|
|
|
|
|
Enable 10.42.0.1 success
|
|
|
|
|
Enabling component blackbox_exporter
|
|
|
|
|
Enabling instance 10.42.0.1
|
|
|
|
|
Enable 10.42.0.1 success
|
|
|
|
|
Cluster `tidb-cluster` deployed successfully, you can start it with command: `tiup cluster start tidb-cluster --init`
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component tiflash
|
|
|
|
|
Starting instance 10.42.0.1:9000
|
|
|
|
|
Start instance 10.42.0.1:9000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
Start instance 10.42.0.1:9093 success
|
|
|
|
|
Starting component node_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
Starting component blackbox_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - UpdateTopology: cluster=tidb-cluster
|
|
|
|
|
Started cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
|
|
|
Your MySQL connection id is 545259528
|
|
|
|
|
Server version: 8.0.11-TiDB-v8.5.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
|
|
|
|
|
|
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> show databases;
|
|
|
|
|
+--------------------+
|
|
|
|
|
| Database |
|
|
|
|
|
+--------------------+
|
|
|
|
|
| INFORMATION_SCHEMA |
|
|
|
|
|
| METRICS_SCHEMA |
|
|
|
|
|
| PERFORMANCE_SCHEMA |
|
|
|
|
|
| mysql |
|
|
|
|
|
| sys |
|
|
|
|
|
| test |
|
|
|
|
|
+--------------------+
|
|
|
|
|
6 rows in set (0.000 sec)
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]>
|
|
|
|
|
MySQL [(none)]> create database tao_iot;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
^CCtrl-C -- query killed. Continuing normally.
|
|
|
|
|
^CCtrl-C -- query killed. Continuing normally.
|
|
|
|
|
^[
|
|
|
|
|
^[
|
|
|
|
|
|
|
|
|
|
^CCtrl-C -- exit!
|
|
|
|
|
Aborted
|
|
|
|
|
[root@localhost ~]# show databases;
|
|
|
|
|
-bash: show:未找到命令
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
|
|
|
Your MySQL connection id is 545259542
|
|
|
|
|
Server version: 8.0.11-TiDB-v8.5.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
|
|
|
|
|
|
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> show databases;
|
|
|
|
|
+--------------------+
|
|
|
|
|
| Database |
|
|
|
|
|
+--------------------+
|
|
|
|
|
| INFORMATION_SCHEMA |
|
|
|
|
|
| METRICS_SCHEMA |
|
|
|
|
|
| PERFORMANCE_SCHEMA |
|
|
|
|
|
| mysql |
|
|
|
|
|
| sys |
|
|
|
|
|
| tao_iot |
|
|
|
|
|
| test |
|
|
|
|
|
+--------------------+
|
|
|
|
|
7 rows in set (0.001 sec)
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> exit;
|
|
|
|
|
Bye
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Cluster name 'tidb-cluster' is duplicated (deploy.name_dup)
|
|
|
|
|
|
|
|
|
|
Please specify another cluster name
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component tiflash
|
|
|
|
|
Starting instance 10.42.0.1:9000
|
|
|
|
|
Start instance 10.42.0.1:9000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
Start instance 10.42.0.1:9093 success
|
|
|
|
|
Starting component node_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
Starting component blackbox_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - UpdateTopology: cluster=tidb-cluster
|
|
|
|
|
Started cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tiflash
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tiflash 10.42.0.1:9000 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component tiflash
|
|
|
|
|
Starting instance 10.42.0.1:9000
|
|
|
|
|
Start instance 10.42.0.1:9000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
Start instance 10.42.0.1:9093 success
|
|
|
|
|
Starting component node_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
Starting component blackbox_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - UpdateTopology: cluster=tidb-cluster
|
|
|
|
|
Started cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster display tidb-cluster
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Deploy user: tidb
|
|
|
|
|
SSH type: builtin
|
|
|
|
|
Dashboard URL: http://10.42.0.1:2379/dashboard
|
|
|
|
|
Grafana URL: http://10.42.0.1:3000
|
|
|
|
|
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
|
|
|
|
|
-- ---- ---- ----- ------- ------ -------- ----------
|
|
|
|
|
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Up /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
|
|
|
|
|
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Up - /tidb-deploy/grafana-3000
|
|
|
|
|
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
|
|
|
|
|
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
|
|
|
|
|
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Up - /tidb-deploy/tidb-4000
|
|
|
|
|
10.42.0.1:9000 tiflash 10.42.0.1 9000/3930/20170/20292/8234/8123 linux/aarch64 Up /tidb-data/tiflash-9000 /tidb-deploy/tiflash-9000
|
|
|
|
|
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
|
|
|
|
|
Total nodes: 7
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tiflash
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tiflash 10.42.0.1:9000 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Cluster name 'tidb-cluster' is duplicated (deploy.name_dup)
|
|
|
|
|
|
|
|
|
|
Please specify another cluster name
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# tiup cluster delete tidb-cluster
|
|
|
|
|
|
|
|
|
|
Error: unknown command "delete" for "tiup"
|
|
|
|
|
|
|
|
|
|
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2025-04-24-14-35-47.log.
|
|
|
|
|
[root@localhost ~]# tiup cluster destroy tidb-cluster
|
|
|
|
|
|
|
|
|
|
██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████
|
|
|
|
|
██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██
|
|
|
|
|
██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███
|
|
|
|
|
██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
|
███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████
|
|
|
|
|
|
|
|
|
|
This operation will destroy tidb v8.5.1 cluster tidb-cluster and its data.
|
|
|
|
|
Are you sure to continue?
|
|
|
|
|
(Type "Yes, I know my cluster and data will be deleted." to continue)
|
|
|
|
|
: Yes,I know my cluster and data will be deleted.
|
|
|
|
|
|
|
|
|
|
Error: Operation aborted by user (with incorrect answer 'Yes,I know my cluster and data will be deleted.') (tui.operation_aborted)
|
|
|
|
|
[root@localhost ~]# tiup cluster destroy tidb-cluster
|
|
|
|
|
|
|
|
|
|
██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████
|
|
|
|
|
██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██
|
|
|
|
|
██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███
|
|
|
|
|
██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
|
███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████
|
|
|
|
|
|
|
|
|
|
This operation will destroy tidb v8.5.1 cluster tidb-cluster and its data.
|
|
|
|
|
Are you sure to continue?
|
|
|
|
|
(Type "Yes, I know my cluster and data will be deleted." to continue)
|
|
|
|
|
: Yes, I know my cluster and data will be deleted.
|
|
|
|
|
Destroying cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tiflash
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tiflash 10.42.0.1:9000 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - DestroyCluster
|
|
|
|
|
Destroying component alertmanager
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy alertmanager paths: [/tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093/log /tidb-deploy/alertmanager-9093 /etc/systemd/system/alertmanager-9093.service]
|
|
|
|
|
Destroying component grafana
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy grafana paths: [/tidb-deploy/grafana-3000 /etc/systemd/system/grafana-3000.service]
|
|
|
|
|
Destroying component prometheus
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy prometheus paths: [/etc/systemd/system/prometheus-9090.service /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090/log /tidb-deploy/prometheus-9090]
|
|
|
|
|
Destroying component tiflash
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy tiflash paths: [/tidb-data/tiflash-9000 /tidb-deploy/tiflash-9000/log /tidb-deploy/tiflash-9000 /etc/systemd/system/tiflash-9000.service]
|
|
|
|
|
Destroying component tidb
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy tidb paths: [/tidb-deploy/tidb-4000 /etc/systemd/system/tidb-4000.service /tidb-deploy/tidb-4000/log]
|
|
|
|
|
Destroying component tikv
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy tikv paths: [/tidb-data/tikv-20160 /tidb-deploy/tikv-20160/log /tidb-deploy/tikv-20160 /etc/systemd/system/tikv-20160.service]
|
|
|
|
|
Destroying component pd
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy pd paths: [/tidb-data/pd-2379 /tidb-deploy/pd-2379/log /tidb-deploy/pd-2379 /etc/systemd/system/pd-2379.service]
|
|
|
|
|
Destroying monitored 10.42.0.1
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy monitored on 10.42.0.1 success
|
|
|
|
|
Clean global directories 10.42.0.1
|
|
|
|
|
Clean directory /tidb-deploy on instance 10.42.0.1
|
|
|
|
|
Clean directory /tidb-data on instance 10.42.0.1
|
|
|
|
|
Clean global directories 10.42.0.1 success
|
|
|
|
|
Delete public key 10.42.0.1
|
|
|
|
|
Delete public key 10.42.0.1 success
|
|
|
|
|
Destroyed cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Failed to parse topology file topology.yaml (topology.parse_failed)
|
|
|
|
|
caused by: yaml: line 59: did not find expected key
|
|
|
|
|
|
|
|
|
|
Please check the syntax of your topology file topology.yaml and try again.
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Failed to parse topology file topology.yaml (topology.parse_failed)
|
|
|
|
|
caused by: yaml: line 58: did not find expected key
|
|
|
|
|
|
|
|
|
|
Please check the syntax of your topology file topology.yaml and try again.
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Failed to parse topology file topology.yaml (topology.parse_failed)
|
|
|
|
|
caused by: yaml: line 58: did not find expected key
|
|
|
|
|
|
|
|
|
|
Please check the syntax of your topology file topology.yaml and try again.
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
|
|
|
|
|
Error: Failed to parse topology file topology.yaml (topology.parse_failed)
|
|
|
|
|
caused by: yaml: line 58: did not find expected key
|
|
|
|
|
|
|
|
|
|
Please check the syntax of your topology file topology.yaml and try again.
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.42.0.1 Arch info ... Error
|
|
|
|
|
|
|
|
|
|
Error: failed to fetch cpu-arch or kernel-name: executor.ssh.execute_failed: Failed to execute command over SSH for 'root@10.42.0.1:22' {ssh_stderr: , ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin; uname -m}, cause: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
|
|
|
|
|
|
|
|
|
|
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2025-04-24-14-57-18.log.
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.42.0.1 Arch info ... Done
|
|
|
|
|
|
|
|
|
|
+ Detect CPU OS Name
|
|
|
|
|
- Detecting node 10.42.0.1 OS info ... Done
|
|
|
|
|
Please confirm your topology:
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Role Host Ports OS/Arch Directories
|
|
|
|
|
---- ---- ----- ------- -----------
|
|
|
|
|
pd 10.42.0.1 2379/2380 linux/aarch64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
|
|
|
|
|
tikv 10.42.0.1 20160/20180 linux/aarch64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
|
|
|
|
|
tidb 10.42.0.1 4000/10080 linux/aarch64 /tidb-deploy/tidb-4000
|
|
|
|
|
cdc 10.42.0.1 8300 linux/aarch64 /tidb-deploy/cdc-8300,/tidb-data/cdc-8300
|
|
|
|
|
prometheus 10.42.0.1 9090/12020 linux/aarch64 /tidb-deploy/prometheus-9090,/tidb-data/prometheus-9090
|
|
|
|
|
grafana 10.42.0.1 3000 linux/aarch64 /tidb-deploy/grafana-3000
|
|
|
|
|
alertmanager 10.42.0.1 9093/9094 linux/aarch64 /tidb-deploy/alertmanager-9093,/tidb-data/alertmanager-9093
|
|
|
|
|
Attention:
|
|
|
|
|
1. If the topology is not what you expected, check your yaml file.
|
|
|
|
|
2. Please confirm there is no port/directory conflicts in same host.
|
|
|
|
|
Do you want to continue? [y/N]: (default=N) y
|
|
|
|
|
+ Generate SSH keys ... Done
|
|
|
|
|
+ Download TiDB components
|
|
|
|
|
- Download pd:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tikv:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tidb:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download cdc:v8.5.1 (linux/arm64) ... Error
|
|
|
|
|
- Download prometheus:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download grafana:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download alertmanager: (linux/arm64) ... Done
|
|
|
|
|
- Download node_exporter: (linux/arm64) ... Done
|
|
|
|
|
- Download blackbox_exporter: (linux/arm64) ... Done
|
|
|
|
|
|
|
|
|
|
Error: version v8.5.1 on linux/arm64 for component cdc not found: unknown version
|
|
|
|
|
|
|
|
|
|
Verbose debug logs has been written to /root/.tiup/logs/tiup-cluster-debug-2025-04-24-14-57-41.log.
|
|
|
|
|
[root@localhost ~]# vi /root/topology.yaml
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.42.0.1 Arch info ... Done
|
|
|
|
|
|
|
|
|
|
+ Detect CPU OS Name
|
|
|
|
|
- Detecting node 10.42.0.1 OS info ... Done
|
|
|
|
|
Please confirm your topology:
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Role Host Ports OS/Arch Directories
|
|
|
|
|
---- ---- ----- ------- -----------
|
|
|
|
|
pd 10.42.0.1 2379/2380 linux/aarch64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
|
|
|
|
|
tikv 10.42.0.1 20160/20180 linux/aarch64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
|
|
|
|
|
tidb 10.42.0.1 4000/10080 linux/aarch64 /tidb-deploy/tidb-4000
|
|
|
|
|
prometheus 10.42.0.1 9090/12020 linux/aarch64 /tidb-deploy/prometheus-9090,/tidb-data/prometheus-9090
|
|
|
|
|
grafana 10.42.0.1 3000 linux/aarch64 /tidb-deploy/grafana-3000
|
|
|
|
|
alertmanager 10.42.0.1 9093/9094 linux/aarch64 /tidb-deploy/alertmanager-9093,/tidb-data/alertmanager-9093
|
|
|
|
|
Attention:
|
|
|
|
|
1. If the topology is not what you expected, check your yaml file.
|
|
|
|
|
2. Please confirm there is no port/directory conflicts in same host.
|
|
|
|
|
Do you want to continue? [y/N]: (default=N) y
|
|
|
|
|
+ Generate SSH keys ... Done
|
|
|
|
|
+ Download TiDB components
|
|
|
|
|
- Download pd:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tikv:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tidb:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download prometheus:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download grafana:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download alertmanager: (linux/arm64) ... Done
|
|
|
|
|
- Download node_exporter: (linux/arm64) ... Done
|
|
|
|
|
- Download blackbox_exporter: (linux/arm64) ... Done
|
|
|
|
|
+ Initialize target host environments
|
|
|
|
|
- Prepare 10.42.0.1:22 ... Done
|
|
|
|
|
+ Deploy TiDB instance
|
|
|
|
|
- Copy pd -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tikv -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tidb -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy prometheus -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy grafana -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy alertmanager -> 10.42.0.1 ... Done
|
|
|
|
|
- Deploy node_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
- Deploy blackbox_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
+ Copy certificate to remote host
|
|
|
|
|
+ Init instance configs
|
|
|
|
|
- Generate config pd -> 10.42.0.1:2379 ... Done
|
|
|
|
|
- Generate config tikv -> 10.42.0.1:20160 ... Done
|
|
|
|
|
- Generate config tidb -> 10.42.0.1:4000 ... Done
|
|
|
|
|
- Generate config prometheus -> 10.42.0.1:9090 ... Done
|
|
|
|
|
- Generate config grafana -> 10.42.0.1:3000 ... Done
|
|
|
|
|
- Generate config alertmanager -> 10.42.0.1:9093 ... Done
|
|
|
|
|
+ Init monitor configs
|
|
|
|
|
- Generate config node_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
- Generate config blackbox_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
Enabling component pd
|
|
|
|
|
Enabling instance 10.42.0.1:2379
|
|
|
|
|
Enable instance 10.42.0.1:2379 success
|
|
|
|
|
Enabling component tikv
|
|
|
|
|
Enabling instance 10.42.0.1:20160
|
|
|
|
|
Enable instance 10.42.0.1:20160 success
|
|
|
|
|
Enabling component tidb
|
|
|
|
|
Enabling instance 10.42.0.1:4000
|
|
|
|
|
Enable instance 10.42.0.1:4000 success
|
|
|
|
|
Enabling component prometheus
|
|
|
|
|
Enabling instance 10.42.0.1:9090
|
|
|
|
|
Enable instance 10.42.0.1:9090 success
|
|
|
|
|
Enabling component grafana
|
|
|
|
|
Enabling instance 10.42.0.1:3000
|
|
|
|
|
Enable instance 10.42.0.1:3000 success
|
|
|
|
|
Enabling component alertmanager
|
|
|
|
|
Enabling instance 10.42.0.1:9093
|
|
|
|
|
Enable instance 10.42.0.1:9093 success
|
|
|
|
|
Enabling component node_exporter
|
|
|
|
|
Enabling instance 10.42.0.1
|
|
|
|
|
Enable 10.42.0.1 success
|
|
|
|
|
Enabling component blackbox_exporter
|
|
|
|
|
Enabling instance 10.42.0.1
|
|
|
|
|
Enable 10.42.0.1 success
|
|
|
|
|
Cluster `tidb-cluster` deployed successfully, you can start it with command: `tiup cluster start tidb-cluster --init`
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster destroy tidb-cluster
|
|
|
|
|
|
|
|
|
|
██ ██ █████ ██████ ███ ██ ██ ███ ██ ██████
|
|
|
|
|
██ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██ ██
|
|
|
|
|
██ █ ██ ███████ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ███
|
|
|
|
|
██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
|
|
|
|
███ ███ ██ ██ ██ ██ ██ ████ ██ ██ ████ ██████
|
|
|
|
|
|
|
|
|
|
This operation will destroy tidb v8.5.1 cluster tidb-cluster and its data.
|
|
|
|
|
Are you sure to continue?
|
|
|
|
|
(Type "Yes, I know my cluster and data will be deleted." to continue)
|
|
|
|
|
: Yes, I know my cluster and data will be deleted.
|
|
|
|
|
Destroying cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - DestroyCluster
|
|
|
|
|
Destroying component alertmanager
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy alertmanager paths: [/tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093/log /tidb-deploy/alertmanager-9093 /etc/systemd/system/alertmanager-9093.service]
|
|
|
|
|
Destroying component grafana
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy grafana paths: [/tidb-deploy/grafana-3000 /etc/systemd/system/grafana-3000.service]
|
|
|
|
|
Destroying component prometheus
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy prometheus paths: [/tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090/log /tidb-deploy/prometheus-9090 /etc/systemd/system/prometheus-9090.service]
|
|
|
|
|
Destroying component tidb
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy tidb paths: [/tidb-deploy/tidb-4000/log /tidb-deploy/tidb-4000 /etc/systemd/system/tidb-4000.service]
|
|
|
|
|
Destroying component tikv
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy tikv paths: [/tidb-data/tikv-20160 /tidb-deploy/tikv-20160/log /tidb-deploy/tikv-20160 /etc/systemd/system/tikv-20160.service]
|
|
|
|
|
Destroying component pd
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy 10.42.0.1 finished
|
|
|
|
|
- Destroy pd paths: [/etc/systemd/system/pd-2379.service /tidb-data/pd-2379 /tidb-deploy/pd-2379/log /tidb-deploy/pd-2379]
|
|
|
|
|
Destroying monitored 10.42.0.1
|
|
|
|
|
Destroying instance 10.42.0.1
|
|
|
|
|
Destroy monitored on 10.42.0.1 success
|
|
|
|
|
Clean global directories 10.42.0.1
|
|
|
|
|
Clean directory /tidb-deploy on instance 10.42.0.1
|
|
|
|
|
Clean directory /tidb-data on instance 10.42.0.1
|
|
|
|
|
Clean global directories 10.42.0.1 success
|
|
|
|
|
Delete public key 10.42.0.1
|
|
|
|
|
Delete public key 10.42.0.1 success
|
|
|
|
|
Destroyed cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster deploy tidb-cluster v8.5.1 topology.yaml --user root -p
|
|
|
|
|
Input SSH password:
|
|
|
|
|
|
|
|
|
|
+ Detect CPU Arch Name
|
|
|
|
|
- Detecting node 10.42.0.1 Arch info ... Done
|
|
|
|
|
|
|
|
|
|
+ Detect CPU OS Name
|
|
|
|
|
- Detecting node 10.42.0.1 OS info ... Done
|
|
|
|
|
Please confirm your topology:
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Role Host Ports OS/Arch Directories
|
|
|
|
|
---- ---- ----- ------- -----------
|
|
|
|
|
pd 10.42.0.1 2379/2380 linux/aarch64 /tidb-deploy/pd-2379,/tidb-data/pd-2379
|
|
|
|
|
tikv 10.42.0.1 20160/20180 linux/aarch64 /tidb-deploy/tikv-20160,/tidb-data/tikv-20160
|
|
|
|
|
tidb 10.42.0.1 4000/10080 linux/aarch64 /tidb-deploy/tidb-4000
|
|
|
|
|
prometheus 10.42.0.1 9090/12020 linux/aarch64 /tidb-deploy/prometheus-9090,/tidb-data/prometheus-9090
|
|
|
|
|
grafana 10.42.0.1 3000 linux/aarch64 /tidb-deploy/grafana-3000
|
|
|
|
|
alertmanager 10.42.0.1 9093/9094 linux/aarch64 /tidb-deploy/alertmanager-9093,/tidb-data/alertmanager-9093
|
|
|
|
|
Attention:
|
|
|
|
|
1. If the topology is not what you expected, check your yaml file.
|
|
|
|
|
2. Please confirm there is no port/directory conflicts in same host.
|
|
|
|
|
Do you want to continue? [y/N]: (default=N) y
|
|
|
|
|
+ Generate SSH keys ... Done
|
|
|
|
|
+ Download TiDB components
|
|
|
|
|
- Download pd:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tikv:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download tidb:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download prometheus:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download grafana:v8.5.1 (linux/arm64) ... Done
|
|
|
|
|
- Download alertmanager: (linux/arm64) ... Done
|
|
|
|
|
- Download node_exporter: (linux/arm64) ... Done
|
|
|
|
|
- Download blackbox_exporter: (linux/arm64) ... Done
|
|
|
|
|
+ Initialize target host environments
|
|
|
|
|
- Prepare 10.42.0.1:22 ... Done
|
|
|
|
|
+ Deploy TiDB instance
|
|
|
|
|
- Copy pd -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tikv -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy tidb -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy prometheus -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy grafana -> 10.42.0.1 ... Done
|
|
|
|
|
- Copy alertmanager -> 10.42.0.1 ... Done
|
|
|
|
|
- Deploy node_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
- Deploy blackbox_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
+ Copy certificate to remote host
|
|
|
|
|
+ Init instance configs
|
|
|
|
|
- Generate config pd -> 10.42.0.1:2379 ... Done
|
|
|
|
|
- Generate config tikv -> 10.42.0.1:20160 ... Done
|
|
|
|
|
- Generate config tidb -> 10.42.0.1:4000 ... Done
|
|
|
|
|
- Generate config prometheus -> 10.42.0.1:9090 ... Done
|
|
|
|
|
- Generate config grafana -> 10.42.0.1:3000 ... Done
|
|
|
|
|
- Generate config alertmanager -> 10.42.0.1:9093 ... Done
|
|
|
|
|
+ Init monitor configs
|
|
|
|
|
- Generate config node_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
- Generate config blackbox_exporter -> 10.42.0.1 ... Done
|
|
|
|
|
Enabling component pd
|
|
|
|
|
Enabling instance 10.42.0.1:2379
|
|
|
|
|
Enable instance 10.42.0.1:2379 success
|
|
|
|
|
Enabling component tikv
|
|
|
|
|
Enabling instance 10.42.0.1:20160
|
|
|
|
|
Enable instance 10.42.0.1:20160 success
|
|
|
|
|
Enabling component tidb
|
|
|
|
|
Enabling instance 10.42.0.1:4000
|
|
|
|
|
Enable instance 10.42.0.1:4000 success
|
|
|
|
|
Enabling component prometheus
|
|
|
|
|
Enabling instance 10.42.0.1:9090
|
|
|
|
|
Enable instance 10.42.0.1:9090 success
|
|
|
|
|
Enabling component grafana
|
|
|
|
|
Enabling instance 10.42.0.1:3000
|
|
|
|
|
Enable instance 10.42.0.1:3000 success
|
|
|
|
|
Enabling component alertmanager
|
|
|
|
|
Enabling instance 10.42.0.1:9093
|
|
|
|
|
Enable instance 10.42.0.1:9093 success
|
|
|
|
|
Enabling component node_exporter
|
|
|
|
|
Enabling instance 10.42.0.1
|
|
|
|
|
Enable 10.42.0.1 success
|
|
|
|
|
Enabling component blackbox_exporter
|
|
|
|
|
Enabling instance 10.42.0.1
|
|
|
|
|
Enable 10.42.0.1 success
|
|
|
|
|
Cluster `tidb-cluster` deployed successfully, you can start it with command: `tiup cluster start tidb-cluster --init`
|
|
|
|
|
[root@localhost ~]# tiup cluster display tidb-cluster
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Deploy user: tidb
|
|
|
|
|
SSH type: builtin
|
|
|
|
|
Dashboard URL: http://10.42.0.1:2379/dashboard
|
|
|
|
|
Grafana URL: http://10.42.0.1:3000
|
|
|
|
|
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
|
|
|
|
|
-- ---- ---- ----- ------- ------ -------- ----------
|
|
|
|
|
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Down /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
|
|
|
|
|
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Down - /tidb-deploy/grafana-3000
|
|
|
|
|
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
|
|
|
|
|
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Down /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
|
|
|
|
|
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Down - /tidb-deploy/tidb-4000
|
|
|
|
|
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
|
|
|
|
|
Total nodes: 6
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster display tidb-cluster
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Deploy user: tidb
|
|
|
|
|
SSH type: builtin
|
|
|
|
|
Dashboard URL: http://10.42.0.1:2379/dashboard
|
|
|
|
|
Grafana URL: http://10.42.0.1:3000
|
|
|
|
|
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
|
|
|
|
|
-- ---- ---- ----- ------- ------ -------- ----------
|
|
|
|
|
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Down /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
|
|
|
|
|
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Up - /tidb-deploy/grafana-3000
|
|
|
|
|
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
|
|
|
|
|
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
|
|
|
|
|
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Up - /tidb-deploy/tidb-4000
|
|
|
|
|
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
|
|
|
|
|
Total nodes: 6
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
Start instance 10.42.0.1:9093 success
|
|
|
|
|
Starting component node_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
Starting component blackbox_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - UpdateTopology: cluster=tidb-cluster
|
|
|
|
|
Started cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster display tidb-cluster
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Deploy user: tidb
|
|
|
|
|
SSH type: builtin
|
|
|
|
|
Dashboard URL: http://10.42.0.1:2379/dashboard
|
|
|
|
|
Grafana URL: http://10.42.0.1:3000
|
|
|
|
|
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
|
|
|
|
|
-- ---- ---- ----- ------- ------ -------- ----------
|
|
|
|
|
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Up /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
|
|
|
|
|
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Up - /tidb-deploy/grafana-3000
|
|
|
|
|
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
|
|
|
|
|
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
|
|
|
|
|
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Up - /tidb-deploy/tidb-4000
|
|
|
|
|
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
|
|
|
|
|
Total nodes: 6
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
|
|
|
Your MySQL connection id is 1174405126
|
|
|
|
|
Server version: 8.0.11-TiDB-v8.5.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
|
|
|
|
|
|
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> show databases;
|
|
|
|
|
+--------------------+
|
|
|
|
|
| Database |
|
|
|
|
|
+--------------------+
|
|
|
|
|
| INFORMATION_SCHEMA |
|
|
|
|
|
| METRICS_SCHEMA |
|
|
|
|
|
| PERFORMANCE_SCHEMA |
|
|
|
|
|
| mysql |
|
|
|
|
|
| sys |
|
|
|
|
|
| test |
|
|
|
|
|
+--------------------+
|
|
|
|
|
6 rows in set (0.001 sec)
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> create database tao_iot;
|
|
|
|
|
show databases;
|
|
|
|
|
^CCtrl-C -- query killed. Continuing normally.
|
|
|
|
|
^CCtrl-C -- query killed. Continuing normally.
|
|
|
|
|
^CCtrl-C -- exit!
|
|
|
|
|
Aborted
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
|
|
|
Your MySQL connection id is 1174405132
|
|
|
|
|
Server version: 8.0.11-TiDB-v8.5.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
|
|
|
|
|
|
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> show databases;
|
|
|
|
|
+--------------------+
|
|
|
|
|
| Database |
|
|
|
|
|
+--------------------+
|
|
|
|
|
| INFORMATION_SCHEMA |
|
|
|
|
|
| METRICS_SCHEMA |
|
|
|
|
|
| PERFORMANCE_SCHEMA |
|
|
|
|
|
| mysql |
|
|
|
|
|
| sys |
|
|
|
|
|
| tao_iot |
|
|
|
|
|
| test |
|
|
|
|
|
+--------------------+
|
|
|
|
|
7 rows in set (0.001 sec)
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> exit;
|
|
|
|
|
Bye
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N) y
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StopCluster
|
|
|
|
|
Stopping component alertmanager
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop alertmanager 10.42.0.1:9093 success
|
|
|
|
|
Stopping component grafana
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop grafana 10.42.0.1:3000 success
|
|
|
|
|
Stopping component prometheus
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop prometheus 10.42.0.1:9090 success
|
|
|
|
|
Stopping component tidb
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tidb 10.42.0.1:4000 success
|
|
|
|
|
Stopping component tikv
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop tikv 10.42.0.1:20160 success
|
|
|
|
|
Stopping component pd
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop pd 10.42.0.1:2379 success
|
|
|
|
|
Stopping component node_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopping component blackbox_exporter
|
|
|
|
|
Stopping instance 10.42.0.1
|
|
|
|
|
Stop 10.42.0.1 success
|
|
|
|
|
Stopped cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# tiup cluster start tidb-cluster
|
|
|
|
|
Starting cluster tidb-cluster...
|
|
|
|
|
+ [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa.pub
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
+ [ Serial ] - StartCluster
|
|
|
|
|
Starting component pd
|
|
|
|
|
Starting instance 10.42.0.1:2379
|
|
|
|
|
Start instance 10.42.0.1:2379 success
|
|
|
|
|
Starting component tikv
|
|
|
|
|
Starting instance 10.42.0.1:20160
|
|
|
|
|
Start instance 10.42.0.1:20160 success
|
|
|
|
|
Starting component tidb
|
|
|
|
|
Starting instance 10.42.0.1:4000
|
|
|
|
|
Start instance 10.42.0.1:4000 success
|
|
|
|
|
Starting component prometheus
|
|
|
|
|
Starting instance 10.42.0.1:9090
|
|
|
|
|
Start instance 10.42.0.1:9090 success
|
|
|
|
|
Starting component grafana
|
|
|
|
|
Starting instance 10.42.0.1:3000
|
|
|
|
|
Start instance 10.42.0.1:3000 success
|
|
|
|
|
Starting component alertmanager
|
|
|
|
|
Starting instance 10.42.0.1:9093
|
|
|
|
|
Start instance 10.42.0.1:9093 success
|
|
|
|
|
Starting component node_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
Starting component blackbox_exporter
|
|
|
|
|
Starting instance 10.42.0.1
|
|
|
|
|
Start 10.42.0.1 success
|
|
|
|
|
+ [ Serial ] - UpdateTopology: cluster=tidb-cluster
|
|
|
|
|
Started cluster `tidb-cluster` successfully
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
|
|
|
|
Your MySQL connection id is 648019974
|
|
|
|
|
Server version: 8.0.11-TiDB-v8.5.1 TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
|
|
|
|
|
|
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> show databses;
|
|
|
|
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 13 near "databses"
|
|
|
|
|
MySQL [(none)]> show databases;
|
|
|
|
|
+--------------------+
|
|
|
|
|
| Database |
|
|
|
|
|
+--------------------+
|
|
|
|
|
| INFORMATION_SCHEMA |
|
|
|
|
|
| METRICS_SCHEMA |
|
|
|
|
|
| PERFORMANCE_SCHEMA |
|
|
|
|
|
| mysql |
|
|
|
|
|
| sys |
|
|
|
|
|
| test |
|
|
|
|
|
+--------------------+
|
|
|
|
|
6 rows in set (0.000 sec)
|
|
|
|
|
|
|
|
|
|
MySQL [(none)]> exit;
|
|
|
|
|
Bye
|
|
|
|
|
[root@localhost ~]# tuip cluster display tidb-cluster
|
|
|
|
|
-bash: tuip:未找到命令
|
|
|
|
|
[root@localhost ~]# tiup cluster display tidb-cluster
|
|
|
|
|
Cluster type: tidb
|
|
|
|
|
Cluster name: tidb-cluster
|
|
|
|
|
Cluster version: v8.5.1
|
|
|
|
|
Deploy user: tidb
|
|
|
|
|
SSH type: builtin
|
|
|
|
|
Dashboard URL: http://10.42.0.1:2379/dashboard
|
|
|
|
|
Grafana URL: http://10.42.0.1:3000
|
|
|
|
|
ID Role Host Ports OS/Arch Status Data Dir Deploy Dir
|
|
|
|
|
-- ---- ---- ----- ------- ------ -------- ----------
|
|
|
|
|
10.42.0.1:9093 alertmanager 10.42.0.1 9093/9094 linux/aarch64 Up /tidb-data/alertmanager-9093 /tidb-deploy/alertmanager-9093
|
|
|
|
|
10.42.0.1:3000 grafana 10.42.0.1 3000 linux/aarch64 Up - /tidb-deploy/grafana-3000
|
|
|
|
|
10.42.0.1:2379 pd 10.42.0.1 2379/2380 linux/aarch64 Up|UI /tidb-data/pd-2379 /tidb-deploy/pd-2379
|
|
|
|
|
10.42.0.1:9090 prometheus 10.42.0.1 9090/12020 linux/aarch64 Up /tidb-data/prometheus-9090 /tidb-deploy/prometheus-9090
|
|
|
|
|
10.42.0.1:4000 tidb 10.42.0.1 4000/10080 linux/aarch64 Up - /tidb-deploy/tidb-4000
|
|
|
|
|
10.42.0.1:20160 tikv 10.42.0.1 20160/20180 linux/aarch64 Up /tidb-data/tikv-20160 /tidb-deploy/tikv-20160
|
|
|
|
|
Total nodes: 6
|
|
|
|
|
[root@localhost ~]# tiup cluster list
|
|
|
|
|
Name User Version Path PrivateKey
|
|
|
|
|
---- ---- ------- ---- ----------
|
|
|
|
|
tidb-cluster tidb v8.5.1 /root/.tiup/storage/cluster/clusters/tidb-cluster /root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 1. 停止 TiDB 集群
|
|
|
|
|
tiup cluster stop tidb-cluster
|
|
|
|
|
|
|
|
|
|
# 2. 在 /media/raid1 创建 TiDB 数据目录
|
|
|
|
|
mkdir -p /media/raid1/tidb-data
|
|
|
|
|
|
|
|
|
|
# 3. 备份现有数据
|
|
|
|
|
cp -a /tidb-data/* /media/raid1/tidb-data/
|
|
|
|
|
|
|
|
|
|
# 4. 创建符号链接
|
|
|
|
|
mv /tidb-data /tidb-data.bak
|
|
|
|
|
ln -s /media/raid1/tidb-data /tidb-data
|
|
|
|
|
|
|
|
|
|
# 5. 设置适当的权限
|
|
|
|
|
chown -R tidb:tidb /media/raid1/tidb-data
|
|
|
|
|
chmod -R 750 /media/raid1/tidb-data
|
|
|
|
|
|
|
|
|
|
# 6. 启动 TiDB 集群
|
|
|
|
|
tiup cluster start tidb-cluster
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# ls -la /tidb-data
|
|
|
|
|
ls: 无法访问 '/tidb-data': 没有那个文件或目录
|
|
|
|
|
[root@localhost ~]# /media/raid1/
|
|
|
|
|
-bash: /media/raid1/:是一个目录
|
|
|
|
|
[root@localhost ~]# find /media/raid1/ -name "tidb-data" -type d
|
|
|
|
|
/media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# find /media/raid1/ -type d -maxdepth 1
|
|
|
|
|
find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments.
|
|
|
|
|
/media/raid1/
|
|
|
|
|
/media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
[root@localhost ~]# tiup cluster stop tidb-cluster
|
|
|
|
|
Will stop the cluster tidb-cluster with nodes: , roles: .
|
|
|
|
|
Do you want to continue? [y/N]:(default=N)
|
|
|
|
|
Error: Operation aborted by user (with answer '') (tui.operation_aborted)
|
|
|
|
|
[root@localhost ~]# cat > /etc/systemd/system/tidb-cluster.service << 'EOF'
|
|
|
|
|
> [Unit]
|
|
|
|
|
> Description=TiDB集群服务
|
|
|
|
|
> After=network.target
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=forking
|
|
|
|
|
> ExecStart=/bin/bash -c "source /root/.bash_profile && tiup cluster start tidb-cluster"
|
|
|
|
|
> ExecStop=/bin/bash -c "source /root/.bash_profile && tiup cluster stop tidb-cluster"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> EOF
|
|
|
|
|
[root@localhost ~]# systemctl daemon-reload
|
|
|
|
|
[root@localhost ~]# systemctl enable tidb-cluster.service
|
|
|
|
|
Created symlink /etc/systemd/system/multi-user.target.wants/tidb-cluster.service → /etc/systemd/system/tidb-cluster.service.
|
|
|
|
|
[root@localhost ~]# systemctl start tidb-cluster.service
|
|
|
|
|
Job for tidb-cluster.service failed because a timeout was exceeded.
|
|
|
|
|
See "systemctl status tidb-cluster.service" and "journalctl -xe" for details.
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p haiwei@123
|
|
|
|
|
Enter password:
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p haiwei@123
|
|
|
|
|
Enter password:
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
[root@localhost ~]# cat > /etc/systemd/system/tidb-cluster.service << 'EOF'
|
|
|
|
|
> [Unit]
|
|
|
|
|
> Description=TiDB集群服务
|
|
|
|
|
> After=network.target
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=forking
|
|
|
|
|
> ExecStart=/bin/bash -c "source /root/.bash_profile && tiup cluster start tidb-cluster -y"
|
|
|
|
|
> ExecStop=/bin/bash -c "source /root/.bash_profile && tiup cluster stop tidb-cluster -y"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
> TimeoutStartSec=600
|
|
|
|
|
> TimeoutStopSec=600
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> EOF
|
|
|
|
|
[root@localhost ~]# ln -s /media/raid1/tidb-data /tidb-data
|
|
|
|
|
[root@localhost ~]# chown -h tidb:tidb /tidb-data
|
|
|
|
|
[root@localhost ~]# systemctl daemon-reload
|
|
|
|
|
[root@localhost ~]# systemctl restart tidb-cluster.service
|
|
|
|
|
Job for tidb-cluster.service failed because the control process exited with error code.
|
|
|
|
|
See "systemctl status tidb-cluster.service" and "journalctl -xe" for details.
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=forking
|
|
|
|
|
> ExecStart=/bin/bash -c "source /root/.bash_profile && tiup cluster start tidb-cluster"
|
|
|
|
|
> ExecStop=/bin/bash -c "source /root/.bash_profile && tiup cluster stop tidb-cluster"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> EOF
|
|
|
|
|
[root@localhost ~]# systemctl daemon-reload
|
|
|
|
|
[root@localhost ~]# systemctl enable tidb-cluster.service
|
|
|
|
|
Created symlink /etc/systemd/system/multi-user.target.wants/tidb-cluster.service → /etc/systemd/system/tidb-cluster.service.
|
|
|
|
|
[root@localhost ~]# systemctl start tidb-cluster.service
|
|
|
|
|
Job for tidb-cluster.service failed because a timeout was exceeded.
|
|
|
|
|
See "systemctl status tidb-cluster.service" and "journalctl -xe" for details.
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p haiwei@123
|
|
|
|
|
Enter password:
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p haiwei@123
|
|
|
|
|
Enter password:
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# mysql -h 10.42.0.1 -P 4000 -u root -p
|
|
|
|
|
Enter password:
|
|
|
|
|
ERROR 2002 (HY000): Can't connect to MySQL server on '10.42.0.1' (115)
|
|
|
|
|
[root@localhost ~]# cat > /etc/systemd/system/tidb-cluster.service << 'EOF'
|
|
|
|
|
> [Unit]
|
|
|
|
|
> Description=TiDB集群服务
|
|
|
|
|
> After=network.target
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=forking
|
|
|
|
|
> ExecStart=/bin/bash -c "source /root/.bash_profile && tiup cluster start tidb-cluster -y"
|
|
|
|
|
> ExecStop=/bin/bash -c "source /root/.bash_profile && tiup cluster stop tidb-cluster -y"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
> TimeoutStartSec=600
|
|
|
|
|
> TimeoutStopSec=600
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> EOF
|
|
|
|
|
[root@localhost ~]# ln -s /media/raid1/tidb-data /tidb-data
|
|
|
|
|
[root@localhost ~]# chown -h tidb:tidb /tidb-data
|
|
|
|
|
[root@localhost ~]# systemctl daemon-reload
|
|
|
|
|
[root@localhost ~]# systemctl restart tidb-cluster.service
|
|
|
|
|
Job for tidb-cluster.service failed because the control process exited with error code.
|
|
|
|
|
See "systemctl status tidb-cluster.service" and "journalctl -xe" for details.
|
|
|
|
|
[root@localhost ~]# ^C
|
|
|
|
|
[root@localhost ~]# cat > /etc/systemd/system/tidb-cluster.service << 'EOF'
|
|
|
|
|
> [Unit]
|
|
|
|
|
> Description=TiDB集群服务
|
|
|
|
|
> After=network-online.target
|
|
|
|
|
> Wants=network-online.target
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=oneshot
|
|
|
|
|
> RemainAfterExit=yes
|
|
|
|
|
> ExecStart=/bin/bash -c "source /root/.bash_profile && tiup cluster start tidb-cluster -y"
|
|
|
|
|
> ExecStop=/bin/bash -c "source /root/.bash_profile && tiup cluster stop tidb-cluster -y"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
> TimeoutStartSec=600
|
|
|
|
|
> TimeoutStopSec=600
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> EOF
|
|
|
|
|
[root@localhost ~]# systemctl status tidb-cluster.service
|
|
|
|
|
Warning: The unit file, source configuration file or drop-ins of tidb-cluster.service changed on disk. Run 'systemctl daemon-reload' to reload units.
|
|
|
|
|
● tidb-cluster.service - TiDB集群服务
|
|
|
|
|
Loaded: loaded (/etc/systemd/system/tidb-cluster.service; enabled; vendor preset: disabled)
|
|
|
|
|
Active: activating (start) since Thu 2025-04-24 16:07:51 CST; 1min 31s ago
|
|
|
|
|
Cntrl PID: 540413 (tiup)
|
|
|
|
|
Tasks: 30
|
|
|
|
|
Memory: 26.5M
|
|
|
|
|
CGroup: /system.slice/tidb-cluster.service
|
|
|
|
|
├─540413 tiup cluster start tidb-cluster -y
|
|
|
|
|
└─540466 /root/.tiup/components/cluster/v1.16.1/tiup-cluster start tidb-cluster -y
|
|
|
|
|
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: + [ Serial ] - StartCluster
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: Starting component pd
|
|
|
|
|
4月 24 16:07:52 localhost.localdomain bash[540466]: Starting instance 10.42.0.1:2379
|
|
|
|
|
4月 24 16:07:53 localhost.localdomain bash[540466]: Start instance 10.42.0.1:2379 success
|
|
|
|
|
4月 24 16:07:53 localhost.localdomain bash[540466]: Starting component tikv
|
|
|
|
|
4月 24 16:07:53 localhost.localdomain bash[540466]: Starting instance 10.42.0.1:20160
|
|
|
|
|
[root@localhost ~]# journalctl -u tidb-cluster.service
|
|
|
|
|
-- Logs begin at Wed 2025-04-23 14:23:29 CST, end at Thu 2025-04-24 16:09:32 CST. --
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain systemd[1]: Starting TiDB集群服务...
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain bash[518232]: Starting cluster tidb-cluster...
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain bash[518232]: + [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-clu>4月 24 16:01:12 localhost.localdomain bash[518232]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain bash[518232]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain bash[518232]: + [ Serial ] - StartCluster
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain bash[518232]: Starting component pd
|
|
|
|
|
4月 24 16:01:12 localhost.localdomain bash[518232]: Starting instance 10.42.0.1:2379
|
|
|
|
|
4月 24 16:02:42 localhost.localdomain systemd[1]: tidb-cluster.service: start operation timed out. Terminating.
|
|
|
|
|
4月 24 16:02:42 localhost.localdomain bash[518186]: Got signal terminated (Component: cluster ; PID: 518232)
|
|
|
|
|
4月 24 16:02:42 localhost.localdomain systemd[1]: tidb-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
|
|
|
|
|
4月 24 16:02:42 localhost.localdomain systemd[1]: tidb-cluster.service: Failed with result 'timeout'.
|
|
|
|
|
4月 24 16:02:42 localhost.localdomain systemd[1]: Failed to start TiDB集群服务.
|
|
|
|
|
4月 24 16:02:52 localhost.localdomain systemd[1]: tidb-cluster.service: Service RestartSec=10s expired, scheduling restart.
|
|
|
|
|
4月 24 16:02:52 localhost.localdomain systemd[1]: tidb-cluster.service: Scheduled restart job, restart counter is at 1.
|
|
|
|
|
4月 24 16:02:52 localhost.localdomain systemd[1]: Stopped TiDB集群服务.
|
|
|
|
|
4月 24 16:02:52 localhost.localdomain systemd[1]: Starting TiDB集群服务...
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: Starting cluster tidb-cluster...
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: + [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-clu>4月 24 16:02:53 localhost.localdomain bash[522805]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: + [ Serial ] - StartCluster
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: Starting component pd
|
|
|
|
|
4月 24 16:02:53 localhost.localdomain bash[522805]: Starting instance 10.42.0.1:2379
|
|
|
|
|
4月 24 16:04:22 localhost.localdomain systemd[1]: tidb-cluster.service: start operation timed out. Terminating.
|
|
|
|
|
4月 24 16:04:22 localhost.localdomain bash[522756]: Got signal terminated (Component: cluster ; PID: 522805)
|
|
|
|
|
4月 24 16:04:22 localhost.localdomain systemd[1]: tidb-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
|
|
|
|
|
4月 24 16:04:22 localhost.localdomain systemd[1]: tidb-cluster.service: Failed with result 'timeout'.
|
|
|
|
|
4月 24 16:04:22 localhost.localdomain systemd[1]: Failed to start TiDB集群服务.
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain systemd[1]: tidb-cluster.service: Service RestartSec=10s expired, scheduling restart.
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain systemd[1]: tidb-cluster.service: Scheduled restart job, restart counter is at 2.
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain systemd[1]: Stopped TiDB集群服务.
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain systemd[1]: Starting TiDB集群服务...
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: Starting cluster tidb-cluster...
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: + [ Serial ] - SSHKeySet: privateKey=/root/.tiup/storage/cluster/clusters/tidb-cluster/ssh/id_rsa, publicKey=/root/.tiup/storage/cluster/clusters/tidb-clu>4月 24 16:04:33 localhost.localdomain bash[526964]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: + [ Serial ] - StartCluster
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: Starting component pd
|
|
|
|
|
4月 24 16:04:33 localhost.localdomain bash[526964]: Starting instance 10.42.0.1:2379
|
|
|
|
|
4月 24 16:05:24 localhost.localdomain bash[526964]: Start instance 10.42.0.1:2379 success
|
|
|
|
|
4月 24 16:05:24 localhost.localdomain bash[526964]: Starting component tikv
|
|
|
|
|
4月 24 16:05:24 localhost.localdomain bash[526964]: Starting instance 10.42.0.1:20160
|
|
|
|
|
4月 24 16:05:33 localhost.localdomain bash[526917]: Got signal terminated (Component: cluster ; PID: 526964)
|
|
|
|
|
[root@localhost ~]# ls -la /tidb-data.bak
|
|
|
|
|
总用量 4
|
|
|
|
|
drwxr-xr-x 7 tidb tidb 107 4月 24 15:06 .
|
|
|
|
|
dr-xr-xr-x 23 root root 4096 4月 24 16:05 ..
|
|
|
|
|
drwxr-xr-x 2 tidb tidb 35 4月 24 15:28 alertmanager-9093
|
|
|
|
|
drwxr-xr-x 2 tidb tidb 6 4月 24 15:06 monitor-9100
|
|
|
|
|
drwxr-xr-x 2 tidb tidb 6 4月 24 15:05 pd-2379
|
|
|
|
|
drwxr-xr-x 3 tidb tidb 40 4月 24 15:10 prometheus-9090
|
|
|
|
|
drwxr-xr-x 5 tidb tidb 152 4月 24 15:35 tikv-20160
|
|
|
|
|
[root@localhost ~]# chown -R tidb:tidb /media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# chown -R tidb:tidb /media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# chmod -R 750 /media/raid1/tidb-data
|
|
|
|
|
[root@localhost ~]# echo 'export PATH=$PATH:/usr/local/bin' >> /root/.bash_profile
|
|
|
|
|
[root@localhost ~]# echo 'export TIUP_HOME=/root/.tiup' >> /root/.bash_profile
|
|
|
|
|
[root@localhost ~]# source /root/.bash_profile
|
|
|
|
|
[root@localhost ~]# cat > /etc/systemd/system/tidb-cluster.service << 'EOF'
|
|
|
|
|
> [Unit]
|
|
|
|
|
> Description=TiDB集群服务
|
|
|
|
|
> After=network-online.target
|
|
|
|
|
> Wants=network-online.target
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=oneshot
|
|
|
|
|
> RemainAfterExit=yes
|
|
|
|
|
> ExecStart=/bin/bash -c "/root/.tiup/bin/tiup cluster start tidb-cluster -y"
|
|
|
|
|
> ExecStop=/bin/bash -c "/root/.tiup/bin/tiup cluster stop tidb-cluster -y"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
> TimeoutStartSec=600
|
|
|
|
|
> TimeoutStopSec=600
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> EOF
|
|
|
|
|
[root@localhost ~]# cat > /etc/systemd/system/tidb-cluster.service << 'EOF'
|
|
|
|
|
> [Unit]
|
|
|
|
|
> Description=TiDB集群服务
|
|
|
|
|
> After=network-online.target
|
|
|
|
|
> Wants=network-online.target
|
|
|
|
|
>
|
|
|
|
|
> [Service]
|
|
|
|
|
> User=root
|
|
|
|
|
> Type=oneshot
|
|
|
|
|
> RemainAfterExit=yes
|
|
|
|
|
> ExecStart=/bin/bash -c "/root/.tiup/bin/tiup cluster start tidb-cluster -y"
|
|
|
|
|
> ExecStop=/bin/bash -c "/root/.tiup/bin/tiup cluster stop tidb-cluster -y"
|
|
|
|
|
> Restart=on-failure
|
|
|
|
|
> RestartSec=10
|
|
|
|
|
> TimeoutStartSec=600
|
|
|
|
|
> TimeoutStopSec=600
|
|
|
|
|
>
|
|
|
|
|
> [Install]
|
|
|
|
|
> WantedBy=multi-user.target
|
|
|
|
|
> ^C
|
|
|
|
|
[root@localhost ~]# systemctl daemon-reload
|
|
|
|
|
[root@localhost ~]# systemctl restart tidb-cluster.service
|
|
|
|
|
Failed to restart tidb-cluster.service: Unit tidb-cluster.service has a bad unit file setting.
|
|
|
|
|
See system logs and 'systemctl status tidb-cluster.service' for details.
|
|
|
|
|
[root@localhost ~]# systemctl status tidb-cluster.service
|
|
|
|
|
● tidb-cluster.service - TiDB集群服务
|
|
|
|
|
Loaded: bad-setting (Reason: Unit tidb-cluster.service has a bad unit file setting.)
|
|
|
|
|
Active: activating (start) since Thu 2025-04-24 16:10:08 CST; 1min 25s ago
|
|
|
|
|
Cntrl PID: 550277 (tiup)
|
|
|
|
|
Tasks: 29
|
|
|
|
|
Memory: 23.0M
|
|
|
|
|
CGroup: /system.slice/tidb-cluster.service
|
|
|
|
|
├─550277 tiup cluster start tidb-cluster -y
|
|
|
|
|
└─550331 /root/.tiup/components/cluster/v1.16.1/tiup-cluster start tidb-cluster -y
|
|
|
|
|
|
|
|
|
|
4月 24 16:10:09 localhost.localdomain bash[550331]: + [Parallel] - UserSSH: user=tidb, host=10.42.0.1
|
|
|
|
|
4月 24 16:10:09 localhost.localdomain bash[550331]: + [ Serial ] - StartCluster
|
|
|
|
|
4月 24 16:10:09 localhost.localdomain bash[550331]: Starting component pd
|
|
|
|
|
4月 24 16:10:09 localhost.localdomain bash[550331]: Starting instance 10.42.0.1:2379
|
|
|
|
|
4月 24 16:10:09 localhost.localdomain systemd[1]: tidb-cluster.service: Service has Restart= setting other than no, which isn't allowed for Type=oneshot services. Refusing.
|
|
|
|
|
4月 24 16:10:10 localhost.localdomain bash[550331]: Start instance 10.42.0.1:2379 success
|
|
|
|
|
4月 24 16:10:10 localhost.localdomain bash[550331]: Starting component tikv
|
|
|
|
|
4月 24 16:10:10 localhost.localdomain bash[550331]: Starting instance 10.42.0.1:20160
|
|
|
|
|
4月 24 16:10:10 localhost.localdomain systemd[1]: tidb-cluster.service: Service has Restart= setting other than no, which isn't allowed for Type=oneshot services. Refusing.
|
|
|
|
|
4月 24 16:11:19 localhost.localdomain systemd[1]: tidb-cluster.service: Service has Restart= setting other than no, which isn't allowed for Type=oneshot services. Refusing.
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os: linux
|
|
|
|
|
monitoring_servers:
|
|
|
|
|
- host: 10.42.0.1
|
|
|
|
|
ssh_port: 22
|
|
|
|
|
port: 9090
|
|
|
|
|
ng_port: 12020
|
|
|
|
|
deploy_dir: /tidb-deploy/prometheus-9090
|
|
|
|
|
data_dir: /tidb-data/prometheus-9090
|
|
|
|
|
log_dir: /tidb-deploy/prometheus-9090/log
|
|
|
|
|
external_alertmanagers: []
|
|
|
|
|
arch: arm64
|
|
|
|
|
os: linux
|
|
|
|
|
grafana_servers:
|
|
|
|
|
- host: 10.42.0.1
|
|
|
|
|
ssh_port: 22
|
|
|
|
|
port: 3000
|
|
|
|
|
deploy_dir: /tidb-deploy/grafana-3000
|
|
|
|
|
arch: arm64
|
|
|
|
|
os: linux
|
|
|
|
|
username: admin
|
|
|
|
|
password: admin
|
|
|
|
|
anonymous_enable: false
|
|
|
|
|
root_url: ""
|
|
|
|
|
domain: ""
|
|
|
|
|
alertmanager_servers:
|
|
|
|
|
- host: 10.42.0.1
|
|
|
|
|
ssh_port: 22
|
|
|
|
|
web_port: 9093
|
|
|
|
|
cluster_port: 9094
|
|
|
|
|
deploy_dir: /tidb-deploy/alertmanager-9093
|
|
|
|
|
data_dir: /tidb-data/alertmanager-9093
|
|
|
|
|
log_dir: /tidb-deploy/alertmanager-9093/log
|
|
|
|
|
arch: arm64
|
|
|
|
|
os: linux
|
|
|
|
|
|
|
|
|
|
# 1. 停止TiDB集群
|
|
|
|
|
tiup cluster stop tidb-cluster
|
|
|
|
|
|
|
|
|
|
# 2. 删除旧的套接字文件
|
|
|
|
|
rm -f /tmp/tidb-4000.sock
|
|
|
|
|
|
|
|
|
|
# 3. 确保/tmp目录权限正确
|
|
|
|
|
chmod 1777 /tmp
|
|
|
|
|
|
|
|
|
|
# 4. 启动TiDB集群
|
|
|
|
|
tiup cluster start tidb-cluster
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# sudo yum install redis
|
|
|
|
|
上次元数据过期检查:0:04:06 前,执行于 2025年04月27日 星期日 10时37分10秒。
|
|
|
|
|
依赖关系解决。
|
|
|
|
|
========================================================================================================= Package Architecture Version Repository Size
|
|
|
|
|
=========================================================================================================安装:
|
|
|
|
|
redis aarch64 7.2.7-1.p01.ky10 ks10-adv-updates 2.0 M
|
|
|
|
|
|
|
|
|
|
事务概要
|
|
|
|
|
=========================================================================================================安装 1 软件包
|
|
|
|
|
|
|
|
|
|
总下载:2.0 M
|
|
|
|
|
安装大小:7.5 M
|
|
|
|
|
确定吗?[y/N]: y
|
|
|
|
|
下载软件包:
|
|
|
|
|
redis-7.2.7-1.p01.ky10.aarch64.rpm 2.6 MB/s | 2.0 MB 00:00
|
|
|
|
|
---------------------------------------------------------------------------------------------------------总计 2.6 MB/s | 2.0 MB 00:00
|
|
|
|
|
运行事务检查
|
|
|
|
|
事务检查成功。
|
|
|
|
|
运行事务测试
|
|
|
|
|
事务测试成功。
|
|
|
|
|
运行事务
|
|
|
|
|
准备中 : 1/1
|
|
|
|
|
运行脚本: redis-7.2.7-1.p01.ky10.aarch64 1/1
|
|
|
|
|
安装 : redis-7.2.7-1.p01.ky10.aarch64 1/1
|
|
|
|
|
运行脚本: redis-7.2.7-1.p01.ky10.aarch64 1/1
|
|
|
|
|
验证 : redis-7.2.7-1.p01.ky10.aarch64 1/1
|
|
|
|
|
|
|
|
|
|
已安装:
|
|
|
|
|
redis-7.2.7-1.p01.ky10.aarch64
|
|
|
|
|
|
|
|
|
|
完毕!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# sudo apt-get install lsb-release curl gpg
|
|
|
|
|
sudo: apt-get:找不到命令
|
|
|
|
|
[root@localhost ~]# sudo vi /etc/yum.repos.d/redis.repo
|
|
|
|
|
[root@localhost ~]# sudo vi /etc/yum.repos.d/redis.repo
|
|
|
|
|
[root@localhost ~]# curl -fsSL https://packages.redis.io/gpg > /tmp/redis.key
|
|
|
|
|
[root@localhost ~]# sudo rpm --import /tmp/redis.key
|
|
|
|
|
[root@localhost ~]#
|
|
|
|
|
|
|
|
|
|
Last login: Sun Apr 27 13:14:37 2025 from 10.42.0.12
|
|
|
|
|
[root@localhost ~]# yum install gcc gcc-c++ make unzip pcre pcre-devel zlib zlib-devel libxml2 libxml2-devel readline readline-devel ncurses ncurses-devel perl-devel perl-ExtUtils-Embed openssl-devel -y
|
|
|
|
|
上次元数据过期检查:1:45:51 前,执行于 2025年04月27日 星期日 11时48分51秒。
|
|
|
|
|
软件包 gcc-7.3.0-20220207.45.p02.ky10.aarch64 已安装。
|
|
|
|
|
软件包 gcc-c++-7.3.0-20220207.45.p02.ky10.aarch64 已安装。
|
|
|
|
|
软件包 make-1:4.3-1.ky10.aarch64 已安装。
|
|
|
|
|
软件包 unzip-6.0-47.ky10.aarch64 已安装。
|
|
|
|
|
软件包 pcre-8.44-2.ky10.aarch64 已安装。
|
|
|
|
|
软件包 pcre-devel-8.44-2.ky10.aarch64 已安装。
|
|
|
|
|
软件包 zlib-1.2.11-18.ky10.aarch64 已安装。
|
|
|
|
|
软件包 zlib-devel-1.2.11-18.ky10.aarch64 已安装。
|
|
|
|
|
软件包 libxml2-2.9.10-25.ky10.aarch64 已安装。
|
|
|
|
|
软件包 libxml2-devel-2.9.10-25.ky10.aarch64 已安装。
|
|
|
|
|
软件包 readline-8.0-3.ky10.aarch64 已安装。
|
|
|
|
|
软件包 ncurses-6.2-3.ky10.aarch64 已安装。
|
|
|
|
|
软件包 perl-devel-4:5.28.3-7.se.01.ky10.aarch64 已安装。
|
|
|
|
|
软件包 perl-4:5.28.3-7.se.01.ky10.aarch64 已安装。
|
|
|
|
|
软件包 openssl-devel-1:1.1.1f-15.p05.ky10.aarch64 已安装。
|
|
|
|
|
依赖关系解决。
|
|
|
|
|
===================================================================================================== Package Architecture Version Repository Size
|
|
|
|
|
=====================================================================================================安装:
|
|
|
|
|
ncurses-devel aarch64 6.2-6.ky10 ks10-adv-updates 659 k
|
|
|
|
|
readline-devel aarch64 8.0-3.ky10 ks10-adv-os 209 k
|
|
|
|
|
升级:
|
|
|
|
|
libxml2 aarch64 2.9.10-43.p02.ky10 ks10-adv-updates 622 k
|
|
|
|
|
libxml2-devel aarch64 2.9.10-43.p02.ky10 ks10-adv-updates 1.7 M
|
|
|
|
|
minizip aarch64 1.2.11-23.ky10 ks10-adv-updates 29 k
|
|
|
|
|
ncurses aarch64 6.2-6.ky10 ks10-adv-updates 908 k
|
|
|
|
|
ncurses-base noarch 6.2-6.ky10 ks10-adv-updates 53 k
|
|
|
|
|
ncurses-libs aarch64 6.2-6.ky10 ks10-adv-updates 271 k
|
|
|
|
|
openssl aarch64 1:1.1.1f-15.p28.ky10 ks10-adv-updates 441 k
|
|
|
|
|
openssl-devel aarch64 1:1.1.1f-15.p28.ky10 ks10-adv-updates 1.8 M
|
|
|
|
|
openssl-help noarch 1:1.1.1f-15.p28.ky10 ks10-adv-updates 3.2 M
|
|
|
|
|
openssl-libs aarch64 1:1.1.1f-15.p28.ky10 ks10-adv-updates 1.3 M
|
|
|
|
|
openssl-perl aarch64 1:1.1.1f-15.p28.ky10 ks10-adv-updates 20 k
|
|
|
|
|
perl aarch64 4:5.28.3-7.se.01.p04.ky10 ks10-adv-updates 3.0 M
|
|
|
|
|
perl-devel aarch64 4:5.28.3-7.se.01.p04.ky10 ks10-adv-updates 1.9 M
|
|
|
|
|
perl-libs aarch64 4:5.28.3-7.se.01.p04.ky10 ks10-adv-updates 1.5 M
|
|
|
|
|
python3-libxml2 aarch64 2.9.10-43.p02.ky10 ks10-adv-updates 224 k
|
|
|
|
|
zlib aarch64 1.2.11-23.ky10 ks10-adv-updates 94 k
|
|
|
|
|
zlib-devel aarch64 1.2.11-23.ky10 ks10-adv-updates 98 k
|
|
|
|
|
|
|
|
|
|
事务概要
|
|
|
|
|
=====================================================================================================安装 2 软件包
|
|
|
|
|
升级 17 软件包
|
|
|
|
|
|
|
|
|
|
总下载:18 M
|
|
|
|
|
下载软件包:
|
|
|
|
|
(1/19): readline-devel-8.0-3.ky10.aarch64.rpm 538 kB/s | 209 kB 00:00
|
|
|
|
|
(2/19): ncurses-devel-6.2-6.ky10.aarch64.rpm 1.3 MB/s | 659 kB 00:00
|
|
|
|
|
(3/19): libxml2-2.9.10-43.p02.ky10.aarch64.rpm 1.0 MB/s | 622 kB 00:00
|
|
|
|
|
(4/19): minizip-1.2.11-23.ky10.aarch64.rpm 247 kB/s | 29 kB 00:00
|
|
|
|
|
(5/19): libxml2-devel-2.9.10-43.p02.ky10.aarch64.rpm 3.4 MB/s | 1.7 MB 00:00
|
|
|
|
|
(6/19): ncurses-base-6.2-6.ky10.noarch.rpm 172 kB/s | 53 kB 00:00
|
|
|
|
|
(7/19): ncurses-6.2-6.ky10.aarch64.rpm 2.1 MB/s | 908 kB 00:00
|
|
|
|
|
(8/19): ncurses-libs-6.2-6.ky10.aarch64.rpm 1.4 MB/s | 271 kB 00:00
|
|
|
|
|
(9/19): openssl-1.1.1f-15.p28.ky10.aarch64.rpm 809 kB/s | 441 kB 00:00
|
|
|
|
|
(10/19): openssl-devel-1.1.1f-15.p28.ky10.aarch64.rpm 3.4 MB/s | 1.8 MB 00:00
|
|
|
|
|
(11/19): openssl-perl-1.1.1f-15.p28.ky10.aarch64.rpm 179 kB/s | 20 kB 00:00
|
|
|
|
|
(12/19): openssl-help-1.1.1f-15.p28.ky10.noarch.rpm 3.2 MB/s | 3.2 MB 00:00
|
|
|
|
|
(13/19): openssl-libs-1.1.1f-15.p28.ky10.aarch64.rpm 1.8 MB/s | 1.3 MB 00:00
|
|
|
|
|
(14/19): perl-devel-5.28.3-7.se.01.p04.ky10.aarch64.rpm 2.1 MB/s | 1.9 MB 00:00
|
|
|
|
|
(15/19): perl-5.28.3-7.se.01.p04.ky10.aarch64.rpm 2.1 MB/s | 3.0 MB 00:01
|
|
|
|
|
(16/19): perl-libs-5.28.3-7.se.01.p04.ky10.aarch64.rpm 1.4 MB/s | 1.5 MB 00:01
|
|
|
|
|
(17/19): python3-libxml2-2.9.10-43.p02.ky10.aarch64.rpm 553 kB/s | 224 kB 00:00
|
|
|
|
|
(18/19): zlib-1.2.11-23.ky10.aarch64.rpm 349 kB/s | 94 kB 00:00
|
|
|
|
|
(19/19): zlib-devel-1.2.11-23.ky10.aarch64.rpm 643 kB/s | 98 kB 00:00
|
|
|
|
|
-----------------------------------------------------------------------------------------------------总计 5.2 MB/s | 18 MB 00:03
|
|
|
|
|
运行事务检查
|
|
|
|
|
事务检查成功。
|
|
|
|
|
运行事务测试
|
|
|
|
|
事务测试成功。
|
|
|
|
|
运行事务
|
|
|
|
|
准备中 : 1/1
|
|
|
|
|
升级 : zlib-1.2.11-23.ky10.aarch64 1/36
|
|
|
|
|
升级 : libxml2-2.9.10-43.p02.ky10.aarch64 2/36
|
|
|
|
|
运行脚本: libxml2-2.9.10-43.p02.ky10.aarch64 2/36
|
|
|
|
|
升级 : openssl-libs-1:1.1.1f-15.p28.ky10.aarch64 3/36
|
|
|
|
|
运行脚本: openssl-libs-1:1.1.1f-15.p28.ky10.aarch64 3/36
|
|
|
|
|
升级 : zlib-devel-1.2.11-23.ky10.aarch64 4/36
|
|
|
|
|
升级 : perl-libs-4:5.28.3-7.se.01.p04.ky10.aarch64 5/36
|
|
|
|
|
升级 : perl-4:5.28.3-7.se.01.p04.ky10.aarch64 6/36
|
|
|
|
|
升级 : ncurses-base-6.2-6.ky10.noarch 7/36
|
|
|
|
|
升级 : ncurses-libs-6.2-6.ky10.aarch64 8/36
|
|
|
|
|
升级 : ncurses-6.2-6.ky10.aarch64 9/36
|
|
|
|
|
安装 : ncurses-devel-6.2-6.ky10.aarch64 10/36
|
|
|
|
|
升级 : openssl-help-1:1.1.1f-15.p28.ky10.noarch 11/36
|
|
|
|
|
升级 : openssl-1:1.1.1f-15.p28.ky10.aarch64 12/36
|
|
|
|
|
升级 : openssl-perl-1:1.1.1f-15.p28.ky10.aarch64 13/36
|
|
|
|
|
安装 : readline-devel-8.0-3.ky10.aarch64 14/36
|
|
|
|
|
升级 : perl-devel-4:5.28.3-7.se.01.p04.ky10.aarch64 15/36
|
|
|
|
|
升级 : libxml2-devel-2.9.10-43.p02.ky10.aarch64 16/36
|
|
|
|
|
升级 : openssl-devel-1:1.1.1f-15.p28.ky10.aarch64 17/36
|
|
|
|
|
升级 : python3-libxml2-2.9.10-43.p02.ky10.aarch64 18/36
|
|
|
|
|
升级 : minizip-1.2.11-23.ky10.aarch64 19/36
|
|
|
|
|
清理 : openssl-devel-1:1.1.1f-15.p05.ky10.aarch64 20/36
|
|
|
|
|
清理 : openssl-perl-1:1.1.1f-15.p05.ky10.aarch64 21/36
|
|
|
|
|
清理 : libxml2-devel-2.9.10-25.ky10.aarch64 22/36
|
|
|
|
|
清理 : python3-libxml2-2.9.10-25.ky10.aarch64 23/36
|
|
|
|
|
清理 : ncurses-6.2-3.ky10.aarch64 24/36
|
|
|
|
|
清理 : perl-devel-4:5.28.3-7.se.01.ky10.aarch64 25/36
|
|
|
|
|
清理 : perl-4:5.28.3-7.se.01.ky10.aarch64 26/36
|
|
|
|
|
清理 : openssl-1:1.1.1f-15.p05.ky10.aarch64 27/36
|
|
|
|
|
清理 : libxml2-2.9.10-25.ky10.aarch64 28/36
|
|
|
|
|
运行脚本: libxml2-2.9.10-25.ky10.aarch64 28/36
|
|
|
|
|
清理 : minizip-1.2.11-18.ky10.aarch64 29/36
|
|
|
|
|
清理 : zlib-devel-1.2.11-18.ky10.aarch64 30/36
|
|
|
|
|
清理 : openssl-libs-1:1.1.1f-15.p05.ky10.aarch64 31/36
|
|
|
|
|
运行脚本: openssl-libs-1:1.1.1f-15.p05.ky10.aarch64 31/36
|
|
|
|
|
清理 : ncurses-libs-6.2-3.ky10.aarch64 32/36
|
|
|
|
|
清理 : ncurses-base-6.2-3.ky10.noarch 33/36
|
|
|
|
|
清理 : openssl-help-1:1.1.1f-15.p05.ky10.noarch 34/36
|
|
|
|
|
清理 : zlib-1.2.11-18.ky10.aarch64 35/36
|
|
|
|
|
清理 : perl-libs-4:5.28.3-7.se.01.ky10.aarch64 36/36
|
|
|
|
|
运行脚本: perl-libs-4:5.28.3-7.se.01.ky10.aarch64 36/36
|
|
|
|
|
验证 : readline-devel-8.0-3.ky10.aarch64 1/36
|
|
|
|
|
验证 : ncurses-devel-6.2-6.ky10.aarch64 2/36
|
|
|
|
|
验证 : libxml2-2.9.10-43.p02.ky10.aarch64 3/36
|
|
|
|
|
验证 : libxml2-2.9.10-25.ky10.aarch64 4/36
|
|
|
|
|
验证 : libxml2-devel-2.9.10-43.p02.ky10.aarch64 5/36
|
|
|
|
|
验证 : libxml2-devel-2.9.10-25.ky10.aarch64 6/36
|
|
|
|
|
验证 : minizip-1.2.11-23.ky10.aarch64 7/36
|
|
|
|
|
验证 : minizip-1.2.11-18.ky10.aarch64 8/36
|
|
|
|
|
验证 : ncurses-6.2-6.ky10.aarch64 9/36
|
|
|
|
|
验证 : ncurses-6.2-3.ky10.aarch64 10/36
|
|
|
|
|
验证 : ncurses-base-6.2-6.ky10.noarch 11/36
|
|
|
|
|
验证 : ncurses-base-6.2-3.ky10.noarch 12/36
|
|
|
|
|
验证 : ncurses-libs-6.2-6.ky10.aarch64 13/36
|
|
|
|
|
验证 : ncurses-libs-6.2-3.ky10.aarch64 14/36
|
|
|
|
|
验证 : openssl-1:1.1.1f-15.p28.ky10.aarch64 15/36
|
|
|
|
|
验证 : openssl-1:1.1.1f-15.p05.ky10.aarch64 16/36
|
|
|
|
|
验证 : openssl-devel-1:1.1.1f-15.p28.ky10.aarch64 17/36
|
|
|
|
|
验证 : openssl-devel-1:1.1.1f-15.p05.ky10.aarch64 18/36
|
|
|
|
|
验证 : openssl-help-1:1.1.1f-15.p28.ky10.noarch 19/36
|
|
|
|
|
验证 : openssl-help-1:1.1.1f-15.p05.ky10.noarch 20/36
|
|
|
|
|
验证 : openssl-libs-1:1.1.1f-15.p28.ky10.aarch64 21/36
|
|
|
|
|
验证 : openssl-libs-1:1.1.1f-15.p05.ky10.aarch64 22/36
|
|
|
|
|
验证 : openssl-perl-1:1.1.1f-15.p28.ky10.aarch64 23/36
|
|
|
|
|
验证 : openssl-perl-1:1.1.1f-15.p05.ky10.aarch64 24/36
|
|
|
|
|
验证 : perl-4:5.28.3-7.se.01.p04.ky10.aarch64 25/36
|
|
|
|
|
验证 : perl-4:5.28.3-7.se.01.ky10.aarch64 26/36
|
|
|
|
|
验证 : perl-devel-4:5.28.3-7.se.01.p04.ky10.aarch64 27/36
|
|
|
|
|
验证 : perl-devel-4:5.28.3-7.se.01.ky10.aarch64 28/36
|
|
|
|
|
验证 : perl-libs-4:5.28.3-7.se.01.p04.ky10.aarch64 29/36
|
|
|
|
|
验证 : perl-libs-4:5.28.3-7.se.01.ky10.aarch64 30/36
|
|
|
|
|
验证 : python3-libxml2-2.9.10-43.p02.ky10.aarch64 31/36
|
|
|
|
|
验证 : python3-libxml2-2.9.10-25.ky10.aarch64 32/36
|
|
|
|
|
验证 : zlib-1.2.11-23.ky10.aarch64 33/36
|
|
|
|
|
验证 : zlib-1.2.11-18.ky10.aarch64 34/36
|
|
|
|
|
验证 : zlib-devel-1.2.11-23.ky10.aarch64 35/36
|
|
|
|
|
验证 : zlib-devel-1.2.11-18.ky10.aarch64 36/36
|
|
|
|
|
|
|
|
|
|
已升级:
|
|
|
|
|
libxml2-2.9.10-43.p02.ky10.aarch64 libxml2-devel-2.9.10-43.p02.ky10.aarch64
|
|
|
|
|
minizip-1.2.11-23.ky10.aarch64 ncurses-6.2-6.ky10.aarch64
|
|
|
|
|
ncurses-base-6.2-6.ky10.noarch ncurses-libs-6.2-6.ky10.aarch64
|
|
|
|
|
openssl-1:1.1.1f-15.p28.ky10.aarch64 openssl-devel-1:1.1.1f-15.p28.ky10.aarch64
|
|
|
|
|
openssl-help-1:1.1.1f-15.p28.ky10.noarch openssl-libs-1:1.1.1f-15.p28.ky10.aarch64
|
|
|
|
|
openssl-perl-1:1.1.1f-15.p28.ky10.aarch64 perl-4:5.28.3-7.se.01.p04.ky10.aarch64
|
|
|
|
|
perl-devel-4:5.28.3-7.se.01.p04.ky10.aarch64 perl-libs-4:5.28.3-7.se.01.p04.ky10.aarch64
|
|
|
|
|
python3-libxml2-2.9.10-43.p02.ky10.aarch64 zlib-1.2.11-23.ky10.aarch64
|
|
|
|
|
zlib-devel-1.2.11-23.ky10.aarch64
|
|
|
|
|
|
|
|
|
|
已安装:
|
|
|
|
|
ncurses-devel-6.2-6.ky10.aarch64 readline-devel-8.0-3.ky10.aarch64
|
|
|
|
|
|
|
|
|
|
完毕!
|
|
|
|
|
[root@localhost ~]# wget -c http://nginx.org/download/nginx-1.28.0.tar.gz
|
|
|
|
|
--2025-04-27 13:36:34-- http://nginx.org/download/nginx-1.28.0.tar.gz
|
|
|
|
|
正在解析主机 nginx.org (nginx.org)... 52.58.199.22, 3.125.197.172, 2a05:d014:5c0:2601::6, ...
|
|
|
|
|
正在连接 nginx.org (nginx.org)|52.58.199.22|:80... 已连接。
|
|
|
|
|
已发出 HTTP 请求,正在等待回应... 200 OK
|
|
|
|
|
长度:1280111 (1.2M) [application/octet-stream]
|
|
|
|
|
正在保存至: “nginx-1.28.0.tar.gz”
|
|
|
|
|
|
|
|
|
|
nginx-1.28.0.tar.gz 100%[==================================>] 1.22M 80.3KB/s 用时 21s
|
|
|
|
|
|
|
|
|
|
2025-04-27 13:36:55 (59.8 KB/s) - 已保存 “nginx-1.28.0.tar.gz” [1280111/1280111])
|
|
|
|
|
|
|
|
|
|
[root@localhost ~]# mv nginx-1.28.0.tar.gz /media/nginx
|
|
|
|
|
[root@localhost ~]# cd /media/nginx
|
|
|
|
|
-bash: cd: /media/nginx: 不是目录
|
|
|
|
|
[root@localhost ~]# cd /media
|
|
|
|
|
[root@localhost media]# mkdir -p /media/nginx
|
|
|
|
|
mkdir: 无法创建目录 “/media/nginx”: 文件已存在
|
|
|
|
|
[root@localhost media]# mkdir -p /media/nginx-server
|
|
|
|
|
[root@localhost media]# mv nginx-1.28.0.tar.gz /media/nginx-server
|
|
|
|
|
mv: 无法获取'nginx-1.28.0.tar.gz' 的文件状态(stat): 没有那个文件或目录
|
|
|
|
|
[root@localhost media]# mv nginx /media/nginx-server
|
|
|
|
|
[root@localhost media]# cd /media/nginx-server
|
|
|
|
|
[root@localhost nginx-server]# tar -zxvf nginx.tar.gz
|
|
|
|
|
tar (child): nginx.tar.gz:无法 open: 没有那个文件或目录
|
|
|
|
|
tar (child): Error is not recoverable: exiting now
|
|
|
|
|
tar: Child returned status 2
|
|
|
|
|
tar: Error is not recoverable: exiting now
|
|
|
|
|
[root@localhost nginx-server]# wget -c http://nginx.org/download/nginx-1.28.0.tar.gz
|
|
|
|
|
--2025-04-27 13:40:30-- http://nginx.org/download/nginx-1.28.0.tar.gz
|
|
|
|
|
正在解析主机 nginx.org (nginx.org)... 3.125.197.172, 52.58.199.22, 2a05:d014:5c0:2601::6, ...
|
|
|
|
|
正在连接 nginx.org (nginx.org)|3.125.197.172|:80... 已连接。
|
|
|
|
|
已发出 HTTP 请求,正在等待回应... 200 OK
|
|
|
|
|
长度:1280111 (1.2M) [application/octet-stream]
|
|
|
|
|
正在保存至: “nginx-1.28.0.tar.gz”
|
|
|
|
|
|
|
|
|
|
nginx-1.28.0.tar.gz 100%[==================================>] 1.22M 427KB/s 用时 2.9s
|
|
|
|
|
|
|
|
|
|
2025-04-27 13:40:34 (427 KB/s) - 已保存 “nginx-1.28.0.tar.gz” [1280111/1280111])
|
|
|
|
|
|
|
|
|
|
[root@localhost nginx-server]# tar -zxvf nginx-1.28.o.tar.gz
|
|
|
|
|
tar (child): nginx-1.28.o.tar.gz:无法 open: 没有那个文件或目录
|
|
|
|
|
tar (child): Error is not recoverable: exiting now
|
|
|
|
|
tar: Child returned status 2
|
|
|
|
|
tar: Error is not recoverable: exiting now
|
|
|
|
|
[root@localhost nginx-server]# tar -zxvf nginx-1.28.0.tar.gz
|
|
|
|
|
nginx-1.28.0/
|
|
|
|
|
nginx-1.28.0/man/
|
|
|
|
|
nginx-1.28.0/CODE_OF_CONDUCT.md
|
|
|
|
|
nginx-1.28.0/LICENSE
|
|
|
|
|
nginx-1.28.0/configure
|
|
|
|
|
nginx-1.28.0/auto/
|
|
|
|
|
nginx-1.28.0/CHANGES
|
|
|
|
|
nginx-1.28.0/CHANGES.ru
|
|
|
|
|
nginx-1.28.0/html/
|
|
|
|
|
nginx-1.28.0/contrib/
|
|
|
|
|
nginx-1.28.0/README.md
|
|
|
|
|
nginx-1.28.0/CONTRIBUTING.md
|
|
|
|
|
nginx-1.28.0/conf/
|
|
|
|
|
nginx-1.28.0/SECURITY.md
|
|
|
|
|
nginx-1.28.0/src/
|
|
|
|
|
nginx-1.28.0/src/misc/
|
|
|
|
|
nginx-1.28.0/src/core/
|
|
|
|
|
nginx-1.28.0/src/mail/
|
|
|
|
|
nginx-1.28.0/src/stream/
|
|
|
|
|
nginx-1.28.0/src/http/
|
|
|
|
|
nginx-1.28.0/src/os/
|
|
|
|
|
nginx-1.28.0/src/event/
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_connectex.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_accept.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_posted.h
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_acceptex.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_udp.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_openssl_stapling.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_connect.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event.h
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_timer.h
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_openssl.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_pipe.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_openssl_cache.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_posted.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_openssl.h
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_timer.c
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_connect.h
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_udp.h
|
|
|
|
|
nginx-1.28.0/src/event/modules/
|
|
|
|
|
nginx-1.28.0/src/event/quic/
|
|
|
|
|
nginx-1.28.0/src/event/ngx_event_pipe.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_ssl.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_connid.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_migration.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_ack.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_udp.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_protection.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_tokens.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_socket.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_openssl_compat.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_output.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_streams.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_bpf_code.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_transport.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_frames.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_connection.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_migration.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_connid.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_ssl.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_protection.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_ack.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/bpf/
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_frames.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_transport.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_openssl_compat.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_socket.h
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_bpf.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_streams.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_output.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/ngx_event_quic_tokens.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/bpf/makefile
|
|
|
|
|
nginx-1.28.0/src/event/quic/bpf/ngx_quic_reuseport_helper.c
|
|
|
|
|
nginx-1.28.0/src/event/quic/bpf/bpfgen.sh
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_epoll_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_iocp_module.h
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_win32_poll_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_kqueue_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_win32_select_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_iocp_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_select_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_eventport_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_devpoll_module.c
|
|
|
|
|
nginx-1.28.0/src/event/modules/ngx_poll_module.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/
|
|
|
|
|
nginx-1.28.0/src/os/win32/
|
|
|
|
|
nginx-1.28.0/src/os/win32/nginx.ico
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_time.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_wsarecv_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_alloc.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_win32_init.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/nginx_icon16.xpm
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_dlopen.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_files.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_event_log.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_socket.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_win32_config.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_user.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_errno.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_process_cycle.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_wsasend.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_process.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_shmem.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_thread.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_stat.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_service.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/nginx_icon48.xpm
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_os.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_wsasend_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/nginx.rc
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_dlopen.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_alloc.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_time.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_udp_wsarecv.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_errno.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_atomic.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_user.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_socket.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_files.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_thread.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_shmem.h
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_process.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_process_cycle.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/ngx_wsarecv.c
|
|
|
|
|
nginx-1.28.0/src/os/win32/nginx_icon32.xpm
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_udp_send.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_freebsd_sendfile_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_time.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_recv.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_solaris_sendfilev_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_writev_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_alloc.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_darwin_init.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_dlopen.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_linux.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_files.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_socket.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_readv_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_thread_id.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_darwin_config.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_sunpro_atomic_sparc64.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_gcc_atomic_sparc64.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_user.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_errno.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_process_cycle.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_process.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_shmem.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_sunpro_amd64.il
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_freebsd.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_gcc_atomic_ppc.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_darwin_sendfile_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_sunpro_x86.il
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_os.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_sunpro_sparc64.il
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_linux_config.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_setaffinity.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_linux_init.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_setproctitle.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_file_aio_read.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_channel.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_solaris_config.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_dlopen.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_gcc_atomic_x86.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_alloc.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_posix_init.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_time.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_posix_config.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_solaris_init.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_darwin.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_errno.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_udp_recv.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_atomic.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_user.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_send.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_socket.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_linux_sendfile_chain.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_solaris.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_files.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_setaffinity.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_linux_aio_read.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_thread.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_freebsd_config.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_shmem.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_process.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_process_cycle.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_thread_cond.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_channel.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_thread_mutex.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_setproctitle.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_daemon.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_gcc_atomic_amd64.h
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_freebsd_init.c
|
|
|
|
|
nginx-1.28.0/src/os/unix/ngx_udp_sendmsg_chain.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_header_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_huff_decode.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_core_module.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_variables.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_huff_encode.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_special_response.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_write_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_upstream.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_request_body.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_postpone_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_script.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_upstream_round_robin.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_cache.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_file_cache.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_request.c
|
|
|
|
|
nginx-1.28.0/src/http/v2/
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_variables.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_core_module.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_upstream.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_upstream_round_robin.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_config.h
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_script.h
|
|
|
|
|
nginx-1.28.0/src/http/modules/
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_parse.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_copy_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/ngx_http_request.h
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_scgi_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_dav_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_log_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_gzip_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_range_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_ssl_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_geo_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_grpc_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_image_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_charset_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_upstream_random_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_realip_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_upstream_hash_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_secure_link_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_autoindex_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_memcached_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_ssi_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_flv_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_xslt_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_slice_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_sub_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_browser_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_not_modified_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_try_files_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_index_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_auth_basic_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_rewrite_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_ssl_module.h
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_referer_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_empty_gif_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_mirror_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_access_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_upstream_ip_hash_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_mp4_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_limit_req_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_limit_conn_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_addition_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_split_clients_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_auth_request_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_degradation_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_fastcgi_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_gzip_static_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_upstream_zone_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_geoip_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_ssi_filter_module.h
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_random_index_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_userid_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_headers_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_uwsgi_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_map_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_gunzip_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_proxy_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_upstream_least_conn_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_upstream_keepalive_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_static_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_chunked_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/ngx_http_stub_status_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/ngx_http_perl_module.c
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/nginx.pm
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/typemap
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/Makefile.PL
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/ngx_http_perl_module.h
|
|
|
|
|
nginx-1.28.0/src/http/modules/perl/nginx.xs
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_table.h
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_uni.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_encode.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_module.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_parse.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_request.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3.h
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_table.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_uni.h
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_encode.h
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/v3/ngx_http_v3_parse.h
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2.h
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2_encode.c
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2_module.c
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2_table.c
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2.c
|
|
|
|
|
nginx-1.28.0/src/http/v2/ngx_http_v2_module.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_limit_conn_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_set_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_access_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_ssl_module.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream_random_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream_round_robin.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_split_clients_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_handler.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream_zone_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_variables.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream_least_conn_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_pass_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_core_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_script.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream.h
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_return_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_map_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_geo_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_realip_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_ssl_preread_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_log_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_ssl_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_variables.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream_round_robin.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_geoip_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream_hash_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_proxy_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_write_filter_module.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_script.c
|
|
|
|
|
nginx-1.28.0/src/stream/ngx_stream_upstream.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_auth_http_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_realip_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_imap_handler.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail.h
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_smtp_handler.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_parse.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_ssl_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_imap_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_pop3_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_smtp_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_core_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_proxy_module.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_imap_module.h
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_pop3_handler.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_ssl_module.h
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_handler.c
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_smtp_module.h
|
|
|
|
|
nginx-1.28.0/src/mail/ngx_mail_pop3_module.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_rwlock.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_thread_pool.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_shmtx.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_regex.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_log.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_queue.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_cpuinfo.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_cycle.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_module.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_crc32.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_palloc.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_list.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_slab.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_times.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_radix_tree.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_output_chain.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_murmurhash.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_syslog.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_parse.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_open_file_cache.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_string.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_crc.h
|
|
|
|
|
nginx-1.28.0/src/core/nginx.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_bpf.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_proxy_protocol.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_parse_time.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_array.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_inet.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_sha1.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_rbtree.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_file.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_md5.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_connection.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_resolver.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_buf.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_crypt.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_config.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_conf_file.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_hash.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_crc32.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_slab.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_list.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_palloc.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_module.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_core.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_queue.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_log.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_cycle.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_shmtx.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_regex.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_thread_pool.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_rwlock.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_open_file_cache.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_string.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_syslog.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_murmurhash.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_parse.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_radix_tree.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_times.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_file.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_resolver.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_md5.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_connection.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_sha1.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_inet.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_array.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_rbtree.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_proxy_protocol.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_parse_time.c
|
|
|
|
|
nginx-1.28.0/src/core/nginx.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_bpf.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_conf_file.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_hash.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_crypt.h
|
|
|
|
|
nginx-1.28.0/src/core/ngx_spinlock.c
|
|
|
|
|
nginx-1.28.0/src/core/ngx_buf.c
|
|
|
|
|
nginx-1.28.0/src/misc/ngx_google_perftools_module.c
|
|
|
|
|
nginx-1.28.0/src/misc/ngx_cpp_test_module.cpp
|
|
|
|
|
nginx-1.28.0/conf/fastcgi_params
|
|
|
|
|
nginx-1.28.0/conf/scgi_params
|
|
|
|
|
nginx-1.28.0/conf/fastcgi.conf
|
|
|
|
|
nginx-1.28.0/conf/uwsgi_params
|
|
|
|
|
nginx-1.28.0/conf/koi-win
|
|
|
|
|
nginx-1.28.0/conf/mime.types
|
|
|
|
|
nginx-1.28.0/conf/koi-utf
|
|
|
|
|
nginx-1.28.0/conf/win-utf
|
|
|
|
|
nginx-1.28.0/conf/nginx.conf
|
|
|
|
|
nginx-1.28.0/contrib/vim/
|
|
|
|
|
nginx-1.28.0/contrib/README
|
|
|
|
|
nginx-1.28.0/contrib/geo2nginx.pl
|
|
|
|
|
nginx-1.28.0/contrib/unicode2nginx/
|
|
|
|
|
nginx-1.28.0/contrib/unicode2nginx/unicode-to-nginx.pl
|
|
|
|
|
nginx-1.28.0/contrib/unicode2nginx/koi-utf
|
|
|
|
|
nginx-1.28.0/contrib/unicode2nginx/win-utf
|
|
|
|
|
nginx-1.28.0/contrib/vim/indent/
|
|
|
|
|
nginx-1.28.0/contrib/vim/ftplugin/
|
|
|
|
|
nginx-1.28.0/contrib/vim/ftdetect/
|
|
|
|
|
nginx-1.28.0/contrib/vim/syntax/
|
|
|
|
|
nginx-1.28.0/contrib/vim/syntax/nginx.vim
|
|
|
|
|
nginx-1.28.0/contrib/vim/ftdetect/nginx.vim
|
|
|
|
|
nginx-1.28.0/contrib/vim/ftplugin/nginx.vim
|
|
|
|
|
nginx-1.28.0/contrib/vim/indent/nginx.vim
|
|
|
|
|
nginx-1.28.0/html/index.html
|
|
|
|
|
nginx-1.28.0/html/50x.html
|
|
|
|
|
nginx-1.28.0/auto/stubs
|
|
|
|
|
nginx-1.28.0/auto/init
|
|
|
|
|
nginx-1.28.0/auto/options
|
|
|
|
|
nginx-1.28.0/auto/types/
|
|
|
|
|
nginx-1.28.0/auto/install
|
|
|
|
|
nginx-1.28.0/auto/define
|
|
|
|
|
nginx-1.28.0/auto/have
|
|
|
|
|
nginx-1.28.0/auto/endianness
|
|
|
|
|
nginx-1.28.0/auto/nohave
|
|
|
|
|
nginx-1.28.0/auto/module
|
|
|
|
|
nginx-1.28.0/auto/include
|
|
|
|
|
nginx-1.28.0/auto/have_headers
|
|
|
|
|
nginx-1.28.0/auto/unix
|
|
|
|
|
nginx-1.28.0/auto/threads
|
|
|
|
|
nginx-1.28.0/auto/headers
|
|
|
|
|
nginx-1.28.0/auto/make
|
|
|
|
|
nginx-1.28.0/auto/lib/
|
|
|
|
|
nginx-1.28.0/auto/sources
|
|
|
|
|
nginx-1.28.0/auto/os/
|
|
|
|
|
nginx-1.28.0/auto/feature
|
|
|
|
|
nginx-1.28.0/auto/cc/
|
|
|
|
|
nginx-1.28.0/auto/modules
|
|
|
|
|
nginx-1.28.0/auto/summary
|
|
|
|
|
nginx-1.28.0/auto/cc/clang
|
|
|
|
|
nginx-1.28.0/auto/cc/msvc
|
|
|
|
|
nginx-1.28.0/auto/cc/sunc
|
|
|
|
|
nginx-1.28.0/auto/cc/owc
|
|
|
|
|
nginx-1.28.0/auto/cc/gcc
|
|
|
|
|
nginx-1.28.0/auto/cc/ccc
|
|
|
|
|
nginx-1.28.0/auto/cc/icc
|
|
|
|
|
nginx-1.28.0/auto/cc/bcc
|
|
|
|
|
nginx-1.28.0/auto/cc/name
|
|
|
|
|
nginx-1.28.0/auto/cc/conf
|
|
|
|
|
nginx-1.28.0/auto/cc/acc
|
|
|
|
|
nginx-1.28.0/auto/os/freebsd
|
|
|
|
|
nginx-1.28.0/auto/os/linux
|
|
|
|
|
nginx-1.28.0/auto/os/darwin
|
|
|
|
|
nginx-1.28.0/auto/os/solaris
|
|
|
|
|
nginx-1.28.0/auto/os/win32
|
|
|
|
|
nginx-1.28.0/auto/os/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/libgd/
|
|
|
|
|
nginx-1.28.0/auto/lib/libatomic/
|
|
|
|
|
nginx-1.28.0/auto/lib/libxslt/
|
|
|
|
|
nginx-1.28.0/auto/lib/perl/
|
|
|
|
|
nginx-1.28.0/auto/lib/geoip/
|
|
|
|
|
nginx-1.28.0/auto/lib/zlib/
|
|
|
|
|
nginx-1.28.0/auto/lib/google-perftools/
|
|
|
|
|
nginx-1.28.0/auto/lib/make
|
|
|
|
|
nginx-1.28.0/auto/lib/pcre/
|
|
|
|
|
nginx-1.28.0/auto/lib/openssl/
|
|
|
|
|
nginx-1.28.0/auto/lib/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/openssl/makefile.bcc
|
|
|
|
|
nginx-1.28.0/auto/lib/openssl/makefile.msvc
|
|
|
|
|
nginx-1.28.0/auto/lib/openssl/make
|
|
|
|
|
nginx-1.28.0/auto/lib/openssl/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/pcre/makefile.bcc
|
|
|
|
|
nginx-1.28.0/auto/lib/pcre/makefile.msvc
|
|
|
|
|
nginx-1.28.0/auto/lib/pcre/make
|
|
|
|
|
nginx-1.28.0/auto/lib/pcre/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/pcre/makefile.owc
|
|
|
|
|
nginx-1.28.0/auto/lib/google-perftools/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/zlib/makefile.bcc
|
|
|
|
|
nginx-1.28.0/auto/lib/zlib/makefile.msvc
|
|
|
|
|
nginx-1.28.0/auto/lib/zlib/make
|
|
|
|
|
nginx-1.28.0/auto/lib/zlib/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/zlib/makefile.owc
|
|
|
|
|
nginx-1.28.0/auto/lib/geoip/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/perl/make
|
|
|
|
|
nginx-1.28.0/auto/lib/perl/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/libxslt/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/libatomic/make
|
|
|
|
|
nginx-1.28.0/auto/lib/libatomic/conf
|
|
|
|
|
nginx-1.28.0/auto/lib/libgd/conf
|
|
|
|
|
nginx-1.28.0/auto/types/typedef
|
|
|
|
|
nginx-1.28.0/auto/types/value
|
|
|
|
|
nginx-1.28.0/auto/types/uintptr_t
|
|
|
|
|
nginx-1.28.0/auto/types/sizeof
|
|
|
|
|
nginx-1.28.0/man/nginx.8
|
|
|
|
|
[root@localhost nginx-server]# cd nginx-1.28.0
|
|
|
|
|
[root@localhost nginx-1.28.0]# ./configure
|
|
|
|
|
checking for OS
|
|
|
|
|
+ Linux 4.19.90-52.22.v2207.ky10.aarch64 aarch64
|
|
|
|
|
checking for C compiler ... found
|
|
|
|
|
+ using GNU C compiler
|
|
|
|
|
+ gcc version: 7.3.0 (GCC)
|
|
|
|
|
checking for gcc -pipe switch ... found
|
|
|
|
|
checking for -Wl,-E switch ... found
|
|
|
|
|
checking for gcc builtin atomic operations ... found
|
|
|
|
|
checking for C99 variadic macros ... found
|
|
|
|
|
checking for gcc variadic macros ... found
|
|
|
|
|
checking for gcc builtin 64 bit byteswap ... found
|
|
|
|
|
checking for unistd.h ... found
|
|
|
|
|
checking for inttypes.h ... found
|
|
|
|
|
checking for limits.h ... found
|
|
|
|
|
checking for sys/filio.h ... not found
|
|
|
|
|
checking for sys/param.h ... found
|
|
|
|
|
checking for sys/mount.h ... found
|
|
|
|
|
checking for sys/statvfs.h ... found
|
|
|
|
|
checking for crypt.h ... found
|
|
|
|
|
checking for Linux specific features
|
|
|
|
|
checking for epoll ... found
|
|
|
|
|
checking for EPOLLRDHUP ... found
|
|
|
|
|
checking for EPOLLEXCLUSIVE ... found
|
|
|
|
|
checking for eventfd() ... found
|
|
|
|
|
checking for O_PATH ... found
|
|
|
|
|
checking for sendfile() ... found
|
|
|
|
|
checking for sendfile64() ... found
|
|
|
|
|
checking for sys/prctl.h ... found
|
|
|
|
|
checking for prctl(PR_SET_DUMPABLE) ... found
|
|
|
|
|
checking for prctl(PR_SET_KEEPCAPS) ... found
|
|
|
|
|
checking for capabilities ... found
|
|
|
|
|
checking for crypt_r() ... found
|
|
|
|
|
checking for sys/vfs.h ... found
|
|
|
|
|
checking for BPF sockhash ... found
|
|
|
|
|
checking for SO_COOKIE ... found
|
|
|
|
|
checking for UDP_SEGMENT ... not found
|
|
|
|
|
checking for nobody group ... found
|
|
|
|
|
checking for poll() ... found
|
|
|
|
|
checking for /dev/poll ... not found
|
|
|
|
|
checking for kqueue ... not found
|
|
|
|
|
checking for crypt() ... not found
|
|
|
|
|
checking for crypt() in libcrypt ... found
|
|
|
|
|
checking for F_READAHEAD ... not found
|
|
|
|
|
checking for posix_fadvise() ... found
|
|
|
|
|
checking for O_DIRECT ... found
|
|
|
|
|
checking for F_NOCACHE ... not found
|
|
|
|
|
checking for directio() ... not found
|
|
|
|
|
checking for statfs() ... found
|
|
|
|
|
checking for statvfs() ... found
|
|
|
|
|
checking for dlopen() ... not found
|
|
|
|
|
checking for dlopen() in libdl ... found
|
|
|
|
|
checking for sched_yield() ... found
|
|
|
|
|
checking for sched_setaffinity() ... found
|
|
|
|
|
checking for SO_SETFIB ... not found
|
|
|
|
|
checking for SO_REUSEPORT ... found
|
|
|
|
|
checking for SO_ACCEPTFILTER ... not found
|
|
|
|
|
checking for SO_BINDANY ... not found
|
|
|
|
|
checking for IP_TRANSPARENT ... found
|
|
|
|
|
checking for IP_BINDANY ... not found
|
|
|
|
|
checking for IP_BIND_ADDRESS_NO_PORT ... found
|
|
|
|
|
checking for IP_RECVDSTADDR ... not found
|
|
|
|
|
checking for IP_SENDSRCADDR ... not found
|
|
|
|
|
checking for IP_PKTINFO ... found
|
|
|
|
|
checking for IPV6_RECVPKTINFO ... found
|
|
|
|
|
checking for IP_MTU_DISCOVER ... found
|
|
|
|
|
checking for IPV6_MTU_DISCOVER ... found
|
|
|
|
|
checking for IP_DONTFRAG ... not found
|
|
|
|
|
checking for IPV6_DONTFRAG ... found
|
|
|
|
|
checking for TCP_DEFER_ACCEPT ... found
|
|
|
|
|
checking for TCP_KEEPIDLE ... found
|
|
|
|
|
checking for TCP_FASTOPEN ... found
|
|
|
|
|
checking for TCP_INFO ... found
|
|
|
|
|
checking for accept4() ... found
|
|
|
|
|
checking for int size ... 4 bytes
|
|
|
|
|
checking for long size ... 8 bytes
|
|
|
|
|
checking for long long size ... 8 bytes
|
|
|
|
|
checking for void * size ... 8 bytes
|
|
|
|
|
checking for uint32_t ... found
|
|
|
|
|
checking for uint64_t ... found
|
|
|
|
|
checking for sig_atomic_t ... found
|
|
|
|
|
checking for sig_atomic_t size ... 4 bytes
|
|
|
|
|
checking for socklen_t ... found
|
|
|
|
|
checking for in_addr_t ... found
|
|
|
|
|
checking for in_port_t ... found
|
|
|
|
|
checking for rlim_t ... found
|
|
|
|
|
checking for uintptr_t ... uintptr_t found
|
|
|
|
|
checking for system byte ordering ... little endian
|
|
|
|
|
checking for size_t size ... 8 bytes
|
|
|
|
|
checking for off_t size ... 8 bytes
|
|
|
|
|
checking for time_t size ... 8 bytes
|
|
|
|
|
checking for AF_INET6 ... found
|
|
|
|
|
checking for setproctitle() ... not found
|
|
|
|
|
checking for pread() ... found
|
|
|
|
|
checking for pwrite() ... found
|
|
|
|
|
checking for pwritev() ... found
|
|
|
|
|
checking for strerrordesc_np() ... not found
|
|
|
|
|
checking for sys_nerr ... found
|
|
|
|
|
checking for localtime_r() ... found
|
|
|
|
|
checking for clock_gettime(CLOCK_MONOTONIC) ... found
|
|
|
|
|
checking for posix_memalign() ... found
|
|
|
|
|
checking for memalign() ... found
|
|
|
|
|
checking for mmap(MAP_ANON|MAP_SHARED) ... found
|
|
|
|
|
checking for mmap("/dev/zero", MAP_SHARED) ... found
|
|
|
|
|
checking for System V shared memory ... found
|
|
|
|
|
checking for POSIX semaphores ... not found
|
|
|
|
|
checking for POSIX semaphores in libpthread ... found
|
|
|
|
|
checking for struct msghdr.msg_control ... found
|
|
|
|
|
checking for ioctl(FIONBIO) ... found
|
|
|
|
|
checking for ioctl(FIONREAD) ... found
|
|
|
|
|
checking for struct tm.tm_gmtoff ... found
|
|
|
|
|
checking for struct dirent.d_namlen ... not found
|
|
|
|
|
checking for struct dirent.d_type ... found
|
|
|
|
|
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
|
|
|
|
|
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
|
|
|
|
|
checking for openat(), fstatat() ... found
|
|
|
|
|
checking for getaddrinfo() ... found
|
|
|
|
|
checking for PCRE2 library ... found
|
|
|
|
|
checking for zlib library ... found
|
|
|
|
|
creating objs/Makefile
|
|
|
|
|
|
|
|
|
|
Configuration summary
|
|
|
|
|
+ using system PCRE2 library
|
|
|
|
|
+ OpenSSL library is not used
|
|
|
|
|
+ using system zlib library
|
|
|
|
|
|
|
|
|
|
nginx path prefix: "/usr/local/nginx"
|
|
|
|
|
nginx binary file: "/usr/local/nginx/sbin/nginx"
|
|
|
|
|
nginx modules path: "/usr/local/nginx/modules"
|
|
|
|
|
nginx configuration prefix: "/usr/local/nginx/conf"
|
|
|
|
|
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
|
|
|
|
|
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
|
|
|
|
|
nginx error log file: "/usr/local/nginx/logs/error.log"
|
|
|
|
|
nginx http access log file: "/usr/local/nginx/logs/access.log"
|
|
|
|
|
nginx http client request body temporary files: "client_body_temp"
|
|
|
|
|
nginx http proxy temporary files: "proxy_temp"
|
|
|
|
|
nginx http fastcgi temporary files: "fastcgi_temp"
|
|
|
|
|
nginx http uwsgi temporary files: "uwsgi_temp"
|
|
|
|
|
nginx http scgi temporary files: "scgi_temp"
|
|
|
|
|
|
|
|
|
|
[root@localhost nginx-1.28.0]# make -j4 && make install
|
|
|
|
|
make -f objs/Makefile
|
|
|
|
|
make[1]: 进入目录“/media/nginx-server/nginx-1.28.0”
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/nginx.o \
|
|
|
|
|
src/core/nginx.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_log.o \
|
|
|
|
|
src/core/ngx_log.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_palloc.o \
|
|
|
|
|
src/core/ngx_palloc.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_array.o \
|
|
|
|
|
src/core/ngx_array.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_list.o \
|
|
|
|
|
src/core/ngx_list.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_hash.o \
|
|
|
|
|
src/core/ngx_hash.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_buf.o \
|
|
|
|
|
src/core/ngx_buf.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_queue.o \
|
|
|
|
|
src/core/ngx_queue.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_output_chain.o \
|
|
|
|
|
src/core/ngx_output_chain.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_string.o \
|
|
|
|
|
src/core/ngx_string.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_parse.o \
|
|
|
|
|
src/core/ngx_parse.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_parse_time.o \
|
|
|
|
|
src/core/ngx_parse_time.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_inet.o \
|
|
|
|
|
src/core/ngx_inet.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_file.o \
|
|
|
|
|
src/core/ngx_file.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_crc32.o \
|
|
|
|
|
src/core/ngx_crc32.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_murmurhash.o \
|
|
|
|
|
src/core/ngx_murmurhash.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_md5.o \
|
|
|
|
|
src/core/ngx_md5.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_sha1.o \
|
|
|
|
|
src/core/ngx_sha1.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_rbtree.o \
|
|
|
|
|
src/core/ngx_rbtree.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_radix_tree.o \
|
|
|
|
|
src/core/ngx_radix_tree.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_slab.o \
|
|
|
|
|
src/core/ngx_slab.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_times.o \
|
|
|
|
|
src/core/ngx_times.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_shmtx.o \
|
|
|
|
|
src/core/ngx_shmtx.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_connection.o \
|
|
|
|
|
src/core/ngx_connection.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_cycle.o \
|
|
|
|
|
src/core/ngx_cycle.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_spinlock.o \
|
|
|
|
|
src/core/ngx_spinlock.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_rwlock.o \
|
|
|
|
|
src/core/ngx_rwlock.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_cpuinfo.o \
|
|
|
|
|
src/core/ngx_cpuinfo.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_conf_file.o \
|
|
|
|
|
src/core/ngx_conf_file.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_module.o \
|
|
|
|
|
src/core/ngx_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_resolver.o \
|
|
|
|
|
src/core/ngx_resolver.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_open_file_cache.o \
|
|
|
|
|
src/core/ngx_open_file_cache.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_crypt.o \
|
|
|
|
|
src/core/ngx_crypt.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_proxy_protocol.o \
|
|
|
|
|
src/core/ngx_proxy_protocol.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_syslog.o \
|
|
|
|
|
src/core/ngx_syslog.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event.o \
|
|
|
|
|
src/event/ngx_event.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event_timer.o \
|
|
|
|
|
src/event/ngx_event_timer.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event_posted.o \
|
|
|
|
|
src/event/ngx_event_posted.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event_accept.o \
|
|
|
|
|
src/event/ngx_event_accept.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event_udp.o \
|
|
|
|
|
src/event/ngx_event_udp.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event_connect.o \
|
|
|
|
|
src/event/ngx_event_connect.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/ngx_event_pipe.o \
|
|
|
|
|
src/event/ngx_event_pipe.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_time.o \
|
|
|
|
|
src/os/unix/ngx_time.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_errno.o \
|
|
|
|
|
src/os/unix/ngx_errno.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_alloc.o \
|
|
|
|
|
src/os/unix/ngx_alloc.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_files.o \
|
|
|
|
|
src/os/unix/ngx_files.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_socket.o \
|
|
|
|
|
src/os/unix/ngx_socket.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_recv.o \
|
|
|
|
|
src/os/unix/ngx_recv.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_readv_chain.o \
|
|
|
|
|
src/os/unix/ngx_readv_chain.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_udp_recv.o \
|
|
|
|
|
src/os/unix/ngx_udp_recv.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_send.o \
|
|
|
|
|
src/os/unix/ngx_send.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_writev_chain.o \
|
|
|
|
|
src/os/unix/ngx_writev_chain.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_udp_send.o \
|
|
|
|
|
src/os/unix/ngx_udp_send.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_udp_sendmsg_chain.o \
|
|
|
|
|
src/os/unix/ngx_udp_sendmsg_chain.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_channel.o \
|
|
|
|
|
src/os/unix/ngx_channel.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_shmem.o \
|
|
|
|
|
src/os/unix/ngx_shmem.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_process.o \
|
|
|
|
|
src/os/unix/ngx_process.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_daemon.o \
|
|
|
|
|
src/os/unix/ngx_daemon.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_setaffinity.o \
|
|
|
|
|
src/os/unix/ngx_setaffinity.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_setproctitle.o \
|
|
|
|
|
src/os/unix/ngx_setproctitle.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_posix_init.o \
|
|
|
|
|
src/os/unix/ngx_posix_init.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_user.o \
|
|
|
|
|
src/os/unix/ngx_user.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_dlopen.o \
|
|
|
|
|
src/os/unix/ngx_dlopen.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_process_cycle.o \
|
|
|
|
|
src/os/unix/ngx_process_cycle.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_linux_init.o \
|
|
|
|
|
src/os/unix/ngx_linux_init.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/event/modules/ngx_epoll_module.o \
|
|
|
|
|
src/event/modules/ngx_epoll_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/os/unix/ngx_linux_sendfile_chain.o \
|
|
|
|
|
src/os/unix/ngx_linux_sendfile_chain.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_bpf.o \
|
|
|
|
|
src/core/ngx_bpf.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/src/core/ngx_regex.o \
|
|
|
|
|
src/core/ngx_regex.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http.o \
|
|
|
|
|
src/http/ngx_http.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_core_module.o \
|
|
|
|
|
src/http/ngx_http_core_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_special_response.o \
|
|
|
|
|
src/http/ngx_http_special_response.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_request.o \
|
|
|
|
|
src/http/ngx_http_request.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_parse.o \
|
|
|
|
|
src/http/ngx_http_parse.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_log_module.o \
|
|
|
|
|
src/http/modules/ngx_http_log_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_request_body.o \
|
|
|
|
|
src/http/ngx_http_request_body.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_variables.o \
|
|
|
|
|
src/http/ngx_http_variables.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_script.o \
|
|
|
|
|
src/http/ngx_http_script.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_upstream.o \
|
|
|
|
|
src/http/ngx_http_upstream.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_upstream_round_robin.o \
|
|
|
|
|
src/http/ngx_http_upstream_round_robin.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_file_cache.o \
|
|
|
|
|
src/http/ngx_http_file_cache.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_write_filter_module.o \
|
|
|
|
|
src/http/ngx_http_write_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_header_filter_module.o \
|
|
|
|
|
src/http/ngx_http_header_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_chunked_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_chunked_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_range_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_range_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_gzip_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_gzip_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_postpone_filter_module.o \
|
|
|
|
|
src/http/ngx_http_postpone_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_ssi_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_ssi_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_charset_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_charset_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_userid_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_userid_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_headers_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_headers_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/ngx_http_copy_filter_module.o \
|
|
|
|
|
src/http/ngx_http_copy_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_not_modified_filter_module.o \
|
|
|
|
|
src/http/modules/ngx_http_not_modified_filter_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_static_module.o \
|
|
|
|
|
src/http/modules/ngx_http_static_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_autoindex_module.o \
|
|
|
|
|
src/http/modules/ngx_http_autoindex_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_index_module.o \
|
|
|
|
|
src/http/modules/ngx_http_index_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_mirror_module.o \
|
|
|
|
|
src/http/modules/ngx_http_mirror_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_try_files_module.o \
|
|
|
|
|
src/http/modules/ngx_http_try_files_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_auth_basic_module.o \
|
|
|
|
|
src/http/modules/ngx_http_auth_basic_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_access_module.o \
|
|
|
|
|
src/http/modules/ngx_http_access_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_limit_conn_module.o \
|
|
|
|
|
src/http/modules/ngx_http_limit_conn_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_limit_req_module.o \
|
|
|
|
|
src/http/modules/ngx_http_limit_req_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_geo_module.o \
|
|
|
|
|
src/http/modules/ngx_http_geo_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_map_module.o \
|
|
|
|
|
src/http/modules/ngx_http_map_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_split_clients_module.o \
|
|
|
|
|
src/http/modules/ngx_http_split_clients_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_referer_module.o \
|
|
|
|
|
src/http/modules/ngx_http_referer_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_rewrite_module.o \
|
|
|
|
|
src/http/modules/ngx_http_rewrite_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_proxy_module.o \
|
|
|
|
|
src/http/modules/ngx_http_proxy_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_fastcgi_module.o \
|
|
|
|
|
src/http/modules/ngx_http_fastcgi_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_uwsgi_module.o \
|
|
|
|
|
src/http/modules/ngx_http_uwsgi_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_scgi_module.o \
|
|
|
|
|
src/http/modules/ngx_http_scgi_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_memcached_module.o \
|
|
|
|
|
src/http/modules/ngx_http_memcached_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_empty_gif_module.o \
|
|
|
|
|
src/http/modules/ngx_http_empty_gif_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_browser_module.o \
|
|
|
|
|
src/http/modules/ngx_http_browser_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_upstream_hash_module.o \
|
|
|
|
|
src/http/modules/ngx_http_upstream_hash_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
|
|
|
|
|
src/http/modules/ngx_http_upstream_ip_hash_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
|
|
|
|
|
src/http/modules/ngx_http_upstream_least_conn_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_upstream_random_module.o \
|
|
|
|
|
src/http/modules/ngx_http_upstream_random_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
|
|
|
|
|
src/http/modules/ngx_http_upstream_keepalive_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
|
|
|
|
|
-o objs/src/http/modules/ngx_http_upstream_zone_module.o \
|
|
|
|
|
src/http/modules/ngx_http_upstream_zone_module.c
|
|
|
|
|
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs \
|
|
|
|
|
-o objs/ngx_modules.o \
|
|
|
|
|
objs/ngx_modules.c
|
|
|
|
|
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
|
|
|
|
|
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
|
|
|
|
|
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
|
|
|
|
|
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
|
|
|
|
|
< man/nginx.8 > objs/nginx.8
|
|
|
|
|
cc -o objs/nginx \
|
|
|
|
|
objs/src/core/nginx.o \
|
|
|
|
|
objs/src/core/ngx_log.o \
|
|
|
|
|
objs/src/core/ngx_palloc.o \
|
|
|
|
|
objs/src/core/ngx_array.o \
|
|
|
|
|
objs/src/core/ngx_list.o \
|
|
|
|
|
objs/src/core/ngx_hash.o \
|
|
|
|
|
objs/src/core/ngx_buf.o \
|
|
|
|
|
objs/src/core/ngx_queue.o \
|
|
|
|
|
objs/src/core/ngx_output_chain.o \
|
|
|
|
|
objs/src/core/ngx_string.o \
|
|
|
|
|
objs/src/core/ngx_parse.o \
|
|
|
|
|
objs/src/core/ngx_parse_time.o \
|
|
|
|
|
objs/src/core/ngx_inet.o \
|
|
|
|
|
objs/src/core/ngx_file.o \
|
|
|
|
|
objs/src/core/ngx_crc32.o \
|
|
|
|
|
objs/src/core/ngx_murmurhash.o \
|
|
|
|
|
objs/src/core/ngx_md5.o \
|
|
|
|
|
objs/src/core/ngx_sha1.o \
|
|
|
|
|
objs/src/core/ngx_rbtree.o \
|
|
|
|
|
objs/src/core/ngx_radix_tree.o \
|
|
|
|
|
objs/src/core/ngx_slab.o \
|
|
|
|
|
objs/src/core/ngx_times.o \
|
|
|
|
|
objs/src/core/ngx_shmtx.o \
|
|
|
|
|
objs/src/core/ngx_connection.o \
|
|
|
|
|
objs/src/core/ngx_cycle.o \
|
|
|
|
|
objs/src/core/ngx_spinlock.o \
|
|
|
|
|
objs/src/core/ngx_rwlock.o \
|
|
|
|
|
objs/src/core/ngx_cpuinfo.o \
|
|
|
|
|
objs/src/core/ngx_conf_file.o \
|
|
|
|
|
objs/src/core/ngx_module.o \
|
|
|
|
|
objs/src/core/ngx_resolver.o \
|
|
|
|
|
objs/src/core/ngx_open_file_cache.o \
|
|
|
|
|
objs/src/core/ngx_crypt.o \
|
|
|
|
|
objs/src/core/ngx_proxy_protocol.o \
|
|
|
|
|
objs/src/core/ngx_syslog.o \
|
|
|
|
|
objs/src/event/ngx_event.o \
|
|
|
|
|
objs/src/event/ngx_event_timer.o \
|
|
|
|
|
objs/src/event/ngx_event_posted.o \
|
|
|
|
|
objs/src/event/ngx_event_accept.o \
|
|
|
|
|
objs/src/event/ngx_event_udp.o \
|
|
|
|
|
objs/src/event/ngx_event_connect.o \
|
|
|
|
|
objs/src/event/ngx_event_pipe.o \
|
|
|
|
|
objs/src/os/unix/ngx_time.o \
|
|
|
|
|
objs/src/os/unix/ngx_errno.o \
|
|
|
|
|
objs/src/os/unix/ngx_alloc.o \
|
|
|
|
|
objs/src/os/unix/ngx_files.o \
|
|
|
|
|
objs/src/os/unix/ngx_socket.o \
|
|
|
|
|
objs/src/os/unix/ngx_recv.o \
|
|
|
|
|
objs/src/os/unix/ngx_readv_chain.o \
|
|
|
|
|
objs/src/os/unix/ngx_udp_recv.o \
|
|
|
|
|
objs/src/os/unix/ngx_send.o \
|
|
|
|
|
objs/src/os/unix/ngx_writev_chain.o \
|
|
|
|
|
objs/src/os/unix/ngx_udp_send.o \
|
|
|
|
|
objs/src/os/unix/ngx_udp_sendmsg_chain.o \
|
|
|
|
|
objs/src/os/unix/ngx_channel.o \
|
|
|
|
|
objs/src/os/unix/ngx_shmem.o \
|
|
|
|
|
objs/src/os/unix/ngx_process.o \
|
|
|
|
|
objs/src/os/unix/ngx_daemon.o \
|
|
|
|
|
objs/src/os/unix/ngx_setaffinity.o \
|
|
|
|
|
objs/src/os/unix/ngx_setproctitle.o \
|
|
|
|
|
objs/src/os/unix/ngx_posix_init.o \
|
|
|
|
|
objs/src/os/unix/ngx_user.o \
|
|
|
|
|
objs/src/os/unix/ngx_dlopen.o \
|
|
|
|
|
objs/src/os/unix/ngx_process_cycle.o \
|
|
|
|
|
objs/src/os/unix/ngx_linux_init.o \
|
|
|
|
|
objs/src/event/modules/ngx_epoll_module.o \
|
|
|
|
|
objs/src/os/unix/ngx_linux_sendfile_chain.o \
|
|
|
|
|
objs/src/core/ngx_bpf.o \
|
|
|
|
|
objs/src/core/ngx_regex.o \
|
|
|
|
|
objs/src/http/ngx_http.o \
|
|
|
|
|
objs/src/http/ngx_http_core_module.o \
|
|
|
|
|
objs/src/http/ngx_http_special_response.o \
|
|
|
|
|
objs/src/http/ngx_http_request.o \
|
|
|
|
|
objs/src/http/ngx_http_parse.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_log_module.o \
|
|
|
|
|
objs/src/http/ngx_http_request_body.o \
|
|
|
|
|
objs/src/http/ngx_http_variables.o \
|
|
|
|
|
objs/src/http/ngx_http_script.o \
|
|
|
|
|
objs/src/http/ngx_http_upstream.o \
|
|
|
|
|
objs/src/http/ngx_http_upstream_round_robin.o \
|
|
|
|
|
objs/src/http/ngx_http_file_cache.o \
|
|
|
|
|
objs/src/http/ngx_http_write_filter_module.o \
|
|
|
|
|
objs/src/http/ngx_http_header_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_chunked_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_range_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_gzip_filter_module.o \
|
|
|
|
|
objs/src/http/ngx_http_postpone_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_ssi_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_charset_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_userid_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_headers_filter_module.o \
|
|
|
|
|
objs/src/http/ngx_http_copy_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_static_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_autoindex_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_index_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_mirror_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_try_files_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_auth_basic_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_access_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_limit_conn_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_limit_req_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_geo_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_map_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_split_clients_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_referer_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_rewrite_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_proxy_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_fastcgi_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_uwsgi_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_scgi_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_memcached_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_empty_gif_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_browser_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_upstream_hash_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_upstream_random_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
|
|
|
|
|
objs/src/http/modules/ngx_http_upstream_zone_module.o \
|
|
|
|
|
objs/ngx_modules.o \
|
|
|
|
|
-ldl -lpthread -lcrypt -lpcre2-8 -lz \
|
|
|
|
|
-Wl,-E
|
|
|
|
|
make[1]: 离开目录“/media/nginx-server/nginx-1.28.0”
|
|
|
|
|
make -f objs/Makefile install
|
|
|
|
|
make[1]: 进入目录“/media/nginx-server/nginx-1.28.0”
|
|
|
|
|
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
|
|
|
|
|
test -d '/usr/local/nginx/sbin' \
|
|
|
|
|
|| mkdir -p '/usr/local/nginx/sbin'
|
|
|
|
|
test ! -f '/usr/local/nginx/sbin/nginx' \
|
|
|
|
|
|| mv '/usr/local/nginx/sbin/nginx' \
|
|
|
|
|
'/usr/local/nginx/sbin/nginx.old'
|
|
|
|
|
cp objs/nginx '/usr/local/nginx/sbin/nginx'
|
|
|
|
|
test -d '/usr/local/nginx/conf' \
|
|
|
|
|
|| mkdir -p '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/koi-win '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/koi-utf '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/win-utf '/usr/local/nginx/conf'
|
|
|
|
|
test -f '/usr/local/nginx/conf/mime.types' \
|
|
|
|
|
|| cp conf/mime.types '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
|
|
|
|
|
test -f '/usr/local/nginx/conf/fastcgi_params' \
|
|
|
|
|
|| cp conf/fastcgi_params '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/fastcgi_params \
|
|
|
|
|
'/usr/local/nginx/conf/fastcgi_params.default'
|
|
|
|
|
test -f '/usr/local/nginx/conf/fastcgi.conf' \
|
|
|
|
|
|| cp conf/fastcgi.conf '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
|
|
|
|
|
test -f '/usr/local/nginx/conf/uwsgi_params' \
|
|
|
|
|
|| cp conf/uwsgi_params '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/uwsgi_params \
|
|
|
|
|
'/usr/local/nginx/conf/uwsgi_params.default'
|
|
|
|
|
test -f '/usr/local/nginx/conf/scgi_params' \
|
|
|
|
|
|| cp conf/scgi_params '/usr/local/nginx/conf'
|
|
|
|
|
cp conf/scgi_params \
|
|
|
|
|
'/usr/local/nginx/conf/scgi_params.default'
|
|
|
|
|
test -f '/usr/local/nginx/conf/nginx.conf' \
|
|
|
|
|
|| cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
|
|
|
|
|
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
|
|
|
|
|
test -d '/usr/local/nginx/logs' \
|
|
|
|
|
|| mkdir -p '/usr/local/nginx/logs'
|
|
|
|
|
test -d '/usr/local/nginx/logs' \
|
|
|
|
|
|| mkdir -p '/usr/local/nginx/logs'
|
|
|
|
|
test -d '/usr/local/nginx/html' \
|
|
|
|
|
|| cp -R html '/usr/local/nginx'
|
|
|
|
|
test -d '/usr/local/nginx/logs' \
|
|
|
|
|
|| mkdir -p '/usr/local/nginx/logs'
|
|
|
|
|
make[1]: 离开目录“/media/nginx-server/nginx-1.28.0”
|
|
|
|
|
[root@localhost nginx-1.28.0]# useradd nginx
|
|
|
|
|
[root@localhost nginx-1.28.0]# chown nginx:nginx /media/nginx-server
|
|
|
|
|
[root@localhost nginx-1.28.0]# chown nginx:nginx /usr/local/nginx
|
|
|
|
|
[root@localhost nginx-1.28.0]#
|
|
|
|
|
[root@localhost nginx-1.28.0]# cd /usr/local/nginx/sbin/
|
|
|
|
|
[root@localhost sbin]#
|
|
|
|
|
[root@localhost sbin]# ./nginx -v
|
|
|
|
|
nginx version: nginx/1.28.0
|
|
|
|
|
[root@localhost sbin]#
|
|
|
|
|
[root@localhost sbin]# cd /usr/local/nginx/sbin/
|
|
|
|
|
[root@localhost sbin]#
|
|
|
|
|
[root@localhost sbin]# ./nginx
|
|
|
|
|
[root@localhost sbin]# ps -ef | grep nginx
|
|
|
|
|
root 874588 1 0 13:47 ? 00:00:00 nginx: master process ./nginx
|
|
|
|
|
nobody 874589 874588 0 13:47 ? 00:00:00 nginx: worker process
|
|
|
|
|
root 874592 869327 0 13:47 pts/7 00:00:00 grep nginx
|
|
|
|
|
[root@localhost sbin]# cd /lib/systemd/system/
|
|
|
|
|
[root@localhost system]# vim nginx.service
|
|
|
|
|
[root@localhost system]# systemctl enable nginx
|
|
|
|
|
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
|
|
|
|
|
[root@localhost system]# systemctl disable nginx
|
|
|
|
|
Removed /etc/systemd/system/multi-user.target.wants/nginx.service.
|
|
|
|
|
[root@localhost system]# systemctl enable nginx
|
|
|
|
|
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
|
|
|
|
|
[root@localhost system]#
|