执行完如下命令之后,tiup 安装在 /root/.tiup 目录下:
root@ubt22-dev1:~# curl --proto ‘=https’ --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
由于根目录比较小,防止tiup 下载组件把系统盘撑爆,于是手工吧 /root/.tiup 目录移动到共享盘,并修改了 /root/.bashrc 的 PATH 环境变量:
root@ubt22-dev1:~# mkdir /mnt/share/database/tidb -p
root@ubt22-dev1:~# mv /root/.tiup /mnt/share/database/tidb
但是后续执行命令就出错了:
root@ubt22-dev1:~# tiup -v
Please check for root manifest file, you may download one from the repository mirror, or try tiup mirror set
to force reset it.
Error: initial repository from mirror(https://tiup-mirrors.pingcap.com/) failed: error loading manifest root.json: open /root/.tiup/bin/root.json: no such file or directory
root@ubt22-dev1:~# whereis tiup
tiup: /mnt/share/database/tidb/.tiup/bin/tiup
请问应该如何更换 tiup 安装目录?让其能给正常工作?
/mnt/share/database/tidb/.tiup