1、安裝樹莓派系統(tǒng)
1、首先下載刷系統(tǒng)軟件:下載
2、選擇Raspberry Pi OS (64-bit)系統(tǒng)
3、設(shè)置配置文件
? ? ? ? 1、主機名
? ? ? ? 2、開啟ssh服務(wù)
? ? ? ? 3、設(shè)置wifi賬號密碼
4、選擇SD卡后開始燒錄
2、設(shè)置系統(tǒng)時區(qū)
1、使用date -R查看當前系統(tǒng)時間
2、安裝ntp插件:apt install ntpdate
3、啟用ntp:timedatectl?set-ntp?true
4、配置時區(qū):dpkg-reconfigure tzdata
? ? ? ? 選擇:Asia---> Shanghai
5、使用date -R查看當前系統(tǒng)時間
3、安裝花生殼?
1、下載花生殼(選擇64位):wget "https://dl.oray.com/hsk/linux/phddns_5.1.0_rapi_aarch64.deb" -O phddns_5.1.0_rapi_aarch64.deb
2、安裝花生殼:dpkg -i phddns_5.1.0_rapi_aarch64.deb
3、填寫SN碼和密碼
4、做內(nèi)網(wǎng)映射
4、安裝docker環(huán)境?
1、更新源:apt update
2、安裝docker:curl -sSL https://get.docker.com | sh
3、設(shè)置docker開機啟動:systemctl enable docker
4、啟動docker:systemctl start docker
5、?docker安裝portainer管理工具
1、搜索portainer鏡像:docker search portainer
2、拉取鏡像:docker pull lihaixin/portainer
3、創(chuàng)建portainer容器:
? ? ? ? docker run -dp 59000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name portainer lihaixin/portainer
6、樹莓派需要安裝mysql數(shù)據(jù)庫
?樹莓派位aarch64需要特殊方式安裝:
1、拉取鏡像:docker pull --platform=arm64 mysql/mysql-server文章來源:http://www.zghlxwxcb.cn/news/detail-559858.html
2、創(chuàng)建容器:docker run -p 53306:3306 --name mysql --privileged=true -v $PWD/log:/var/log/mysql -v?$PWD/data:/var/lib/mysql -v?$PWD/conf:/etc/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql/mysql-server文章來源地址http://www.zghlxwxcb.cn/news/detail-559858.html
到了這里,關(guān)于樹莓派4B安裝系統(tǒng) + 花生殼 + docker + portainer管理工具的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!