Details of event driven process of nginx based on epoll model

Epoll is an event driven model, which is one of the important reasons why nginx can efficiently handle client requests. From the flow point of view, the use of epoll model is mainly divided into three steps: the creation of epoll handle, listening to the addition of file descriptors and the triggering of waiting events. This paper will introduc ...

Added by gotissues68 on Tue, 14 Jan 2020 08:22:48 +0200

Several ways to deploy various projects with tomcat + nginx

Several ways to deploy various projects with tomcat + nginx Background introduction Skills list (multi-project deployment) Multiple tomcat environment variable configurations and common part modifications Deploy the zip package using tomcat + nginx.Custom Deployment Directory Deploy the war package ...

Added by kataras on Tue, 14 Jan 2020 03:36:06 +0200

LNMP dynamic website

LNMP Basics What is LNMP One of the mainstream enterprise website platforms 50: Linux operating system N:Nginx website service software M:MySQL.MariaDB database P: Website development language (PHP.Perl.Python) Difference between static website and dynamic website Static web page: (1) Static w ...

Added by filteredhigh on Sat, 11 Jan 2020 11:42:19 +0200

fastDFS Distributed File System Setup

Overview of fastDFS _FastDFS is an open source, lightweight, distributed file system, which manages files, including file storage, file synchronization, file access (file upload, file download), etc. It solves the problems of mass storage and load balancing.It is especially suitable for online services with files as carriers, such as photo al ...

Added by binarynomad on Tue, 07 Jan 2020 20:38:33 +0200

Linux - high availability of lvs with keepalived

Single master model IPVS example Configure keepalive Example of highly available ipvs cluster: modifying the keepalived configuration file Modify the keepalived configuration file of the host: 192.168.234.27 1 [root@234c27 ~]# vim /etc/keepalived/keepalived.conf 2 ! Configuration File for keepalived 3 4 global_defs { 5 notification_ ...

Added by Patty on Sun, 05 Jan 2020 12:53:02 +0200

LNMP schema (Nginx access log, Nginx log cutting, static file does not record log and expiration time)

Nginx access log 1. Open the configuration file and search for log? Format vim /usr/local/nginx/conf/nginx.conf 2. Meaning of common variables in access log $remote_addr: client IP (public IP) $HTTP "X" forwarded "for: IP of proxy server $time_local: server local time $host: access host name (domain name) $request_uri: url add ...

Added by pietbez on Sat, 04 Jan 2020 21:41:18 +0200

hubot + rocket configuration document

1. Install hubot 1.1 install node.js and npm yum install -y nodejs npm npm install -g inherits n yum install -y curl 1.2 install yo generator hub npm install -g yo generator-hubot npm install coffee-script -save //The following packages are optional: npm install hubot-test-helper --save-dev npm install expect.js npm ...

Added by agoni on Fri, 03 Jan 2020 03:14:46 +0200

Docker warehouse certification

Docker officially encapsulates the warehouse as an image. You can deploy the warehouse directly by starting the container Experimental environment Physical machine 172.25.41.250 I. warehouse authentication mechanism 1. certificate [root@foundation41 docker]# docker run -d --restart=always --name registry -v ` ...

Added by norpel on Thu, 02 Jan 2020 13:38:57 +0200

Docker installation and deployment

1, Install docker Environment: YUM source for rhel7.3 [root@18 docker]# yum install docker-engine-17.03.1.ce-1.el7.centos.x86_64.rpm -y [root@18 docker]# yum install docker-engine-selinux-17.03.1.ce-1.el7.centos.noarch.rpm -y [root@18 docker]# systemctl start docker.service ##View docker version [root@18 docker]# docke ...

Added by alconebay on Wed, 01 Jan 2020 03:48:56 +0200

keepalived builds master-slave architecture and master-slave architecture instance

Example topology: DR1 and DR2 deploy keepalived and lvs as the master-slave or master architecture, and RS1 and RS2 deploy nginx to build web sites. Note: the time of each node needs to be synchronized (ntpdate ntp1.aliyun.com); turn off firewalld (systemctl stop firewalld.service, systemctl disable firewalld.service), and set selinux to allow ...

Added by redRemedy on Tue, 31 Dec 2019 23:35:09 +0200