Background Environment: developers are not allowed to access the Internet, but some special websites are required to access the Internet. All websites that use squid for transparent proxy access previously thought of haproxy, later, it seems that haproxy can only forward data and cannot access the Internet through proxy.
Prerequisites: squid is used to build a transparent proxy for Internet access. Theoretically, two NICs, two Ip addresses, two ip addresses in different CIDR blocks, one ip Addr
/.
Dinkum C ++ library http://www.dinkumware.com/
Qt http://www.trolltech.com/
Qt Chinese net http://www.qiliang.net/qt.html
3. Personal site (from jjhou.com)
Bjarne stroustrup http://www.research.att.com /~ BS/
Stanley B. Lippman http://staff.develop.com/slip/
David musser http://www.cs.rpi.edu /~ Musser/
Scott Meyers http://www.aristeia.com/
Niclai M. josutis http://www.josuttis.com/
Bruce Eckel http://www.mindview.net
Herb Suter http://www.gotw.ca/
Herb Suter http://www.gotw.ca/Andrei Alexand
machine can also automatically obtain the ip address. If you install Linux with James step by step, your Linux does not have an IP address at present. The following describes how to configure IP addresses:
Automatically obtain the IP address
In only one case, the IP address can be automatically obtained, that is, the DHCP service is available in the network environment where your Linux is located. [1] In short, as long as your real machine can automatically obtain the IP address, you can als
carriage return line break, the Windows platform is "\ r \ n" and the UNIX platform is "\ n".%x: The NDC (nested diagnostic environment) associated with the output and current line threads, especially for multi-client multithreaded applications such as Java Servlets.Percent: Outputs a "%" character.In addition, you can also add modifiers between% and format characters to control their minimum length, maximum length, and text alignment. Such as:1)%20c
~] #chkconfig cups off← prevent print service from starting automatically[Root@sample ~] #chkconfig-list cups← confirm Print Service self-startup settings statusCups0:off 1:off 2:off 3:off 4:off 5:off all states are off to OK (the current print service is prohibited from starting)
7. Stop IPv6
In the default state of Centos6.3, IPv6 is enabled. Because we don't use IPv6, we can stop IPv6 to maximize security and speed. First, make sure IPv6 is not in the state of being started. [Root@sample ~
multithreading such as Java Servlets.%: Output A "%" Character% F: name of the file in which the output Log message is generated% L: the row number in the output code% M: output the specific log information of the specified message in the code.% N: returns a carriage return line break. For Windows, the line feed is "\ r \ n", and for UNIX, the line feed is "\ n ".You can add modifiers between the % and mode characters to control the alignment of the minimum width, maximum width, and text. For e
auto-start setting of the serviceCups 0: off 1: off 2: off 3: off 4: off 5: off 6: off running 0-6 are all off status OK (the current printing service is disabled since it is started)
[10] stopping IPv6
In the default centos status, IPv6 is enabled. Because we do not use IPv6, stop IPv6 to maximize security and speed.
First, check whether the IPv6 feature is enabled.
[Root @ sample ~] # Ifconfig-A Networks: list all network interfacesEth0 link encap: Ethernet hwaddr 00: 0C: 29: B
format character to control its minimum length, maximum length, and the alignment of the text. such as:1)%20c: Specifies the name of the output category, the minimum length is 20, if the category name length is less than 20, the default is the right alignment. 2)%-20c:"-"The number indicates left alignment. 3%.30C: Specifies the name of the output category, the maximum length is 30, if the category name le
occurs, including the class name, the thread that occurred, and the number of rows in the code.Percent: Outputs a "%" character.%F: The name of the file where the output log message was generated.%l: The line number in the output code.You can add modifiers between% and pattern characters to control their minimum width, maximum width, and text alignment. Such as:1)%20c: Specifies the output class destination name, the minimum width is 20, if the class
detailed in "State hold."
Get property:Request format: Used at the end of the request address, followed by "key = value" in the format of splicing, multiple key-value pairs with connection.Example: The URL is as followsHttp://www.itcast.cn/?a=10b=20c=pythonThe request parameters are:A=10b=20c=pythonSummarize:
Parse request parameters, key ' A ', ' B ', ' C ', value ' 10 ', ' 20 ', ' Python '
as a list, you can get all the values of the specified key
Returns an empty list if the key does not exist [], you can set a default value for subsequent processing
Dict.getlist (' key ', default value)Get propertyRequest format: Used at the end of the request address, followed by "key = value" in the format of splicing, multiple key-value pairs with connection.Example: The URL is as followshttp://www.itcast.cn/?a=10b=20c=pythonThe request
equipment and provide relevant test page, etc., in the eth1 this net card to choose the same communication channel, NODE0 this virtual machine haproxy host, Node1 and Node2 are different virtual hosts that provide Web servers for both back ends;650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/26/16/wKiom1NpycrTigk9AAFTVY806zA030.jpg "title=" 7.png " alt= "Wkiom1npycrtigk9aaftvy806za030.jpg"/>
[Email protected] ~]# ifconfig eth1 192.168.27.10/24 up# Configure IP addresses
"/>Save to exit650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/9B/wKiom1S1H3fRqw0IAAB9m-_DBWk456.jpg "style=" float: none; "Title=" Untitled 8.png "alt=" Wkiom1s1h3frqw0iaab9m-_dbwk456.jpg "/>4. Restart the network service, the eth1 can be used normally.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/98/wKioL1S1IEGhieiBAADap0wm8PM469.jpg "style=" float: none; "Title=" Untitled 9.png "alt=" Wkiol1s1ieghieibaadap0wm8pm469.jpg "/>5. You can now use the Xshell tool to co
the line is disconnected, this monitoring line also shows that there is no failure problem)Mode=1 represents Active-backup, provides redundancy, the mode of operation is the main standby, by default, only one network card work, the other to do backup network cardMode=0 represents Round-robin, load balancing, this state does not increase the bandwidth, just in two network card polling work, the bandwidth rate of the two network cards is average, but also support fault tolerance (this state requi
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.