CentOS USES Squid to set up the CDN server

  • 2020-05-09 19:46:12
  • OfStack

A lot of stationmaster are in the process of building large website, regular meeting encounters the problem that the website opens speed slowly in particular area. At this time, 1 will generally make a website mirror in that region, and use smart DNS to determine which mirror server users visit.

Here we use WDCP and WDCDN to build our CDN acceleration point. Since WDCDN relies on WDCP, let's install WDCP first.
The specific steps are as follows:

Step 1: install WDCP 1.X


wget http://dl.wdlinux.cn:5180/rpms/rpm_install_1x
sh rpm_install_1x

You will be prompted to choose to install lamp or lnmp
Uninstall execution:


sh rpm_install_1x un 

Step 2: install WDCDN


wget http://www.wdlinux.cn/in_scripts/wdcdn_install
sh wdcdn_install

Unloading method:


service squid stop
chkconfig --level 3 squid off
vi /www/wdlinux/nginx/conf/nginx.conf
vi /www/wdlinux/apache/conf/httpd.conf

Remove the comment at the bottom


service httpd restart
service nginxd restart

Once the installation is complete, log on to WDCP's admin system to add the domain name of the site you want to speed up
After adding, do a good job of the domain name can be resolved.  


Related articles: