智能摘要 DeepSeek
宝塔面板安装时强制绑定账户。用户可通过SSH运行命令解除绑定:修改index.js文件,将`bind_user == 'True'`替换为`bind_user == 'REMOVED'`。还原绑定则运行反向命令,将条件改回`bind_user == 'True'`。该方法无需账户绑定即可使用面板,操作需谨慎以防错误。(字数:98)
宝塔现在只要安装都是要强制绑定账户,现在可以解除强制绑定,只需要在服务器的SSH运行下面的指令
解除强制绑定
sed -i "s|if (bind_user == 'True') {|if (bind_user == 'REMOVED') {|g" /www/server/panel/BTPanel/static/js/index.js
还原强制绑定
sed -i "s|if (bind_user == 'REMOVED') {|if (bind_user == 'True') {|g" /www/server/panel/BTPanel/static/js/index.js