Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tiup 安装到指定位置

[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:
Screenshot of successful installation is as follows:
Error when executing tiup is as follows: