How to deploy Django and run it
nginx+uwsgi+Django installation
1. Introduction
linux edition Centos7.5
uwsgi-2.0.20
Django-3.2.9
python3.9.0
nginx-1.16.0
2. Install nginx
For the connection of installing nginx, please refer to this: https://blog.csdn.net/weixin_44217786/article/details/121608813
3. Install uwsgi
Download the official website: https://uwsgi-docs.readth ...
Added by AXiSS on Wed, 01 Dec 2021 10:50:02 +0200
21-11-29 structure and document operation
How to define a structure type?
struct Student
{
int num;
char name[2];
int age;
}**;**
The first letter is capitalized, and the structure name must reflect the function of the structure (self annotation) Function cannot be saved in structure: Solution: save function pointer example:
struct Student
{
int num;
char name[2];
int age;
void ( ...
Added by gnu2php on Wed, 01 Dec 2021 10:36:45 +0200
02 architecture 03.3 detailed configuration of nginx
Static page access speed of Nginx and Tomcat
nginx Is all web The fastest service to process static resources
Configure Nginx page
#Configure nginx
[root@web01 ~]# vim /etc/nginx/conf.d/ab.linux.com.conf
server {
listen 80;
server_name ab.linux.com;
location / {
root /code/ab;
try_files $uri $uri/ @tomcat;
...
Added by Texan on Wed, 01 Dec 2021 05:20:27 +0200
docker installs nginx and configures access via https
Keywords: nginx, docker, cannot load certificate, ssl
1. Download the latest docker image of nginx
$ docker pull nginx:latest
2. Start nginx container
Run the following command to start nginx container
docker run --detach \
--name wx-nginx \
-p 443:443\
-p 80:80 \
-v /home/nginx/data:/usr/share/nginx/html:rw\
...
Added by simflex on Wed, 01 Dec 2021 01:40:46 +0200
Detailed explanation of Linux character device driver VI (RGB lamp driver realized by device tree)
preface
Please read: Detailed explanation of Linux character device driver Detailed explanation of Linux character device driver II (using device driver model) Detailed explanation of Linux character device driver III (using class) Detailed explanation of Linux character device driver IV (using its own xbus driver bus) Detailed explanation of ...
Added by JohnMC on Tue, 30 Nov 2021 19:55:11 +0200
mysql index and transaction details
catalogue
1, Introduction to mysql index
1. The concept of index
2. Basic principles of index creation
3. Index creation and classification
1. General index
2. Unique index
3. Primary key index
4. Combined index (single column index and multi column index)
5. Full text index (FULLTEXT)
4. View index
5. Delete index
2, Introduction t ...
Added by siri on Tue, 30 Nov 2021 14:16:22 +0200
linux summary small problems
Learning objectives: linux learning record
21.9.25
1. Terminal copy and paste shortcut key
: Copy: Ctrl+Shift+C paste: Ctrl+Shift+V Daily operation Ctrl+C | V
Ubuntu 16.04 opens multiple terminals, one terminal has multiple small windows, and enlarges and shrinks the terminal font
Ctrl + Shift + T, one terminal opens multiple small termina ...
Added by franck on Tue, 30 Nov 2021 09:52:22 +0200
Installation and deployment of Ansible
1. Installation of Ansible
epel source dnf install ansible -y ansible --viersion
Basic information of ansible: /etc/ansible/ansible.conf ## Global configuration file, rarely modified by default /etc/ansible/hosts &nb ...
Added by damnsaiyan on Mon, 29 Nov 2021 16:17:02 +0200
2021-11-29 the 38th step towards procedural ape
catalogue
1, linux overview
2, Installing VMware
3, Installing LINUX
4, linux common commands
4.1 description of command format
4.2 three common commands
4.3 help command
4.4 document processing instructions
4.5 document viewing instructions
4.6 document search instruction
4.7 file (DE) compression instruction
4.8 time instruction ...
Added by programming.name on Mon, 29 Nov 2021 15:20:28 +0200
linux operating system: pipeline, project handover mechanism
Principle of anonymous pipeline
The following system call is required to create a pipeline
int pipe(int fd[2])
Here, we create a pipe and return two file descriptors, which represent both ends of the pipe. One is the read descriptor fd[0] of the pipe and the other is the write descriptor fd[1] of the pipe
Let's look at how it is implement ...
Added by tnylsej on Mon, 29 Nov 2021 02:09:05 +0200