宝塔面板

腾讯云轻量服务器安装宝塔面板报错Error: This command has to be run with superuser privileges (under the root user on most systems).

我的站长站 2022-09-27 人阅读

报错原因

我们在使用腾讯云轻量服务器,安装宝塔面板时,SSH面板提示报错:Error: This command has to be run with superuser privileges (under the root user on most systems).

我的站长站用翻译工具看了,大概报错的意思是:运行的命令必须以超级用户权限运行。所以当前的用户是普通用户,必须用密钥登录的超级用户才行。

解决方法

1、新建密钥:点击“密钥”,创建一个密钥。

腾讯云轻量服务器安装宝塔面板报错Error: This command has to be run with superuser privileges (under the root user on most systems).

2、绑定密钥:点击SSH密钥,绑定刚刚创建的密钥到服务器。绑定成功后,还会下载一个密钥文件到电脑本地上。

腾讯云轻量服务器安装宝塔面板报错Error: This command has to be run with superuser privileges (under the root user on most systems).

3、用密钥登录:点击右上角的“登录”,选择“密钥登录”,密钥选择刚刚生成的密钥文件,一般在你的浏览器默认下载目录里。

腾讯云轻量服务器安装宝塔面板报错Error: This command has to be run with superuser privileges (under the root user on most systems).

成功登录后,就可以直接安装宝塔面板了。

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
相关专题
腾讯云
腾讯云
2022-09-27 27

腾讯云作为国内主流云服务商,以高性价比与优质服务深受站长青睐。我的站长站整理2026最新腾讯云优惠活动、低价服务器购买攻略、新手建站与环境部署教程、面板安装...

宝塔面板教程标签