k8s storage volume
1.emptyDir storage volume
apiVersion: v1
kind: Pod
metadata:
name: cunchujuan
spec:
containers:
- name: myapp
#Define the first container to display the contents of the index.html file
image: ikubernetes/myapp:v1
imagePullPolicy: IfNotPresent
volumeMounts:
#Call Storage Volume
- name: html
#Use the name of the ...
Posted by abhikerl on Thu, 26 Dec 2019 18:11:57 -0800
nginx reverse proxy configuration and common instructions
nginx.conf default server configuration:
server{
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
}
When the location is configured, the subdirectory is preferred, and the default root ...
Posted by dgreenhouse on Wed, 25 Dec 2019 00:44:45 -0800
FasterDFS basic configuration installation
Basic overview
FastDFS is an open-source lightweight distributed file system, which manages files. Its functions include 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 based on documents, such as album w ...
Posted by rickbond79 on Tue, 24 Dec 2019 04:24:37 -0800
Docker Three Swordsmen-docker-compose
1. Introduction to Docker-Compose
Compose is a tool for defining and running container docker applications.With Compose, you can use YAML files to fit all the services your application needs.Then, with one command, you can create and start all services from the YAML file pairing.Then you need to understand the basic syntax of YAML files.
Basi ...
Posted by jimdelong on Mon, 23 Dec 2019 10:44:49 -0800
Docker Series 8:Docker file Directive Details
1. Instructions for docker file s
1. Instruction 1:FROM Instruction
FROM must be the first comment directive
Used to specify the base image, which can be any image
When using the FROM command, docker daemon automatically looks for the specified image on its own machine first, and if it does not, it looks for the image on docker hub or other s ...
Posted by steviewdr on Mon, 23 Dec 2019 10:12:34 -0800
Common text processing tools
paste -d"#"
Merges files horizontally, with a '?' as the separator
cut -d '%' -f2,3-5
Take the second column and three to five columns with the% separator
cat f1 f2
Merge files vertically
tac f1 f2
It's the opposite of cat
tr -s " " "%"
Space compressed to%
tr -s " "
Compress spaces only
[root@nginx ~]# ...
Posted by intellivision on Sun, 22 Dec 2019 14:10:06 -0800
Linux MySQL prompt: The server quit without updating PID file problem solving
The previous testing machine used by the company did not empty the original data, resulting in multiple environment versions of mysql, php, nginx, and apache. Because the php version is 5.2, it is too low for testing. I installed the integrated environment directly for the convenience of testing.
By checking mysql logs and l ...
Posted by johnb352 on Sun, 22 Dec 2019 10:55:54 -0800
Docker Separate Deployment LNMP
1. Preparing the environment
Installation of docker can be referred to Docker introduction and installation details Not here!
Case Requirements:(1) Each container needs to achieve data persistence;(2) Assign a fixed IP address to the container to prevent the IP address from changing after the container is rebuilt, causing unnecessary troubles; ...
Posted by TheUnknown on Fri, 20 Dec 2019 13:19:30 -0800
Nginx+Tomcat Load Balancing Cluster Setup
Introduction to Tomcat
Tomcat was originally developed by Sun's software architect James Duncan Davidson
The directories and files below the installation path after Tomcat is installed are important files for using or configuring Tomcat
Tomcat Important Catalog
bin: Stores Tomcat scripts to start and close
conf: Store different Tomcat confi ...
Posted by ATLien on Fri, 20 Dec 2019 12:59:55 -0800
Configuring uwsgi load balancing with nginx
How to use uwsgi to run web services is not covered here
See nginx configuration directly
# No load balancing
server {
listen 9000;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers Authorization,Origin,X-Requested ...
Posted by Smeep on Fri, 20 Dec 2019 11:42:55 -0800