Ubuntu tornado Python 3.7.5 nginx supervisor deployment web api
Environmental Science:
1. Ubuntu server
2,python3.7.5
install
1,python3.7.5
The installation is relatively simple, and the process is roughly. / configure - > make & & make install - > create python soft connection pip soft connection
It's easy to install. Only when the installation is completed and running can we encounter all ki ...
Posted by james13009 on Wed, 11 Dec 2019 01:06:18 +0100
Use swoole in ThinkPHP5
(Note: This is just the beginning of the combination of swoole and TP5. I think there will be more holes to step on when they are deeply integrated! ) First go TP official website Download framework
General overview:
Create a new server folder in the root directory of the project,The content of http_server.php is as follows (it can be direc ...
Posted by bernard_hinault on Tue, 10 Dec 2019 09:51:17 +0100
Attachment 012.Kubeadm deployment high availability Kubernetes
I. Introduction to kubeadm
1.1 overview
Refer to attachment 003.Kubeadm deployment Kubernetes.
1.2 kubeadm function
Refer to attachment 003.Kubeadm deployment Kubernetes.
II. Deployment planning
2.1 node planning
Node hostname
IP
type
Operation service
k8smaster01
172.24.8.71
Kubernetes mas ...
Posted by mastermike707 on Tue, 10 Dec 2019 05:58:14 +0100
pod health examination for k8s detection mechanism
One: Source of demand:
First, let's look at the source of the entire need: how do you ensure the health and stability of your app when it's migrated to Kubernetes?In fact, it is very simple and can be enhanced in two ways:
1. First, improve the observability of the application;2, the second is to improve the resilience of the application.
Obse ...
Posted by Zmodem on Mon, 09 Dec 2019 10:28:44 +0100
Application Policy Rules for k8s Autonomous pod
Autonomous pod application
Most of the pods we come into contact with are controller-controlled pods, so today we are talking about autonomous pods (that is, pods created by yaml files), which are pods that control themselves and prevent them from being killed by the controller.
1. First, let's create a pod resource object for nginx:
Before cr ...
Posted by Mijii on Sun, 08 Dec 2019 18:08:37 +0100
Nginx access log and cutting, static files do not record log and set expiration time
Nginx access log
View the current log format in the main profile
Search log? Format
[root@test-a /]# cd /usr/local/nginx/
[root@test-a nginx]# vim conf/nginx.conf
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 3526;
server_names_hash_max_size 4096;
log_format combined_realip '$remote_addr $http_x_forwa ...
Posted by plus2net on Sun, 08 Dec 2019 00:34:19 +0100
Build your own git server with Gogs
1. Configure the environment required by Gogs
Install nginx
sudo apt-get install nginx
Install git
sudo apt-get install git
Install MySQL
sudo apt-get install mysql-server # Install mysql
mysql -u root -p # Connect to database
SET GLOBAL storage_engine = 'InnoDB'; # Set the database mode to InnoDB
CREATE DATABASE gogs CHARACTER SET utf ...
Posted by yonta on Thu, 05 Dec 2019 01:50:22 +0100
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
Mounting disk error "Structure needs cleaning"
Step 1: view the file system
Several ways to view mounted partition and file system types
1) df-T can view the mounted partition and file system type
[root@localhost nginx]# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/centos-root xfs 28289540 5970724 22318816 22% /
devtmpfs ...
Posted by itsmani1 on Sun, 01 Dec 2019 02:59:13 +0100
apache, nginx configure openssl self signing certificate
1. Generate private key
Generate rsa private key, des3 algorithm, 2048 bit strength. server.key is the file name of the secret key. You need to provide a password of at least 4 digits.
[root@localhost ~]# openssl genrsa -des3 -out server.key 2048
Generating RSA private key, 2048 bit long modulus
................................................ ...
Posted by beginPHP on Sat, 30 Nov 2019 06:05:48 +0100