WSL Debian 安装宝塔面板,根据提示内网面板地址无法访问
windows11 的WSL下安装 Debian后, 安装宝塔面板,根据提示的内网面板地址无法访问,提示的访问地址是http://10.255.255.254:36111/1cf76ee9,但是无法访问。
使用“localhost”,替换IP地址就可以访问,http://localhost:36111/1cf76ee9。
windows11 的WSL下安装 Debian后, 安装宝塔面板,根据提示的内网面板地址无法访问,提示的访问地址是http://10.255.255.254:36111/1cf76ee9,但是无法访问。
使用“localhost”,替换IP地址就可以访问,http://localhost:36111/1cf76ee9。
Debian 提示 wget command not found,大概率是因为wget没有被安装。
1 检查wget是否被安装
运行代码:which wget
如果系统中已经安装了wget,这个命令会显示wget的安装路径(例如/usr/bin/wget)。如果系统未安装wget,你将看到空白输出。
2 安装wget
运行如下语句
sudo apt-get update
sudo apt-get install wget
sudo apt-get update 命令更新本地包索引,确保你能够安装最新的软件包。
sudo apt-get install wget 命令用于安装wget软件包。
3 检查
安装完成后,再次运行which wget,显示安装的路径为/usr/bin/wget。
如果未能解决问题,检查网络连接或重新启动系统。
检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost,如何处理,windows下WSL2 Debian 运行出错。
在任务栏搜索中搜索“wsl settings”,调出WSL 设置,左侧选择“网络”,右侧上面“网络模式”,下拉将“Nat”,替换为“Mirrored”。
退出重新启动计算机。
如果一开始不是root登录需要进行切换,并输入root密码。
su root:
安装宝塔面板比较简单,官方给出了安装命令
wget -O install.sh https://download.bt.cn/install/install_lts.sh && bash install.sh ed8484bec
Congratulations! Installed successfully!
=============注意:首次打开面板浏览器将提示不安全=================
请选择以下其中一种方式解决不安全提醒
1、下载证书,地址:https://dg2.bt.cn/ssl/baota_root.pfx 双击安装,密码【www.bt.cn】
2、点击【高级】-【继续访问】或【接受风险并继续】访问
教程:https://www.bt.cn/bbs/thread-117246-1-1.html
mac用户请下载使用此证书:https://dg2.bt.cn/ssl/baota_root.crt
========================面板账户登录信息==========================
【云服务器】请在安全组放行 40172 端口
外网面板地址: https://113.9.146.151:40172/6716c819
内网面板地址: https://10.255.255.254:40172/6716c819
username: 9qupo0sz
password: 783f9d46
浏览器访问以下链接,添加宝塔客服
https://www.bt.cn/new/wechat_customer
==================================================================
Time consumed: 9 Minute!
近期评论