利用宝塔面板(bt.cn) 快速部署 反向代理、镜像、自建CDN
【性价之王】 | 【线路之王】 | 【价格之王】 | 【配置之王】 |
【免费之王】 | 【香港首推】 | 【梯子之王】 | 【独服之王】 |
反向代理、镜像、CDN从某种程度上来说都是一回事,不过CDN是由大量服务器做反向代理 缓存实现的。
宝塔面板官网:http://www.bt.cn/
安装面板安装前提宝塔面板支持:CentOS、Ubuntu、Debian、Fedora 系统。
Python版本: 2.6/2.7(安装宝塔时会自动安装)
内存:128M以上,推荐512M以上(纯面板约占系统10M内存)
硬盘:100M以上可用硬盘空间(纯面板约占20M磁盘空间)
系统:安装宝塔面板前,请务必使用纯净的系统(也就是去重装一下服务器),没有安装过其它环境带的Apache/Nginx/php/MySQL!
面板特色功能:一键配置服务器环境(LAMP/LNMP)一键安全重启一键创建管理网站、ftp、数据库一键配置(定期备份、数据导入、伪静态、301、SSL、子目录、反向代理、切换PHP版本)一键安装常用PHP扩展(fileinfo、intl、opcache、imap、memcache、apc、redis、ioncube、imagick)数据库一键导入导出系统监控(CPU、内存、磁盘IO、网络IO)防火墙端口放行SSH开启与关闭及SSH端口更改禁PING开启或关闭方便高效的文件管理器(上传、下载、压缩、解压、查看、编辑等等)计划任务(定期备份、日志切割、shell脚本)软件管理(一键安装、卸载、版本切换)安装步骤请根据你的系统选择并执行以下命令:
# Centos 安装命令:yum install –y wget && wget –O install.sh http://download.bt.cn/install/install.sh && sh install.sh# Ubuntu/Deepin 安装命令:wget –O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh# Debian 安装命令:wget –O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh# Fedora 安装命令:wget –O install.sh http://download.bt.cn/install/install.sh && bash install.sh安装过程以下为执行上面的安装命令后输出的内容:
[email protected]:~# wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && bash install.sh
–2018-01-14 13:14:01– http://download.bt.cn/install/install-ubuntu.sh
Resolving download.bt.cn (download.bt.cn)… 103.224.251.67
Connecting to download.bt.cn (download.bt.cn)|103.224.251.67|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 13572 (13K) [application/octet-stream]
Saving to: ‘install.sh’
install.sh 100%[==============================================================================>] 13.25K –.-KB/s in 0s
2018-01-14 13:14:01 (46.4 MB/s) – ‘install.sh’ saved [13572/13572]
+———————————————————————-
| Bt-WebPanel 5.x FOR Ubuntu/Debian
+———————————————————————-
| Copyright © 2015-2017 BT-SOFT(http://www.bt.cn) All rights reserved.
+———————————————————————-
| The WebPanel URL will be http://SERVER_IP:8888 when installed.
+———————————————————————-
Do you want to install Bt-Panel to the /www directory now?(y/n): y
# 这里是询问 宝塔面板安装目录的选项,默认输入 y 回车即可。
…
…
…
# 以上省略23333个字
Creating config file /etc/ufw/before.rules with new version
Creating config file /etc/ufw/before6.rules with new version
Creating config file /etc/ufw/after.rules with new version
Creating config file /etc/ufw/after6.rules with new version
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Processing triggers for libc-bin (2.19-18) …
Processing triggers for systemd (215-17) …
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
Command may disrupt existing ssh connections. Proceed with operation (y|n)? Firewall is active and enabled on system startup
Default incoming policy changed to ‘deny’
(be sure to update your rules accordingly)
Firewall reloaded
Double requirement given: psutil (already in psutil, name=’psutil’)
Storing debug log for failure in /root/.pip/pip.log
==================================================================
Congratulations! Install succeeded!
==================================================================
Bt-Panel: http://xxx.xxx.xxx.xxx:8888
# 这里是你的面板地址(可修改)
username: admin
# 这里是默认的面板账号(可修改)
password: xxxxxxx
# 这里是默认的面板密码(可修改)
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
==================================================================
Time consumed: 4 Minute!
# 安装全程用了 4 分钟
[email protected]:~#
# 当执行结果到这里的时候,就说明安装完毕了。
配置面板如果不出意外的情况下,安装面板后,就直接通过最后输出的 面板地址、面板账号、面板密码去登陆。
好吧,到这里教程就结束了,宝塔面板我感觉还是挺好用的,大家可以多研究研究,反正都是中文的。
其他问题打开 phpMyAdmin 提示 502 Bad Gateway 错误这个错误我也遇到过一次,最后网上找了找,找到了解决方法:
首先进入宝塔面板后台,打开 phpMyAdmin 的设置窗口,选择左边侧栏的 php版本 后,直接再点击一次 保存 按钮即可。
打开 反向代理网站 提示 502 Bad Gateway 错误反向代理出现这个错误,基本上就是你要反向代理的网站有反镜像措施,或者是挂了CDN。
如果是CDN,那么你要反向代理它就必须知道真实IP,然后在反向代理服务器设置 /etc/hosts 文件,添加相应规则,例如: 1.1.1.1 abc.com 。
原文来至逗比根据地
[bt]历史优惠活动内容
猜你可能想看的VPS
- imidc→(香港+台湾)独立服务器 $30 月 e3-12xx 16g独立服务器[U]
- curl CURLOPT_TIMEOUT_MS 小于 1 秒无效的解决方全球[VPS测评]
- 腾讯云星星海 SA2 云服务器→2C4G6M 三年 1735 元全球[VPS测评]
- 促销 iON→圣何塞线路改善 8 折优惠一个月 1 核 2G 50G S全球[VPS测评]
- 便宜 Virmach→7 折优惠码限时启用 月付低至 0.8 美元 美国美国VPS[主机]
- 便宜 Virmach→7 折优惠码限时启用 月付低至 0.8 美元 美国美国VPS[主机]
- SoftShellWeb→$3.99 月 1GB 内存 100GB 空间虚拟空间(主机)
- 老鹰主机再见夏季促销→虚拟主机低到 3 折 云服务器年付 7 折优惠全球[VPS测评]
- 三网直连 ¥128 年 512M 内存 10G 硬盘 2Mbps 不限量香港VPS[主机]
- HostEve→$2 月 1GB 内存 20GB SSD 空间 不限流量虚拟空间(主机)
- Scarlet Cloud→流量转发服务 有枣庄联通 绍兴电信 杭州联通全球[VPS测评]
- WordPress基于WPJAM BASIC开发的免费主题:Honey主全球[VPS测评]
- LOCVPS 全场八折优惠,双十一充300送50充500送100充600全球[VPS测评]
- HostCram美国便宜VPS,CPU i9-11900K/SK DDR美国VPS[主机]
- Adobe Acrobat PDF 排版插件 Quite Imposin全球[VPS测评]
- GigsGigsCloud新加坡大陆优化VPS上架全球[VPS测评]
- 福州职业技术学院获得世界职业院校技能大赛云计算赛项银牌全球[VPS测评]
- 6种样式社交论坛网站HTML5模板 - Social全球[VPS测评]
- 文物、沉船、村落!干旱导致大量遗迹重见天日 2022年干旱还要持续多久?全球[VPS测评]
- 亚马逊卖家与广告流量之间的博弈才刚刚开始?品牌卖家如何冲破广告之困...全球[VPS测评]
- 桔子数据:1核1GB香港CN2 GIA vps促销28元/月,最高30M香港VPS[主机]
- UCloud海外云服务器促销:全场1折起,香港cn2vps最低年付150香港VPS[主机]
- RAKsmart:1核1GB/40GB空间/不限流量/15Mbps/KV虚拟空间(主机)
- 野草云怎么样?香港、美国圣何塞高防VPS 1核1G3M 月付19元美国VPS[主机]
- sugarhosts:虚拟主机3折(有独立IP),云服务器5折,香港\\独立服务器[U]
- 什么是云服务器?云服务器怎么登陆?全球[VPS测评]
- 港网科技怎么样?国内BGP云主机,2核2G5M带宽仅377.46元/年全球[VPS测评]
- 速云互联:香港GT大带宽vps/香港CN2云服务器/洛杉矶200G高防v香港VPS[主机]
- 悦智网络:香港cn2 VPS阿里云线路,四川德阳高防vps,大连高防vp香港VPS[主机]
- HostKvm:韩国香港vps10月份最新促销,海外VPS全场八折优惠韩国VPS[主机]
转载请注明原文地址:https://www.motoll.com/read-157218.html