14 star shifts of Nginx - (GeoIP)

What is GeoIP GeoIP refers to the location information such as longitude and latitude, national map, or province (state) by accessing IP. We can use this function to restrict access to a certain country or a certain region, or to realize customized personalized functions. How to enable GeoIP # Libmaxminddb (because you need to read the IP datab ...

Posted by Stingus on Tue, 03 Dec 2019 05:17:52 +0100

MySQL is highly available. MySQL is master-slave + maintained.

1. Environment: centos7.5 MySQL 5.7192.168.3.222 master192.168.3.158 slave192.168.3.223 VIPTwo: first, make two mastersTo operate both machines2.1: domain name resolution: ###vim /etc/hosts (both) 192.168.3.222 master 192.168.3.158 slave 2.2: Download MySQL 5.7 ### wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm ### rpm - ...

Posted by blufish on Mon, 02 Dec 2019 16:52:41 +0100

damin management interface of django

Environmental Science: The physical machine is win7, the VM workstation 14 virtual machine software is installed, the virtual machine system is centos7, and the python version is 3.5.2. Define model class: ]# cd /root/py3/django-test1/test5 ]# vim bookshop/models.py from django.db import models class BookInfo(models.Model):     btitle = mode ...

Posted by jesse_james on Sun, 01 Dec 2019 23:09:58 +0100

k8s resource limit

Note: the following is only a fragment of resource restriction in yaml file, not a complete yaml file, but only a sketch of its own. 1. Restrictions on pod resources: [root@master limit]# vim cgroup-pod.yaml spec: containers: - name: xxx image: xxx ports: - protocol: TCP containerPort: 80 resources: limits: ...

Posted by nullified on Wed, 27 Nov 2019 15:45:49 +0100

RocketMQ -- environment configuration

  Let's first go to / etc/hosts to add information vim /etc/hosts Add the following information: Pass apache-rocketmq.tar.gz to / usr/local/software through XFTP tool Then add / usr / local / Apache rocketmq directory, and extract Apache rocketmq.tar.gz to this directory [root@bogon apache-rocketmq]# mkdir /usr/local ...

Posted by maniac1aw on Sat, 23 Nov 2019 22:08:11 +0100

redis4.0.11 can be used to install the production environment

redis4.0.11 can be used to install the production environmentThe operating system version is CentOS 6.5 Execute the initialization.sh optimization script first. For details, see Initialization scriptWe use redis-4.0.11.tar.gz onlineOptimize according to the log content / / it will be processed later. We can execute it first here. For those wh ...

Posted by rofl on Fri, 22 Nov 2019 16:45:19 +0100

Ten common simplified versions of Go algorithm

Recently, I have time to watch Go. I feel that the language of Go is really good. I'm Baidu. Let's talk about the algorithm today What is algorithm A series of calculation steps used to convert input data into output results The significance of the algorithm Used to solve specific problems The efficiency of different algorithms to ...

Posted by kobayashi_one on Thu, 21 Nov 2019 15:45:22 +0100

How to configure Nginx web page optimization in Linux system

Change the number of Nginx running processes In the high concurrency scenario, more Nginx processes need to be started to ensure fast response, so as to process users' requests and avoid blocking You can use the ps aux command to view the number of Nginx running processes Configuration method for changing the number of processes Modify the ...

Posted by saurabhdutta on Fri, 15 Nov 2019 18:54:17 +0100

Nginx configuration test service status

1. Check whether the check status module is installed; [root@localhost ~]# nginx -V nginx version: nginx/1.12.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) configure arguments: --prefix=/usr/local/nginx --with-http_sub_module 2. If it is not installed, recompile and install it; Check status module; -- with HTTP > status > modul ...

Posted by logicopinion on Thu, 14 Nov 2019 16:49:21 +0100

FastDFS picture server stand-alone installation steps

As I said before A picture of the network architecture of microservices , through this article, you can understand the stand-alone installation process in FastDFS components. Stand alone architecture The following are the installation steps of FastDFS I. environmental preparation CentOS 7.X libfastcommon Version used: libfastcommon-1.0.41.tar. ...

Posted by Brand Hill on Tue, 12 Nov 2019 11:45:19 +0100