Install tiup to a specified location

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tiup 安装到指定位置

| username: coolper

[TiDB Usage Environment]
Testing
[TiDB Version]
v6.5.0
[Encountered Problem]
I downloaded the offline installation package from the official website. It is known that the default installation path of the tiup component is under /root/.tiup. I want to adjust the default deployment path of tiup, so I modified the TIUP_HOME information in local_install.sh. After executing local_install.sh, it prompts that the installation was successful, but executing related tiup commands reports an error saying it cannot find /root/.tiup/bin/root.json. Could you please advise what other places need to be adjusted if I want to change the default deployment path? Thank you.
[Attachment: Screenshot/Log/Monitoring]
Screenshot of the modified content in local_install.sh is as follows:
image

Screenshot of successful installation is as follows:

Error when executing tiup is as follows:

| username: tidb菜鸟一只 | Original post link

Try setting export TIUP_HOME=/app/tidb/.tiup?

| username: coolper | Original post link

Thank you for the explanation.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.