An apple a day keeps the doctor away !

0%

euserv纯ipv6服务器安装宝塔面板

安装宝塔

1、连接vps后,先执行下面命令:

1
echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf

该命令是设置你的VPS的DNS解析,让你的VPS可以访问ipv4的网络

2、禁用fastmirror

1
2
vim /etc/yum/pluginconf.d/fastestmirror.conf
enable=0 #将1改为0
1
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、系统升级(可忽略)

1
nohup yum -y update &

4、安装宝塔

安装这个就行了

1
curl -sSO http://download.bt.cn/install/install_panel.sh && bash install_panel.sh

或者这个

1
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的话,那么就输入如下命令:

1
echo '::' > /www/server/panel/data/ipv6.pl && /etc/init.d/bt restart

以上