当前位置: 首页 > news >正文

基于jsp的精品课程网站建设北京企业网络推广外包

基于jsp的精品课程网站建设,北京企业网络推广外包,网站转发代码,东营百姓网1 概述 ‌Squid‌是一个高性能的代理缓存服务器#xff0c;主要用于缓冲Internet数据。它支持多种协议#xff0c;包括FTP、gopher、HTTPS和HTTP。Squid通过一个单独的、非模块化的、I/O驱动的进程来处理所有的客户端请求#xff0c;这使得它在处理请求时具有较高的效率‌。…1 概述 ‌Squid‌是一个高性能的代理缓存服务器主要用于缓冲Internet数据。它支持多种协议包括FTP、gopher、HTTPS和HTTP。Squid通过一个单独的、非模块化的、I/O驱动的进程来处理所有的客户端请求这使得它在处理请求时具有较高的效率‌。简单地说不能上网的服务器可以通过squid服务器来进行http上网冲浪。 应用场景 1‌缓存加速‌Squid通过缓存机制减少对原始服务器的访问从而降低带宽使用和访问时间。这对于ISP互联网服务提供商和网站来说非常有用可以显著提升用户体验并减轻服务器负载‌。 ‌2访问控制和日志记录‌Squid提供了丰富的访问控制、认证和日志环境适用于开发web代理和内容服务网站应用‌。 3内容分发‌Squid支持内容分发网络CDN的部署使得内容提供商可以高效地在全球范围内分发内容‌。工作机制 当客户机通过代理请求Web页面时Squid首先检查自己的缓存。如果缓存中已经有客户机需要的页面则直接将缓存中的页面内容反馈给客户机如果没有Squid会连接到远程服务器获取页面内容并将其存储在本地缓存中以便下次使用‌。 2 环境 wget服务器华为云上海centos 7.9192.168.12.220无公网地址。 squid服务器华为云广州centos 7.910.0.14.179有公网地址可以访问github.com网站。 云连接通过华为云云连接打通wget服务器和squid服务器。 3 部署squid 通过yum部署即可。 yum install squid -y systemctl start squidsquid配置文件/etc/squid/squid.conf监听在3128端口允许内网客户端10.0.0.0/8、172.16.0.0/12、192.168.0.0/16访问而wget服务器属于内网网段。 # # Recommended minimum configuration: ## Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machinesacl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT# # Recommended minimum Access Permission configuration: # # Deny requests to certain unsafe ports http_access deny !Safe_ports# Deny CONNECT to other than secure SSL ports http_access deny CONNECT !SSL_ports# Only allow cachemgr access from localhost http_access allow localhost manager http_access deny manager# We strongly recommend the following be uncommented to protect innocent # web applications running on the proxy server who think the only # one who can access services on localhost is a local user #http_access deny to_localhost# # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS ## Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost# And finally deny all other access to this proxy http_access deny all# Squid normally listens to port 3128 http_port 3128# Uncomment and adjust the following to add a disk cache directory. #cache_dir ufs /var/spool/squid 100 16 256# Leave coredumps in the first cache dir coredump_dir /var/spool/squid# # Add any of your own refresh_pattern entries above these. # refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 43204 wget服务器下载文件测试 wget服务器没有上网能力因此无法下载文件 wget https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gzwget工具连接squid服务器后开始下载文件 wget -e https_proxyhttp://10.0.14.179:3128 \ https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gz5 小结 对于不能上网的服务器可以通过squid服务器来进行网上冲浪。
http://www.dnsts.com.cn/news/155805.html

相关文章:

  • 制作网页的模板的网站协会网站建设哪里实惠
  • 网站建设基本流程详细说明哪个企业的网站做的比较好
  • o2o网站建设信息ui设计一般要学多久
  • 阿里云备案增加网站高端公司小程序建设
  • 公司网站维护怎么弄贵阳广告公司排名
  • 摄影个人网站模板营销技巧美剧第一季在线
  • 手机网站APP网络推广商城网站数据库设计工具
  • 网站充值怎么做的企业天眼查询
  • 工伤保险网站建设工程有限公司网站
  • 西安市城乡建设管理局网站的公示栏房地产开发公司属于什么企业
  • 西安手机网站制作公司注册国外网站用什么邮箱
  • 亳州有做网站的吗外贸行业网站推广
  • 电子商务网站建设课设微信怎么设计分享网站
  • 网站推广的企业离石做网站的公司
  • 杭州网站设计优异柚v米科技爱站网备案查询
  • 免费建站宝盒附近最近的广告公司
  • 网站业务流程设计微信小程序分销功能
  • 分类信息网站推广的意义黄岛王台有做网站的吗
  • 网站设计的一般流程是什么网络安全企业
  • 番禺网站建设培训学校wordpress 输出json
  • 在哪查找网站的建设者北京最大网站建设公司排名
  • o2o网站开发框架做图网站有哪些
  • 贵阳网站建设q.479185700棒东营建设信息网最新招聘
  • 东莞定制网站建设新人做外贸怎么找国外客户
  • 好吊顶网站佛山网站上排名
  • 做营养的网站wordpress主题公众号
  • 企业网站推广方案设计毕业设计做网站细节
  • 南昌网站建设公司信息360推广助手
  • 做类似简书的网站景德镇网站建设景德镇
  • 网站开发工程师swot分析带导航栏的网站