|
安装宝塔
1、连接 vps 后,先执行下面命令:
该命令是设置你的 VPS 的 DNS 解析,让你的 VPS 可以访问 ipv4 的网络- echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf
复制代码 2、禁用 fastmirror- vim /etc/yum/pluginconf.d/fastestmirror.conf
复制代码 修改enabled=1 为 enabled=0
:wq 保存- echo -e "[main]\nenabled=0\nverbose=0\nalways_print_best_host = true\nsocket_timeout=3\n# Relative paths are relative to the cachedir (and so works for users as well\n# as root).\nhostfilepath=timedhosts.txt\nmaxhostfileage=10\nmaxthreads=15\n#exclude=.gov, facebook\n#include_only=.nl,.de,.uk,.ie" > /etc/yum/pluginconf.d/fastestmirror.conf
复制代码 3、系统升级(可忽略)
Ubuntu/Debian系统安装命令:- apt-get update -y && apt-get install curl wget -y
复制代码 CentOS系统安装命令:- yum update -y && yum install curl wget -y
复制代码 4、安装宝塔
安装支持V6的版本- curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh
复制代码 或者这个- yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
复制代码 运行 bt 命令,改下端口 8080,取消一下入口限制,然后用 cf 解析一下,用域名 + 端口访问即可。
注意:如果套了 cloudflare 后访问还是提示错误 521 的话,那么就输入如下命令:- echo '::' > /www/server/panel/data/ipv6.pl && /etc/init.d/bt restar
复制代码 |
|