Linux deployment django + uwsgi + nginx

Because I have developed django project, I will not introduce how to develop django project here. Focus on the problems and solutions encountered in django deployment. 1. Install django pip3 install Django 2. Install Django REST FrameWork pip3 install djangorestframework 3. Install uwsgi pip3 install uwsgi Profile (I ...

Posted on Mon, 27 Jan 2020 07:35:35 -0800 by jeffery

Linux 2.6.9 kernel source code analysis -- eventpoll

Linux 2.6.9 kernel source code analysis - eventpoll eventpoll epoll is divided into three system calls: long sys_epoll_create(int size); long sys_epoll_ctl(int epfd, int op, int fd, struct epoll_event __user *event); long sys_epoll_wait(int epfd, struct epoll_event __user *events, int maxevents, int ti ...

Posted on Mon, 27 Jan 2020 07:00:29 -0800 by nikky_d16

Network programming for java learning

Article directory TCP communication program Summary Class Socket Construction method Member method Simple TCP network program TCP communication analysis diagram Client sends data to server Server writes back data to client Comprehensive case File upload case File upload analysis diagram Basic ...

Posted on Mon, 27 Jan 2020 02:26:47 -0800 by munkee

Basic framework, key data structure and interface of libmodbus source code analysis

In previous articles: libmodbus protocol stack 1: detailed migration steps (configuration, generation) under Linux libmodbus protocol stack 2: development case of modbus RTU master under Linux libmodbus protocol stack 3 -- development case of modbus RTU slave under Linux libmodbus protocol stack ...

Posted on Sun, 26 Jan 2020 01:59:35 -0800 by Stickdragon

Easy to use guide for flask socketio

Technology blog: https://github.com/yongxinz/tech-blog At the same time, welcome to pay attention to my WeChat public number AlwaysBeta, more wonderful content waiting for you to come.Flask socketio enables flask applications to access low latency two-way communication between clients and servers. Clien ...

Posted on Tue, 21 Jan 2020 02:31:53 -0800 by intech

java network programming

In reality, we restrict all aspects of our lives by unified measures and standards. In the virtual world, we must also have such a set of measures to balance the network world. At this time, we use protocols, including TCP protocol and UDP protocol.java.net package provides support for two common networ ...

Posted on Tue, 21 Jan 2020 02:12:35 -0800 by MarcAndreTalbot

The communication process and schematic diagram from client to server are very good

Learning anything, as long as we understand its principle, will be similar. Now I want to summarize the communication process from client to server. Only when we understand the principle, can we understand that when the wrong problem occurs in our program development process, we can better solve the ...

Posted on Sat, 18 Jan 2020 23:43:09 -0800 by dcuellar

TCP concurrent server based on Multithreading

Implementation steps of multithreaded TCP concurrent server:1. Create a socket2. Bind the IP address and port information to the socket, and use the bind() function 1)IP address 2)bind3. Set the maximum number of connections allowed, and use the function listen()4. Wait for the connection request fr ...

Posted on Sat, 18 Jan 2020 09:55:44 -0800 by bonaparte

Python multitasking - threading

Multitask There are many scenes where things happen at the same time, such as driving with hands and feet, singing and dancing at the same time To simulate multitasking in a program: import time def sing(): for i in range(3): print("Singing...%d"%i) time.sleep(1) def dance(): ...

Posted on Fri, 17 Jan 2020 06:12:17 -0800 by atstein

[apue] started as a daemon, Unix Domain Socket failed to listen?

A short time ago, I wrote a small demo that passed file handle, including server side and client side, and communicated with each other through Unix Domain Socket. In the normal mode, the two sides can establish a normal connection. When the server is started as a daemon, the first start is successful, and then it is started again. The listen w ...

Posted on Fri, 17 Jan 2020 05:00:55 -0800 by mcog_esteban