Introduction: Docker is an open source application container engine that allows developers to package their applications and dependency packages into a portable image, and then publish it to any popular Linux or Windows operating system machine, and can also implement virtualization . Containers completely use the sandbox mechanism and will not have any interfaces with […]
Tag: connect
Practice test of millions of concurrent connections 01
The main purpose is to record a test of one million concurrent connections using the multi-channel IO multiplexing network programming skills of epoll + reactor learned earlier. This article is mainly about implementation and does not use complex data structures. The second part will use some data structure optimization. Code Just use a slightly modified […]
Network connection between k8s pods
k8s cluster: linode k8s cluster, one master and two slaves. The test takes busybox using wget to access nginxindex as an example. Kubectl connects k8s cluster Import configuration file information into local kubectl export KUBECONFIG=/path/to/your/kubeconfig.yaml Test 1. Access between pods in the same namespace Create busybox in the default namespace kubectl run -it –image busybox:1.28.4 […]
Python connection to MySQL database programming
Database programming is a critical part of interacting with the database and managing data in your application. MySQL is a popular relational database management system (RDBMS), and MySQL database programming is relatively easy in Python. This article introduces how to use Python for MySQL database programming, including operations such as connecting to the database, executing […]
Django file configuration, request object, connection to MySQL, ORM
Article directory Django static files and related configurations Static file preface Static file related configuration form form request object request request result GET request POST request pycharm connects to database Django connects to MySQL Introduction to Django ORM Django static files and related configuration In this blog I will introduce relevant knowledge through a user […]
Open BinLog and connect to the virtual machine canal
Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Article directory 1. What is canal? Canal working principle 2. Usage steps 1. Use docker to create a database container 2. Turn on binlog mode 3. Canal […]
01-PostgreSQL installation and remote connection
1. Windows installation PostgreSQL ①:Download 1. Official website download Address: https://www.postgresql.org/download/ Choose the corresponding system Click to download Select the version to download (I downloaded version 14.X here) Download completed 2. Network disk download Link: https://pan.baidu.com/s/1u3ZcgWb6Woh_0n0ZV2PG9A?pwd=Coke Extraction code: Coke ②: Installation 1. You can first create two folders to store the installation directory and data […]
Raspberry Pi connects to ordinary Mqtt server
Raspberry Pi connects to ordinary Mqtt server This article introduces how to use Python language to connect to a common MQTT server on the Raspberry Pi and perform dual-threaded message publishing and subscription. This tutorial will use the paho-mqtt library to complete communication tasks under the MQTT protocol, and is suitable for IoT projects and […]