一、刷armbian系统
地址:https://github.com/hzyitc/armbian-onecloud/releases
固件版本说明:
current:稳定版(推荐)
Edge:开发版
带"burn” (推荐) :线刷包,直接写入emmc (需要双公头线)
带"minimal”(按需) :最小化安装
jammy: ubuntu
bullseye: debian
本次用的版本号:Armbian-unofficial_24.5.0-trunk_Onecloud_bullseye_current_6.6.21_minimal.burn.img
线刷工具:Amlogic_USB_Burning_Tool_v2.1.6.8
二、putty登陆后设置密码
putty不登录设置一次密码,用finalshell登陆不了!
三、finalshell登陆后改时区
检查时间
date -R
如果时区及时间不对。执行下面的操作
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
再次检查时间
date -R
接下来是添加系统的软件源,这样可以提高安装成功率。输入:
nano /etc/apt/sources.list
换源时可以把原先的软件源用“#”注释掉。比如
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
这句前面加了“#”,系统就不会运行这句代码了。同样地可以把复制粘贴的新代码去掉注释,这样就会有更多的新软件源。
然后按方向键到最后在空白处添加以下代码:
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
#deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
粘贴完毕后先按 ctrl+x 保存修改 再按Y键确定。
四、更新系统软件
sudo apt-get update && sudo apt-get upgrade -y
这一步会用很长时间,耐心等待。
如果实在很慢,去看下你换源成功了没。
五、安装1panel
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh
Debian系统的命令;
六、玩客云设备固定IP
1.查看网络
ifconfig
要是提示:Command 'ifconfig' not found, but can be installed with:apt install net-tools。
使用下面的工具安装网络工具。
安装网络工具
apt install net-tools
玩客云的mac地址,自己登陆路由器查看;
B6:FC:F1:DB:EE:24
修改网络接口配置
nano /etc/network/interfaces
allow-hotplug eth0
no- auto-down eth0
iface eth0 inet static
hwaddress ether B6:FC:F1:DB:EE:24 #替换自己的玩客云mac地址
pre-up ifconfig eth0 hw ether B6:FC:F1:DB:EE:24 #替换自己的玩客云mac地址
address 192.168.0.9 #玩客云IP地址,自己可以改没有占用的就行
netmask 255.255.255.0
gateway 192.168.0.1 #路由器地址
dns-nameservers 192.168.0.1 #DNS地址,后面在【1Panel安装后无法联网的问题】有说明
pre-up /sbin/ifconfig eth0 mtu 3838
1Panel安装后无法联网的问题
1panel安装完成后登陆后台进入应用商店提示“无法成功请求最新版本,请检查服务器是否能够连接到外部网络环境。”或者点击【更新应用列表】提示“请求失败 Get "https://apps-assets.fit2cloud.com/stable/1panel.json.version.txt": dial tcp: lookup apps-assets.fit2cloud.com on 192.168.0.1:53: read udp 192.168.0.20:46462->192.168.0.1:53: read: connection refused”错误,多半是公共dns的问题,解决办法:
用finalshell等工具打开dns服务器的配置文件etc/resolv.conf,添加可用的公共dns即可;
#将原来的 192.168.0.1 注释掉;
Google:8.8.8.8
百度:180.76.76.76
阿里云:223.5.5.5
安装armv7l 架构MySQL和Openresty
一、安装 MySQL
由于 MySQL 官方未提供 armv7l 架构镜像,所以在应用商店启用 MySQL 前,需要手动修改 MySQL 镜像版本。
MySQL 5.7
1、下载 armv7l 架构最新版本镜像
docker pull biarms/mysql:5.7.33-beta-circleci
2、将镜像重命名为 1Panel 应用商店中使用的 MySQL 版本
docker tag biarms/mysql:5.7.33-beta-circleci mysql:5.7.42
3、在应用商店中安装 MySQL,版本选择 5.7.42
MySQL 8.0
1Panel 当前版本还不支持在 armv7l 架构服务器上安装 MySQL 8.0
二、安装 OpenResty
由于 OpenResty 官方未提供 armv7l 架构镜像,所以在应用商店启用 OpenResty 前,需要手动修改 OpenResty 镜像版本。
1、下载 armv7l 架构最新版本镜像
docker pull imzcc/openresty:1.21.4.1-7-alpine
2、将镜像重命名为 1Panel 应用商店中使用的 OpenResty 版本
docker tag imzcc/openresty:1.21.4.1-7-alpine openresty/openresty:1.21.4.1-7-focal
3、在应用商店中安装 OpenResty
说明:参考文档地址:https://1panel.cn/docs/faq/server_architecture/
官方文档不知道是什么时候写的,在泡饼哥(walkingpaobing.cn)1panel当前运行版本:v1.10.2-lts已经不适用了,但是可以作为参考。
解决办法:修改安装 OpenResty 和 MySQL 时compose文件里面版本可以解决此问题。
MySQL 编辑 compose 文件修改:image: biarms/mysql:5.7.33-beta-circleci
OpenResty 编辑 compose 文件修改:image: imzcc/openresty:1.21.4.1-7-alpine
以上两个操作可以在安装的时候修改,也可以在安装失败后点击参数高级选项修改 compose 文件,然后点击重建。
评论 (0)