Linux Deploy手机centos安装宝塔;Linux Deploy安装Ubuntu
2022-11-24更新Linux Deploy安装Ubuntu系统 装宝塔
1,安装Ubuntu
架构 建议ubuntu选arm64,centos选aarch64,Debian选arm64,选错架构即使安装成功也使用不了。默认的bionic
源地址: http://mirrors.ustc.edu.cn/ubuntu-ports/
镜像大小应该是控制在4G;用户账号密码特权全改成root,本地化改为ZC_CH-UTF8, SSH选上。
安装好后就可以SSH连接
2,安装宝塔:
连接后改变源,(vi /etc/apt/sources.list)
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main universe restricted
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main universe restricted
3. 升级:sudo apt update; apt install yum;
yum install net-tools -y (Linux Deploy) apt-get install net-tools
pkg install vim proot git python wget curl -y
4.安装宝塔:参考官网给的命令https://www.bt.cn/new/download.html;
Ubuntu/Deepin安装脚本 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
psutilt 提示失败则手动下载 wget https://pypi.python.org/packages/source/p/psutil/psutil-5.2.2.tar.gz
小总结:很扯淡的是 Linux Deploy装centos或ub时候arm64可以安装成功,但是很多不能用例如宝塔(华为Honnor V8 和红米2均是)
其他:
配置的源地址:https://mirrors.aliyun.com/contos-altarch ${EXTERNAL_STORAGE/linux.img
配置的源地址:https://mirrors.ustc.edu.cn/centos-altarch /storage/emulated/0/linux.img 223.5.5.5
下载地址:https://pan.ily.cc/linuxdeploy-2.6.0-259.apk
关于问题:(比较有价值)参考https://blog.csdn.net/qq_40596572/article/details/118838671
问题1:宝塔下mysql问题:
笔记:https://ily.cc/archives/3.html
视频:https://www.bilibili.com/video/BV1nZ4y1W7Sx/?spm_id_from=333.337.search-card.all.click&vd_source=9439c0e52180517a8ed5413018542104
——————————————————————————
上篇安装centos7:https://www.cnblogs.com/yanqb/p/14566945.html
本篇,安装宝塔:
#安装wget
yum install wget
#更换阿里源
cd /etc/yum.repos.d/
cat CentOS-Base.repo
wget http://mirrors.aliyun.com/repo/Centos-altarch-7.repo -O /etc/yum.repos.d/CentOS-Base.repo
#查看是否更换成功
cat CentOS-Base.repo
#更换成功后清除缓存并重建
yum clean all
yum makecache
#安装环境
yum install screen iptraf-ng unzip openssh-clients subversion git man setuptool system-config-firewall-tui ntsysv vim links bzip2 pcre-devel zlib-devel NetworkManager-tui mariadb-server gcc-c++ make
#更新软件
yum -y update
#安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.s
由于手机是32位系统的无法安装6.0的宝塔面板我改执行以下命令安装5.x的: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
原文链接:https://blog.csdn.net/weixin_40842492/article/details/107288522
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ssh连接后执行命令:yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
如果提示root权限。(请使用root权限执行宝塔安装命令!)
先执行命令sudo -i进入root账号,然后执行上面命令
后续报错:ERROR: Make python env fielded. ERROR: 编译宝塔运行环境失败! 可能是版本过高
报错信息中有这样一条:configure: error: no acceptable C compiler found in $PATH即:配置错误,在$path中找不到可接受的C编译器
2、解决方式:安装C编译器gcc(GNU编译器套件): yum -y install gcc
3、提示硬盘空间不足,查看df -hl 看到linux.img文件只有1.07G 配置,点击配置,然后安装,再试
参考:https://www.bilibili.com/video/BV17S4y1C78p?from=search&seid=12361638121914668136&spm_id_from=333.337.0.0