因为玩客云是32位的,只能安装宝塔5.9,比N1安装宝塔难多了。那接着怎要折腾点什么,比如建个自已私有的博客/私有的网站/私有的云盘/私有的论坛......,那该怎么做呢?
首先需要有nginx环境/PHP环境/一个数据库/,今天就来说一说,我的安装过程

下面的步骤请严格按照我说的做。

1、修改时区(一条一条执行)

tzselect       //4911
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2、更新时间(一条一条执行)

apt install ntp
ntp ntp1.aliyun.com

3、 换清华源

root登录ssh服务器,编辑文件(用WinSCP修改更方便)

vi /etc/apt/sources.list

然后替换:

deb https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

4、使用命令,更新软件包(一条一条执行)

apt update
apt list --upgradable
apt upgrade

5、安装宝塔5.9版本

wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh

PS:安装完成后记着账户和密码

6、安装支持库

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz

7、解压文件

tar zxvf libiconv-1.13.1.tar.gz

8、进入解压后的文件夹

cd libiconv-1.13.1

9、配置libiconv

./configure -prefix=/usr/local

PS:这里如果出现错误!

./configure -prefix=/usr/local --build arm-pc-linux

10、编译安装(一条一条执行)

make
make install

11、创建一个文件并链接到Libiconv库

ln -s /usr/local/lib/libiconv.so /usr/lib
ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

12、如果安装Apache,登录宝塔面板下重新安装Apache 2.4 mysql5.5 php7.x(不要安装5.x)

13、如果要安装nginx请接着看下面

14、返回root目录

cd /root

进入

cd /www/server/panel/install

15、下载nginx.sh

wget https://www.feiji.work/n1/bt/nginx.sh

16、再输入直接安装

sh nginx.sh install

17、随后登录宝塔面板下重新安装
nginx1.14 mysql5.5 php7.x(php只能安装7.0或者以上版本)

过程中应该不会报错,但如果报错,重新执行直到成功(有可能会因为网络原因出现安装不完整而报错)

接下来可以继续折腾了!

分类: 经验教程 标签: 玩客云
公众号图片

评论

全部评论 2

  1. 。。
    。。
    Google Chrome Windows 10
    这个命令行无法单行复制,实用性太差了
  2. 令狐冲
    令狐冲
    Google Chrome Windows 7
    终于成功了 支持一下

目录