autoDevops,CI,CD
 
0

Squid3.0的安装配置

发表者:分类:Devops2013-10-14 21:46:06 阅读[3412]
下载,编译安装:到官方站站下载squid3.0: http://www.squid-cache.org./configure --prefix=/opt/squid3 --disable-carp --with-aufs-threads=32 --with-pthreads --enable-storeio='ufs,aufs,null' --enable-disk-io='AIO,Blocking' --enable-removal-policies='heap,lru' --disable-wccp --enable-kill-parent-hack --disable-snmp --disable-poll --disable-select --enable-epoll --enable-auth=basic --with-aio --disable-ident-lookup --with-filedescriptors=65536 MakeMake install注意标红部分,使用squid3 最主要的原因,就是应为它开始支持epool了,而且,配置简化了很多。没有2.x 那么繁杂。 2  squid 关键配置说明:#缓存服务器的名字,可以任意  visible_hostname up1 #服务器端口  #设定squid为accel加速模式,vhost必须要加.否则将无法将主机头转发至后端服务器,访问时就会出现无法找到主机头的错误  http_port 80 accel vhost vport  #配置需要代理的realserver服务器  #定义不同的父节点,将节点设为no-query以及originserver说明这些节点是实际服务器  cache_peer 127.0.0.1 parent 80 0 no-query originserver...
haproxy + Squid 3.3.3 安装与基本配置 由于做测试开发用,搭建测试环境  haproxy + 2 *  squid 3.3.3 方案,  squid 2.7 比较稳定,性能高服务器环境是centos 6.3你可以直接使用命令安装haproxy 和squid  yum install haproxy yum install squid或者你可以手动编译安装, 由于只有一个haproxy 我就直接yum install haproxy  ,squid 是手动编译的1. 先安装haproxy yum install haproxyservice haproxy start   [root@dev_node0 etc]# vim /etc/haproxy/haproxy.cfg将默认的配置文件的部分内容,改成一下内容1234567891011121314151617181920#---------------------------------------------------------------------# main frontend which proxys to the backends#---------------------------------------------------------------------frontend  main *:80    acl ur...
RedFlag LInux SP3 编译 Squid-3.3.9 报错: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found先下载好Squid源码包,解压。#./configure --prefix=/usr/local/squid#make all 出现以下错误:/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found之前我已经编译了最新版Gcc4.8软件包,所以解决此问题就简单多了。出现该错误的原因是当前的GCC版本中,没有GLIBCXX_3.4.15,需要安装更高版本。删除原来的文件# rm /usr/lib/libstdc++.so.6重新建立软连接。ln -s /lus/local/gcc4.8/lib/libstdc++.so /usr/lib/libstdc++.so.6这时,我们再输入:strings /usr/lib/libstdc++.so.6 | grep GLIBCXX,结果为:[root@yupan gcc4.8]# strings /usr/lib/libstdc++.so.6 | grep GLIBCXXGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_3.4.10GLIBCXX_3.4.11GLIBCXX_3.4.12GLIBCXX_3.4.13GLIBCXX_3.4.14GLIBCXX_3.4.15GLIBCXX_3.4.16GLIBCXX_3.4.17GLIBCXX_3.4.18GLIBCXX_3.4.19GLIBCXX_FORCE_NEWGLIBCXX_DEBUG_MESSAGE_LENGTH再次运行make all安装正常。.# make in...
 
0

PCRE-8.33 编译安装

发表者:分类:Devops2013-10-14 13:11:29 阅读[2991]
PCRE-8.33 Introduction to PCRE The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl 5. This package is known to build and work properly using an LFS-7.4 platform. Package Information Download (HTTP): http://downloads.sourceforge.net/pcre/pcre-8.33.tar.bz2 Download (FTP): ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.bz2 Download MD5 sum: 21514018448ac10062ece7a668fca949 Download size: 1.4 MB Estimated...
How to Setup Linux VPN Server and Client using OpenVPNby Lakshmanan Ganapathy on September 9, 2013 TweetVPN stands for Virtual Private Network.A Virtual Private Network enables a computer to send and receive data from one private network to another private network which are connected via public network (Internet).This is helpful for those who are outside the company’s intranet, and like to connect to office network securely to access the internal servers. VPN is also helpful when you are connecting multiple branch offices together.Even when you are not connecting multiple branch offices together, you can still use VPN setup to allow your employees to connect remotely from their laptop to the datacenter and access the systems.Sometimes company will buy leased lines to form WAN ( Wide Area Network ), and communicates with its branches. Though Leased line is secure and reliable, it is expensive.VPN fills the gap by providing a point-to-point virtual connection via public network. A VPN ...
How To Monitor Remote Linux Host using Nagios 3.0by Ramesh Natarajan on June 1, 2008 TweetIn the previous post Nagios 3.0 Jumpstart guide , I explained the overview, installation and configuration of Nagios 3.0 on Red Hat Server. In the following three chapters, I’ll explain how to monitor a remote Linux host and the various services running on the remote host.  Also, please refer to all our Nagios articles. I. OverviewII. 6 steps to install Nagios plugin and NRPE on remote host.Download Nagios Plugins and NRPE Add-onCreate nagios accountInstall Nagios PluginsInstall NRPESetup NRPE to run as daemonModify the /usr/local/nagios/etc/nrpe.cfgIII. 4 Configuration steps on the Nagios monitoring server to monitor remote host:Download NRPE Add-onInstall check_nrpeCreate host and service definition for remote hostRestart the nagios serviceI. Overview:.Following three steps will happen on a very high level when Nagios (installed on the nagios-servers) monitors a service (for e.g. dis...
50 Most Frequently Used UNIX / Linux Commands (With Examples)by Ramesh Natarajan on November 8, 2010 TweetThis article provides practical examples for 50 most frequently used commands in Linux / UNIX.This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Linux commands. Bookmark this article for your future reference.Did I miss any frequently used Linux commands? Leave a comment and let me know.1. tar command examplesCreate a new tar archive.$ tar cvf archive_name.tar dirname/ Extract from an existing tar archive.$ tar xvf archive_name.tar View an existing tar archive.$ tar tvf archive_name.tar More tar examples: The Ultimate Tar Command Tutorial with 10 Practical Examples2. grep command examplesSearch for a given string in a file (case in-sensitive search). $ grep -i "the" demo_file Print the matched line, along with the 3 lines after it.$ grep -A 3 -i "example" demo_text Search...
Top 25 Best Linux Performance Monitoring and Debugging Toolsby Ramesh Natarajan on December 7, 2011 TweetI’ve compiled 25 performance monitoring and debugging tools that will be helpful when you are working on Linux environment. This list is not comprehensive or authoritative by any means.However this list has enough tools for you to play around and pick the one that is suitable your specific debugging and monitoring scenario.1. SARUsing sar utility you can do two things: 1) Monitor system real time performance (CPU, Memory, I/O, etc) 2) Collect performance data in the background on an on-going basis and do analysis on the historical data to identify bottlenecks.Sar is part of the sysstat package. The following are some of the things you can do using sar utility.Collective CPU usageIndividual CPU statisticsMemory used and availableSwap space used and availableOverall I/O activities of the systemIndividual device I/O activitiesContext switch statisticsRun queue and load average dataNe...
How to Enable GD Library in PHP with LibJPEG, FreeType and LibPNGIn PHP you can manipulate image files using GD library. It support several formats including GIF, PNG, JPEG, etc. You can use LibGD library to stream images directly from your application to the browser.This tutorial explains how to enable GD functionality in PHP.Download LibJPEG LibraryFirst, download the LibJPG files from here. Or, you can use the wget below to download it directly.cd /usr/save wget http://www.ijg.org/files/jpegsrc.v9.tar.gz Install LibJPEG LibraryOnce you’ve downloaded it, extract the archive and install it as shown below.tar xvfz jpegsrc.v9.tar.gz cd jpeg-9 ./configure make make install This will install the jpeg libraries in the default /usr/local/lib/ location as shown below.# ls /usr/local/lib/*jpeg* /usr/local/lib/libjpeg.a /usr/local/lib/libjpeg.la* /usr/local/lib/libjpeg.so -> libjpeg.so.9.0.0* /usr/local/lib/libjpeg.so.9 -> libjpeg.so.9.0.0* /usr/local/lib/libjpeg.so.9.0.0* ...
/usr/include/libpng12/pngconf.h:337: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include' make: *** [/usr/src/freetype-2.5.0.1/objs/sfnt.lo] Error 1 在安装最新版freetype-2.5时,configure后报以上错误信息。 ./configure --without-png mmake make install 安装Freetyper时,加参数 without-png   这样在./configure  就不会再出现以下的报错
    总共67页,当前第44页 | 页数:
  1. 34
  2. 35
  3. 36
  4. 37
  5. 38
  6. 39
  7. 40
  8. 41
  9. 42
  10. 43
  11. 44
  12. 45
  13. 46
  14. 47
  15. 48
  16. 49
  17. 50
  18. 51
  19. 52
  20. 53
  21. 54