共计 3097 个字符,预计需要花费 8 分钟才能阅读完成。
github 地址 usmannasir/cyberpanel: Cyber Panel – The hosting control panel for OpenLiteSpeed (github.com)
安装代码
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
出现错误
CentOS Linux 8 – AppStream 29 B/s | 38 B 00:01
Error: Failed to download metadata forrepo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist
above command failed.
解决,修改
vim CentOS-Linux-BaseOS.repo
vim CentOS-Linux-AppStream.repo
替换
http://mirror.centos.org 为
http://vault.centos.org
重新执行安装
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
出错错误
File "/usr/lib64/python3.6/subprocess.py", line 1364. in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mysql': 'mysql'
Oops, something went wrong...
执行
yum update
出现错误
Repository cr is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository extras-source is listed more than once in the configuration
Repository fasttrack is listed more than once in the configuration
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/litespeed.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/litespeed.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/litespeed.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/litespeed.repo; Configuration: OptionBinding with id "failovermethod" does not exist
CentOS-8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'AppStream':
- Curl error (6): Couldn't resolve host name for http://mirrors.ucloud.cn/centos/8/AppStream/x86_64/os/repodata/repomd.xml [Could not resolve host: mirrors.u$loud.cn]
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
两个错误
第一个:Invalid configuration value: failovermethod=
删除 failovermethod
sed -i '/^failovermethod=/d' /etc/yum.repos.d/*.repo
第二个错误
修改 /etc/yum.repos.d/litespeed.repo 的 http://mirrors.ucloud.cn/centos/8/ 源地址
[yum.repos.d]$grep ucloud.cn ./*
./CentOS-AppStream.repo:#baseurl=http://mirrors.ucloud.cn/centos/$releasever/AppStream/$basearch/os/
./CentOS-Base.repo:#baseurl=http://mirrors.ucloud.cn/centos/$releasever/BaseOS/$basearch/os/
./CentOS-centosplus.repo:#baseurl=http://mirrors.ucloud.cn/centos/$releasever/centosplus/$basearch/os/
./CentOS-Extras.repo:#baseurl=http://mirrors.ucloud.cn/centos/$releasever/extras/$basearch/os/
上面四个文件 修改里面的地址为
#baseurl=http://mirrors.ucloud.cn/centos/$releasever/centosplus/$basearch/os/
baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/$basearch/os/
再次更新
yum update
再次安装 cyberpanel
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
安装本地 mysql 数据库
设置密码
开始安装 cyberpanel
开始 clone
安装成功
安装成功
登录后台
cyberpanel 后台截图
你的工作,由 AI 赋能!🔥
还在为文案、脚本卡壳、做视频、写代码、设计图片灵感枯竭而烦恼吗?🤯
板板 AI,你的工作好帮手!
一键生成 各种文案、脚本、图片、视频、代码、报告,轻松应对各种工作 / 营销需求!
现在注册体验,即可获得:
- 🎁 30 积分基础模型余额
- 🎁 3 积分高级模型余额
- 🎁 3 积分绘画余额
还不快来试试?
点击链接,开启你的 AI 创作之旅!>>>https://www.banbanai.cn
板板 AI,让你的工作效果发挥无限可能! 🚀