How to use NAS persistent volume dynamically in Kubernetes cluster
1. introduction:
This paper introduces a scheme of dynamically generating NAS storage volume: on an existing file system, a directory is automatically generated, which is defined as the target storage volume;
Image address: registry.cn-hangzhou.aliyuncs.com/acs/alicloud-nas-controller:v1.11.5.4-433631d-aliyun
Default build resource:The name of ...
Added by Bullet on Thu, 05 Dec 2019 23:38:10 +0200
nginx startup process details
The starting process of nginx starts with the main() method of the nginx.c file, in which nginx performs operations such as parsing command line parameters, initializing module indexes, parsing configuration files, initializing modules, starting master, worker, and cache-related processes.This paper starts with the main () method and explains h ...
Added by 01706 on Thu, 05 Dec 2019 13:57:26 +0200
LNMP architecture virtual host configuration, user authentication and domain name redirection
November 26 mission 12.6 Nginx installation
https://my.oschina.net/u/3964535/blog/2933878 12.7 default virtual host 12.8 Nginx user authentication 12.9 Nginx domain name redirection
Configure nginx virtual host
Modify nginx main configuration file
[root@localhost nginx-1.12.2]# vim /usr/local/nginx/conf/nginx.conf
# Delete the origi ...
Added by monotoko on Wed, 04 Dec 2019 21:50:45 +0200
Utilize php websocket to implement message push or timely communication function of applet wss
Applet does not have message pushing function, to achieve this, you can use php's websocket
Configure the server.
1. Upload the web-msg-sender directory to the server (download address https://www.workerman.net/web-sender) 2. Modify the start_io.php file to modify the certificate path (nginx certificate)
$sender_io = new SocketIO(2120);
Mod ...
Added by n8r0x on Mon, 02 Dec 2019 11:36:22 +0200
filebeat log collection
#(1) Download filebeathttps://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.4.0-linux-x86_64.tar.gz
#(2) build filebeat image
1) prepare the dockerfile file
# cat dockerfile
FROM docker.io/centos
WORKDIR /usr/local
COPY filebeat-5.4.0-linux-x86_64.tar.gz /usr/local
RUN cd /usr/local && \
tar xvf filebeat-5.4.0-linu ...
Added by simcoweb on Mon, 02 Dec 2019 07:22:28 +0200
Build Docker Container Actual Warfare
Bowen structureBuilding a Nginx containerBuilding Tomcat ContainersBuilding Mysql Container
Understanding Docker containers can be accomplished by Installation and simple operation To understand.
1. Building Nginx containers
Nginx is a lightweight WEB server as well as an excellent reverse proxy server. Nginx service takes up less memory and ...
Added by Delaran on Fri, 29 Nov 2019 21:21:14 +0200
Nginx -- rewrite application example
Application example 1. Domain name based jump
Now the old domain name www.old.com of the company needs to be replaced by the new domain name www.new.com, but the old domain name can not be abolished, and it needs to jump to the new domain name, and the later parameters remain unchanged.
1. Install Nginx service
[root @ localhost ~] ා RPM - ...
Added by Steffen on Wed, 27 Nov 2019 07:23:18 +0200
nginx web page optimization
Nginx web page optimization (1)
Configure Nginx hidden version number
In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities
View method
Use fiddler tool to view Nginx version number in Windows client
Use "curl-i web address" command to view in CentOS system ...
Added by Cleibe on Wed, 20 Nov 2019 13:12:56 +0200
docker quickly builds distributed crawler pyspider
brief introduction
pyspider is a powerful Web crawler framework in Python, and supports distributed architecture.
Why use docker to build pyspider
When installing pyspider, you have crawled through some pits. For example, when using pip install pyspider, the version of Python is required to be 3.6 or less, because async is already the keyword ...
Added by uniboy86 on Mon, 18 Nov 2019 20:48:04 +0200
Setting up a separate development environment of front and back end under Windows
Recently, the company plans to adopt the development mode of front-end and back-end separation, which means that the front-end and back-end code will be divided into two projects, so I plan to use nginx's reverse agent to build a development environment for subsequent development.
Install nginx
The first step, of course, is to install nginx. He ...
Added by departedmind on Sun, 17 Nov 2019 20:07:35 +0200