squidACL access control, reverse agent, sarg log
Experimental environment
squid server ens33:192.168.13.184
ens36:192.168.10.1 (host mode only)
web server 192.168.13.151
client 192.168.10.10 (host mode only)
I. ACL access control
1. Modify the configuration file on the squid server
[root@squid ~]# vim /etc/squid.conf ##Modify profile
# should be allo ...
Posted by ryan.od on Tue, 17 Dec 2019 06:51:22 -0800
SaltStack automatic deployment keepalived to achieve high availability of haproxy
Experimental environment
rhel6.5
serevr1 salt-master,salt-minion keepalived+haproxy ip:172.25.254.100
server4 salt-minion keepalived+haproxy ip :172.25.254.104
server2 salt-minion ip:172.25.254.102
server3 salt-minion ip:172.25.254.103
Virtual IP 172.25.254.200
See https://blog.csdn.net/weixin_/article/details/834 ...
Posted by varzosu on Sat, 14 Dec 2019 12:55:02 -0800
The realization of master-slave cascade of mysql
Introduction:
The master-slave cascade is to reduce the pressure of the master database, which is more conducive to load balancing. If we don't have a cascade server, we can also achieve the effect of master-slave synchronization, but we don't recommend using it. On the one hand, the pressure of the master database is too hig ...
Posted by suprsnipes on Sat, 14 Dec 2019 11:16:05 -0800
volumes persistent storage of k8s
Data persistence of k8s
kubernetes storage volume:We know that by default, the container's data is non persistent, and the data is lost after the container is destroyed, so docker provides a volume mechanism to store the data persistently. Similarly, k8s provides a more powerful volume mechanism and rich plug-ins to solve the problem of contai ...
Posted by bobvaz on Sat, 14 Dec 2019 08:44:59 -0800
tomcat multi instance deployment
Close main station
[root@dell710 ~]# bash /usr/local/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/javaUsing CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomca ...
Posted by Dax on Sat, 14 Dec 2019 07:13:25 -0800
Nginx virtual host based on host domain name
1. Copy the Nginx configuration file
[root@localhost ~]# cd /etc/nginx/conf.d/
[root@localhost conf.d]# cp default.conf default1.conf
2. Modify the configuration file default.conf
[root@localhost conf.d]# vim default.conf
server {
listen 80;
server_name www.host.com;
#charset koi8-r;
#access_log /var ...
Posted by Dilb on Fri, 13 Dec 2019 09:21:38 -0800
Theory+Practice: apache's Virtual web Host Configuration
@[toc]Common apache features, virtual hosts
One: Virtual Web Host
Run multiple Web sites on the same server, each of which does not occupy a real computer independently
1.1 Types of virtual hosts supported by httpd (three)
Type based on domain name
IP Address Based Virtual Host
Port-based virtual hostFor example:www.kgc.omwww.accp.comIP Same ...
Posted by mdgalib on Thu, 12 Dec 2019 19:16:14 -0800
Loop and concurrency control of shell
Article directory
Cycle and concurrent number control
Grammatical structure
`for loop concurrent deletion of users
for uses a space as a separator when reading a row to get parameters, while uses a row as a separator
Concurrency control (FD and named pipeline realize concurrency)
-FD file handle
-Named pipe
-Case: FD and na ...
Posted by solodesignz on Thu, 12 Dec 2019 12:17:44 -0800
python learning note 4 -- branch, loop, condition and enumeration
Expression
Expression is a sequence of operator s and operand s
>>> 1 + 1
2
>>> a = [1,2,3]
>>> 1 + 1 + 1 + 1
4
>>> 1 + 2 * 3
7
>>> 1 * 2 + 3
5
>>> a = 1 + 2 * 3
>>> a = 1
>>> b = 2
>>> c = a and b or c
>>> c = int('1') + 2
Operator priority
For example ...
Posted by kliopa10 on Thu, 12 Dec 2019 10:11:24 -0800
Squid proxy server -- ACL access control, sarg log, reverse proxy
Experimental environment
squid server ens33:192.168.13.184
ens36:192.168.10.1 (host mode only)
web server 192.168.13.151
client 192.168.10.10 (host mode only)
I. ACL access control
1. Modify the configuration file on the squid server
[root@squid ~]# vim /etc/squid.conf ##Modify profile
# should be allo ...
Posted by MDanz on Thu, 12 Dec 2019 08:29:21 -0800