1. In what scenarios should level trigger or edge trigger be used? When the amount of data is relatively small and the performance is relatively high, we generally use edge triggering. (How do we divide the size of the data? When the buffer cannot be read at one time, it is large data, and if […]
Tag: server
Build a Sftp server based on CentOS7.9 (with user script creation)
background: · Existing methods: The company transmits the research and development data to the external cooperative company through the FTP server, and the external company transmits the data to the company; Employees download the data given by the administrator on the extranet, or transfer the data to the company · Question 1: Existing FTP servers […]
Nodejs server-side MVC architecture
Foreword I shared an article on the interaction between Nodejs and MySQL database before. This article mainly talks about how to use the mysql module. Today I am going to share a Nodejs server-side MVC architecture, through the API provided by the server to complete the CRUD operation of the database. Introduction to MVC MVC […]
Downloading and decompression of compressed files through the minio server
1: Download the compressed file to the local server //Download the compressed file public static void main(String[] args) {<!– –> try {<!– –> // Initialize the MinIO client MinioClient minioClient = MinioClient. builder() .endpoint(“http://” + “192.168.16.188:9000”) .credentials(“admin”, “admin123456”) .build(); // Download the compressed file to the local file system, a temporary file generated in temp […]
asio(12), asynchronous tcp, udp server
Official website tutorial: https://think-async.com/Asio/asio-1.26.0/doc/asio/tutorial/tutdaytime7.html asio asynchronous tcp, udp server int main() {<!– –> try {<!– –> asio::io_context io_context; We will first create a server object to accept TCP client connections. tcp_server server1(io_context); We also need a server object to accept UDP client requests. udp_server server2(io_context); We’ve created two io_context objects that do a lot of […]
PingCAP Huang Dongxu: Serverless is the future form of database
Author: Community Assistant Original source: https://tidb.net/blog/1ff45c7d Thirty years ago, to write code, programmers had to use complex assembly language. But today, few programmers know how to use assembly language, and simpler high-level languages such as C++, C#, JAVA, Rust, and Go have become the mainstream of development. As the technology wave changes, each generation of […]
Troubleshooting ideas and steps for abnormalities and freezes in Linux servers
Table of Contents foreword 1. View memory usage Second, check the disk usage Three, top command 3.1 jmap analyzes heap memory configuration information and usage 3.2 jstack analyzes the execution of threads 3.3 jstat to view the percentage of the heap in each area 4. Other instructions Summarize Foreword There are many reasons for Linux […]
Realization of TCP communication based on QT (TCPServer and TCPClient)
Article directory 1. Software introduction 1.1 TCPServer server interface 1.2 TCPClient client interface 1.3 The server and client establish a connection and communicate with each other Two, QT implements TCPServer and TCPClient 2.1 TCPClient client 2.1 TCPServer server 3. Code sharing Recently, because of the need to use the test TCPServer (TCP server) and TCPClient […]
Use py and flask to browse the server system directory, and log files can be displayed on the web page in real time
I hope to see the log in color, and I hope to see it from the browser instead of connecting to the machine. Browse the folders of the system, scan + the hierarchical name of the system folder as url routing, you can deeply see the folders at any level on the machine, and realize […]
A large number of log viewing commands for Linux servers to quickly locate errors
Quickly locate errors for a large number of logs tail -f catalina.ou (dynamic view log) cat catalina.ou (open log file from scratch) You can use >nanjiangtest.txt to output a new log to view [root@yesky logs]# cat -n catalina.out |grep 717892466 >nanjiangtest.txt tail/head simple command to use: [root@yesky logs]# tail -n number catalina.out Query the log […]