Case:Web server: Domain name www.abc.com ip:192.168.21.129 Telecom Single line accessAccess users: Telecommunications broadband users, mobile broadband usersProblems: Telecommunications users open www.abc.com Normal, mobile users open www.abc.com very slow, or even openSolution: Place a CDN proxy server in the mobile computer room, through the intelligent DNS resolution, let the telecommunication user directly access the Web server, let the mobile use
1. Principle of Experiment:The client's request goes to the proxy server first, and the proxy server determines whether to request the Web server based on its own ACL. If the Web server is requested, the cache is established on its own hard disk, and if there is the next same request, it will be returned directly from its own cache.2. Specific operation:/etc/squid
, so that the speed of access slows down, but the second visitors and later visitors need the information, proxy do not want to remote server request, The data in the cache is sent directly to the subsequent requester, which reduces the traffic to the remote server, and the transmission is faster because the proxy is local.
Second, the use of squid in the constr
Case:
Web server: domain name www.abc.com IP: 192.168.21.129 China Telecom single line access
Users: Telecom broadband users and mobile broadband users
Problem: telecom users can access www.abc.com normally. Mobile users can access www.abc.com very slowly or even not.
Solution: place a CDN proxy server in the mobile data center. through intelligent DNS resolution, telecom users can directly access the Web server and mobile users can access the CDN
Linux and Cloud computing--the second phase of Linux Server SetupThe 11th chapter:Agent Proxy Server Erection-SQUID for basic certificationBasic CertificationConfiguration Basic Certification and Limitations users must Use authentication . [1]installationPackagetocontains htpasswd.[Email protected] ~]# yum-y install Ht
Installation: Yum install-y squidConfiguration file: vim/etc/squid/squid.confSpecify disk directory: Cache_dir ufs/var/spool/squid 100 16 256Cache_dir is used to specify the disk directory and size, the three values following the directory are represented from left to right:Disk directory maximum Capacity unit is m, the number of first-level subdirectories, the number of two levels of subdirectories.Enable
Proxy server, there is no need to introduce, simply say the installation process. At the beginning of the hosting24 above, installation, how the installation has not been successful, replaced by Linode, half an hour on the deal, Guess hosting24 the agent made restrictions.
One, server description
A foreign VPS (recommended Linode), service-side squid
A company's internal PC, can access the external netwo
A simple record of squid transparent proxy server configuration
Environment: VirtualBox + CentOS 6.0 + squid-3.1.4-1.el6.i686
0, check squid is installed by default, no installation of the first installation
The code is as follows:
[Root@slyar ~]# Rpm-qa Squid
Install the squid Proxy Server in linux
1. Experiment principle:
Client requests are first sent to the proxy server. the proxy server determines whether to request the WEB server based on its own acl. If you request a WEB server, a cache will be created on your own hard di
First, the basic principle
1, the public network in the client
Client
200.168.10.2
2. Squid Reverse proxy Server
Eth0
200.168.10.2
Eth1
192.168.10.1
3. Internal Web server
Web
192.168.10.2
Ii. Modification of squid.conf documents
#配置虚拟80端口 to prevent direct loss of data packets
http_port 200.168.10.1:80 vhost
#重定向的web服务器 0 means that the upper-level cache is not used
Cache_peer 192.168.10.2 Pa
Linode VPS, using squid to build a proxy, after loading, found that Facebook can be on, YouTube can also, but Google prompted errors, as follows
We ' re sorry ... but your computer or network may is sending automated. To protect we are users, we can ' t process your request right now
Looking for a long time on the internet, finally found a solution.
Method One: Edit/etc/sysctl.conf, add the following
Ne
2. Configure Iptables to forward the client's Web request to the Squid proxy port.
Third, the configuration transparent proxy
1, modify the squid.conf configuration file
Http_port 192.168.10.1:3128 Transparent
2. Reload the configuration file
Squid-k Reconfig
3, add iptables rules, the internal HTTP request wit
Linux monitoring tool introduction series-free and linux monitoring series-free
In Linux, we can view and monitor the system memory usage. The most common command is free. The free command is actually very simple, and the paramet
Tool: linux performance monitoring tool-nmon, linux-nmon
Nmon download: http://pan.baidu.com/s/1jICoSpo
It can be run directly in linux.
The nmon tool can display all important per
Linux Network Monitoring Tool ss, network monitoring ss
The ss command is used to display information about active sockets. Similar to netstat, but faster and more efficient than netstat.
ss -h
Usage: ss [OPTIONS] ss [OPTIONS] [FILTER]-h, -- help this message-V, -- version output version information-n, -- numeric don'
. The following are common tools used by VPSee:
Tools
Brief Introduction
Top
View process activity status and system status
Vmstat
View system status, hardware, and system information
Iostat
View CPU load and hard disk status
Sar
Integrated tools to view system conditions
Mpstat
View multi-processor status
Netstat
View network conditions
Iptraf
Real-time net
Guide
This article will introduce a very useful tool--netdata, which is a real-time Linux performance monitoring tool, for an open source tool, I have a translation of its English documents, the level of limited, there are translation errors in the place to welcome ever
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.