PHP7 production environment queue Beanstalkd correct use posture
Application scenario
Why use it? What's the advantage? This should be put at the beginning to say that only when you know what it is and what it is suitable for, can you better integrate it with your own projects. Where to use it and where to learn it? Learning it doesn't mean learning it doesn't mean we won't. We should usually consider more s ...
Added by arfa on Tue, 19 May 2020 08:46:14 +0300
The fifth experiment report of operating system memory management
0 personal information
Zhang yingzi
201821121038
Calculation 1812
1 purpose of the experiment
Learn more about memory management through programming.
2 experiment content
On the server, we use Vim to write a program: simulate a memory management algorithm, test the result, and explain the running result.
3. Experiment report
Three po ...
Added by bryansu on Sun, 17 May 2020 11:48:25 +0300
Prometheus+Grafana visual monitoring MySQL
Use Prometheus and Grafana to monitor MySQL server performance.Use two exporter s:Node? Exporter: server system data collectionmysqld_exporter: MySQL server data collectionMonitoring architecture:
Prometheus installation configurationInstallation mode binary installation, see here for details CentOS7 deployment PrometheusVersion: current late ...
Added by dhruvasagar on Thu, 14 May 2020 02:15:46 +0300
Build LVS-DR load balancing cluster and maintained LVS high availability load balancing cluster
18.11 LVS DR mode construction
preparation
Three machines have public IP.
Scheduler (director) IP: 192.168.230.135
real server1(real1) IP: 192.168.230.130
real server2(real2) IP: 192.168.230.145
VIP: 192.168.230.200
Start building
Configure director
[root@cham002 ~]# vim /usr/local/sbin/lvs_dr.sh
#! /bin/bash
echo 1 > /proc/s ...
Added by buddysal on Mon, 04 May 2020 07:27:43 +0300
Linux learning notes - supplemental
1.find command
Command format:
find directory condition value
1.find -name
find /etc/ -name passwd ##Find the file named passwd under / etc
2.find -user -group -a -o -not
find /mnt -group root
find /mnt -user westos
find /mnt -group root -user student ##and
find /mnt -group root -a -user student ##Both c ...
Added by GaryC on Fri, 01 May 2020 11:04:56 +0300
LNMP Architecture - Nginx parsing PHP related configuration, Nginx agent
Nginx parsing PHP related configuration
configuration file
vim /usr/local/nginx/conf/vhost/test.com.conf
.........
location ~ \.php$
{
include fastcgi_params;
//fastcgi_pass 127.0.0.1:9000
fastcgi_pass unix:/tmp/php-fcgi.sock;
//There are two listening formats of fastcgi ﹐ pass, ...
Added by phpSensei on Thu, 30 Apr 2020 15:35:29 +0300
for loop, while loop, break out of loop
for loop
General format:
for var in item1 item2 ... itemN
do
command1
command2
...
commandN
done
Write in one line:
for var in item1 item2 ... itemN; do command1; command2... done;
eg:
Requirement: sum the numbers from 1 to 100.
[root@dl-001 sbin]# vim sum.sh
#!/bin/bash
sum=0
for i in `seq ...
Added by samafua on Thu, 30 Apr 2020 13:57:53 +0300
Build CDN distribution network architecture
1. Questions:
Hechuang technology has registered the domain name www.mvsc.com for the enterprise website and deployed two Nginx website servers. In order to improve the response speed of this site when serving users in different regions, hechuang technology purchased CDN cache service from bluenews. According to the needs of cache distribution, ...
Added by htmlstig on Mon, 20 Apr 2020 12:46:00 +0300
rhel7 add static route
1. Use route command to add
//Routes added to hosts
[root@localhost ~]# route add -host 8.8.8.8 dev ens3
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 172.25.8.250 0.0.0.0 UG 100 0 0 ens3
8.8.8.8 0.0.0.0 ...
Added by rash on Sat, 18 Apr 2020 18:23:51 +0300
dns Part II cluster
(1) Auxiliary dns
Set slave
Select a machine as auxiliary dns machine
Operation on auxiliary machine
1. yum install bind -y
2.vim /etc/named.conf
listen-on port 53 { any; };
allow-query { any; };
dnssec-validation no;
3.vim /etc/named.rfc1912.zones
zone "westos.com" IN {
type slave;
masters ...
Added by shadysaiyan on Sat, 11 Apr 2020 18:04:48 +0300