Install Nginx under Centos
Our goal today is to set up a Nginx service on Centos to facilitate subsequent testing and learning.This is also the first step in learning about other Internet components.Next, I will describe the source code compilation process step by step, with some instructions.
1. Download the latest source code on the official website and unzip it
The ...
Posted by bassguru on Sun, 17 May 2020 21:15:28 +0200
nginx certificateless stream module reverse proxy https
The company's R & D is generally in the Intranet environment, but some third-party interfaces need to be called during the development.
At this time, a server can be used as nginx reverse proxy, and then the R & D machine can modify the host file to point the domain name to the server to realize proxy forwarding.
However, the nor ...
Posted by Chesso on Sat, 16 May 2020 16:05:28 +0200
Three ways to configure Nginx virtual host (2) (based on port)
2. Port based virtual host configuration of Nginx
If a server has only one IP or needs to access different virtual hosts through different ports, port based virtual host configuration can be used.
2.1 suppose the server has an IP address of 192.168.2.154
[root@localhost conf]# ifconfig ens33:4 192.168.2.154/24 up
[root@localhost conf]# ...
Posted by chanchelkumar on Tue, 05 May 2020 03:35:56 +0200
k8s deployment and installation dashboard based on Centos8
Install and deploy dashboard
1. Check pod operation
kubectl get pods -A -o wide
Download the recommended.yaml filewget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yamlModify the recommended.yaml filevim recommended.yamlkind: ServiceapiVersion: v1metadata: labels: k8s-app: kubernetes-dashboard name ...
Posted by anto on Mon, 04 May 2020 18:02:22 +0200
Dockerfile image making practice
If you don't know what Dockerfile is, you can check my previous blog:https://blog.51cto.com/14557905/2489466Dockerfile image production practiceThree steps for Dockerfile to create image1, Making sshd image1. Write Dockerfile file
[root@docker sshd]# vim Dockerfile
#base image
FROM centos:7
#User information
MAINTAINER this is sshd project
#B ...
Posted by keigowei on Fri, 24 Apr 2020 17:20:41 +0200
Nginx Current Limiting Configuration
Current Limiting Algorithm
Token Bucket Tokens are generated at a fixed rate and placed in the token bucket. When the token bucket is full, extra tokens are discarded; requests consume an equal proportion of tokens.When the token is not enough, the request comes and no token is received, and the request is denied service.
Leaky buc ...
Posted by hismightiness on Tue, 21 Apr 2020 02:00:14 +0200
Nginx practice course nginx Solving session consistency
session viscosity
Each request is allocated according to the hash result of the access ip, so that each visitor accesses a back-end server, which can solve the session problem.
upstream backserver {
ip_hash;
server 192.168.0.14:88;
server 192.168.0.15:80;
}
But there are disadvantages. There is a single risk. If I have logged in on port 192.1 ...
Posted by Rayne on Sun, 19 Apr 2020 15:02:31 +0200
Nginx balanced TCP protocol server case
After version 1.9, nginx can act as a port forwarding function, that is, to access the specified port of the server, nginx can act as a port forwarding function to direct traffic to another server, and obtain the return data of the target server and return it to the requester.
The function of nginx's TCP proxy is different from that ...
Posted by dflow on Wed, 15 Apr 2020 12:04:12 +0200
Lu Feixue city deploying vue+django
Lu Feixue city deploying vue+django
Deployment of Luffy Learning City
One day, Ritian sent me two mysterious codes. It's said that they are the crystallization of mjj
I put these two codes on a website. You can download them by yourself
Lu Fei Xue Cheng django Code
https://files.cnblogs.com/files/tiger666/luffy_boy.zip
vu ...
Posted by faizanno1 on Sun, 12 Apr 2020 14:51:09 +0200
Nginx series tutorials nginx Solving session consistency
session viscosity
Each request is allocated according to the hash result of the access ip, so that each visitor accesses a back-end server, which can solve the session problem.
upstream backserver {
ip_hash;
server 192.168.0.14:88;
server 192.168.0.15:80;
}
But there are disadvantages. There is a single risk. If I have logged in on port 192.1 ...
Posted by djelica on Sun, 12 Apr 2020 03:53:23 +0200