Write a simple web server

Minimalist version of web server based on Python 3. Used to learn HTTP protocol and WEB server working principle. The author has a superficial understanding of the working principle of WEB server, which is only based on personal understanding. There are many shortcomings and loopholes. The purpose is to provide you with a way to write web serve ...

Added by t31os on Fri, 21 Jun 2019 04:49:44 +0300

Construction and Deployment of ELK Platform for Open Source Log Analysis System

Construction and Deployment of ELK Platform for Open Source Log Analysis System  I. PrefaceLogs mainly include system logs, application logs and security logs. System operations and peacekeeping developers can log the server hardware and software information, check the configuration process of errors and the causes of errors. Frequent ...

Added by Nuggit on Fri, 21 Jun 2019 03:01:34 +0300

IO Concurrency Model

IO Classification IO Classification: Blocking IO, Non-Blocking IO, IO Multiplexing, Asynchronous IO, etc. Blocking IO 1. Definition: Block if the execution condition is not satisfied when performing an IO operation.Blocking IO is the default form of IO. 2. Efficiency: Blocking IO is a very inefficient type of IO.But because of its simplicit ...

Added by mimcris on Wed, 19 Jun 2019 20:55:11 +0300

Django deployment in Ubuntu 14.04.

Step one.   sudo apt-get update sudo apt-get upgrade Update first. The mainstream deployment of Django: nginx+uwsgi+django   Step 2, Install nginx sudo apt-get install nginx Install nginx. If you need to install the latest nginx, you need to download the source package from the official website for manual compilation. The approximate file struc ...

Added by importune on Sat, 15 Jun 2019 19:17:47 +0300

23 Design Patterns (6) - Adapter Patterns

Adapter mode 1. Overview 2. Use of adapter mode 3. Role in Patterns 4. Realization 5. Trade-off between class adapter and object adapter 6. Default adaptation mode 1. Overview The adapter pattern transforms the interface of one class into another that the client expects, so that two classes that could not work together because of ...

Added by jrolands on Sat, 15 Jun 2019 04:41:02 +0300

Talk about Alberta Linux 32

10.6 Monitor io performance iostat command The iostat command is used to monitor the usage of system input and output devices and CPUs.It features a report on disk activity statistics as well as CPU usage.Like vmstat, iostat has a disadvantage that it cannot analyze a process in depth, only the overall situation of the system. iostat -x [ro ...

Added by TLawrence on Fri, 14 Jun 2019 19:38:11 +0300

ssl protocol and open source implementation of openssl

ssl protocol Secure Socket Layer: Secure Socket Layer, ssl is a set of security protocols, which are called by application layer. When http calls ssl protocol, it is called https. When ftp calls ssl protocol, it is called sftp. lls is a collection of protocols, including: Handshake protocol: including negotiating security parameters and pas ...

Added by myflashstore on Tue, 11 Jun 2019 03:01:04 +0300

Analysis of Grays Anatomy Source Code

Knowing a problem, R recommended this online search tool, and then came down to use it, feeling good, know that Java is written, go to see the source code, lack of relevant knowledge, before and after a month or so to know its general principle, record and analysis to you, the first time no previous blog can refer to see the source code, inappr ...

Added by jeffkee on Mon, 10 Jun 2019 21:57:28 +0300

TCP socket communication

TCP socket communication How do processes communicate in the network? We know that there are many ways to communicate between local processes, such as pipeline, message queue, shared memory, synchronization and mutual exclusion. These methods require that the two processes of communication are located on the same host. So how to communic ...

Added by knnakai on Mon, 10 Jun 2019 05:01:42 +0300

select of I/O Multiplexing in Linux Communication Mechanisms

select function functions: The system provides select function to realize multiplexing input/output model. Select system calls are used to allow our program to monitor the state changes of multiple file handles. The program stops at select and waits until one or more of the monitored file handles have changed state. As far as file handles ...

Added by mauri_gato on Sun, 09 Jun 2019 01:24:35 +0300