目录
前言
下载脚本
可能得报错以及解决办法
替换官方源
修改区时间
接下的步骤
全修复脚本
前言
在通过烧录u盘安装好armbian后如果新手要搭建网站的话就要安装宝塔面板了
但是因为armbian版本是32位的,因为CPU是s805是32位的,虽然可以安装宝塔最后一个32位的5.9的版本,但是有很多的配置如Nginx好像安装失败
下载脚本
而常规去官网上下载安装脚本就会出错
所以就要改一下官网下载的脚本这里下载链接下载
下好后用xftp来链接你本地的ip地址然后传输到/root目录下(也可以传输到其他目录,方便起见还是传到/root)
可能得报错以及解决办法
可能会提示无法访问从xftp中打开xshell
输入sudo -i,然后输入你的root密码
再输入
给予访问/root的权限
就可以访问/root文件夹了
然后在此之前还要配置一下其他的文件
替换官方源
打开源文件替换源
1 nano /etc/apt/sources.list
nano没安装的去安装
1 2 3 4 deb https://mirrors.ustc.edu.cn /debian buster main contrib non-freedeb https://mirrors.ustc.edu.cn /debian buster-updates main contrib non-freedeb https://mirrors.ustc.edu.cn /debian buster-backports main contrib non-freedeb https://mirrors.ustc.edu.cn /debian-security/ buster/updates main contribnon-free
修改区时间
之后修改区时间
1 nano /etc/apt/sources.list .d/raspi.list
1 2 deb http://mi rrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui deb-src http://mi rrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
更新一下
好了之后直接执行安装脚本
这时候都会报错,然后接下来继续跟着走
接下的步骤
再下载文件导入链接下载
到/root
ssh中执行
1 2 3 4 5 6 7 8 9 10 11 btpip install gevent==21 .12 .0 btpip install psutil==5 .8 .0 btpip install --upgrade pipbtpip install --upgrade Pillowbtpip install gevent-websocket==0 .10 .1 btpip install pycryptodome-3 .14 .1 -cp35-abi3-linux_armv7l.whlbtpip install cryptography==3 .2 btpip install pyOpenSSL==20 .0 .0 btpip install Flask==1 .1 .4 btpip install requests==2 .26 .0 bt 1
然后看看bt 1 后面会不会报错或者直接输入
查看内网面板链接可不可以进入
全修复脚本
不能的话执行下列命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 btpip install aliyun-python-sdk-core==2 .13 .35 btpip install aliyun-python-sdk-core-v3==2 .13 .32 btpip install aliyun-python-sdk-kms==2 .15 .0 btpip install bcrypt==3 .1 .7 btpip install beautifulsoup4==4 .8 .2 btpip install cachetools==4 .0 .0 btpip install certifi==2019 .11 .28 btpip install cffi==1 .15 .0 btpip install chardet==3 .0 .4 btpip install Click==8 .1 .2 btpip install configobj==5 .0 .6 btpip install configparser==4 .0 .2 btpip install cos-python-sdk-v5==1 .9 .14 btpip install crcmod==1 .7 btpip install cryptography==3 .2 btpip install Cython==0 .29 .26 btpip install decorator==4 .4 .1 btpip install dicttoxml==1 .7 .4 btpip install dnspython==1 .16 .0 btpip install docker==4 .2 .0 btpip install enum34==1 .1 .9 btpip install Flask==2 .1 .1 btpip install Flask-Session==0 .4 .0 btpip install Flask-SQLAlchemy==2 .5 .1 btpip install future==0 .18 .2 btpip install gevent==21 .12 .0 btpip install gevent-websocket==0 .10 .1 btpip install google-api-core==2 .3 .2 btpip install google-api-python-client==2 .33 .0 btpip install google-auth==2 .3 .3 btpip install google-auth-httplib2==0 .1 .0 btpip install google-auth-oauthlib==0 .4 .6 btpip install google-cloud-core==2 .2 .1 btpip install google-cloud-storage==1 .43 .0 btpip install google-resumable-media==2 .1 .0 btpip install googleapis-common-protos==1 .54 .0 btpip install greenlet==1 .1 .2 btpip install httplib2==0 .20 .2 btpip install idna==2 .8 btpip install iniparse==0 .5 btpip install ipaddress==1 .0 .23 btpip install IPy==1 .0 btpip install itsdangerous==2 .1 .2 btpip install Jinja2==3 .1 .1 btpip install jmespath==0 .9 .4 btpip install kitchen==1 .2 .6 btpip install MarkupSafe==2 .1 .1 btpip install mongo==0 .2 .0 btpip install oauthlib==3 .1 .1 btpip install oss2==2 .15 .0 btpip install paramiko==2 .8 .1 btpip install peewee==3 .13 .1 btpip install Pillow==8 .4 .0 btpip install protobuf==3 .19 .1 btpip install psutil==5 .9 .0 btpip install pyasn1==0 .4 .8 btpip install pyasn1-modules==0 .2 .8 btpip install pycparser==2 .19 btpip install pycryptodome==3 .14 .1 btpip install Pygments==2 .7 .4 btpip install pyinotify==0 .9 .6 btpip install pymongo==3 .10 .1 btpip install PyMySQL==1 .0 .2 btpip install PyNaCl==1 .4 .0 btpip install pyOpenSSL==20 .0 .0 btpip install pyparsing==2 .4 .6 btpip install pyPdf==1 .13 btpip install PySocks==1 .7 .1 btpip install pytz==2019 .3 btpip install pyudev==0 .22 .0 btpip install pyxattr==0 .7 .1 btpip install PyYAML==5 .4 btpip install qiniu==7 .5 .0 btpip install qrcode==7 .3 .1 btpip install redis==4 .0 .2 btpip install requests==2 .26 .0 btpip install requests-file==1 .5 .1 btpip install requests-oauthlib==1 .3 .0 btpip install rsa==4 .8 btpip install six==1 .16 .0 btpip install soupsieve==1 .9 .5 btpip install SQLAlchemy==1 .4 .28 btpip install supervisor==4 .2 .2 btpip install upyun==2 .5 .5 btpip install uritemplate==3 .0 .1 btpip install urlgrabber==4 .1 .0 btpip install urllib3==1 .26 .7 btpip install websocket-client==1 .2 .3 btpip install Werkzeug==2 .1 .1
跑完要好久的时间,慢慢等
接下重启
输入
或者输入bt后输入序号就行了
推荐安装Nginx 1.18
Mysql 5.5
PHP 7.2
玩客云安装好armbian5.9后后续安装宝塔7.x版本