Linux notes from madness

Linux Walking into Linux system Generally speaking, there are three ways for users to log in Command login ssh login Graphical interface login The highest authority account is root, which can operate for everything! Shut down Shutdown command shutdowm sync Synchronize data from memory to hard disk shutdown Shutdown command, you ca ...

Posted by Nexus10 on Wed, 27 Oct 2021 23:10:38 -0700

Setting timer and POSIX timer functions

The most commonly used timer on Linux systems is the setitmer timer settimmmer prototype: int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue); which Is timer type, setitimer Three types of timers are supported: ITIMER_REAL: Based on the real time of the system, it sends out SIGALRM Signal. ITIMER_VIRTUAL: -Bas ...

Posted by jpmm76 on Wed, 27 Oct 2021 21:57:45 -0700

Application of cookies and sessions

Application of content Cookie and Session Servlet common objects ServletConfig: static dataServletContext: shared static data. Share dynamic data. Share file data.HttpServletRequestHttpServletResponseresponse.setContentType("text/html");response.setCharacterEncoding("utf-8");response.sendRedirect("ServlectDengLu"); >>Reply management ...

Posted by pistolfire99 on Wed, 27 Oct 2021 07:46:50 -0700

MySQL incremental backup and recovery

catalogue preface 1, MySQL incremental backup 1. Concept of incremental backup 2. Advantages and disadvantages of incremental backup 3. Significance of binary log backup 4. Realize incremental backup 2, Incremental recovery 1. Incremental recovery mode 2. Recovery of changed data after loss of full backup 3. Recover all data lost afte ...

Posted by sseeley on Wed, 27 Oct 2021 03:28:20 -0700

nginx configuring load balancing

nginx load balancing Based on the existing network structure, load balancing provides a cheap, effective and transparent method to expand the bandwidth of network equipment and servers, increase throughput, strengthen network data processing capacity, and improve network flexibility and availability. With the development of the website a ...

Posted by jredsmyth on Wed, 27 Oct 2021 00:55:29 -0700

Working principle and configuration of nginx

Working principle and configuration of nginx Module and working principle of nginx Nginx consists of kernel and modules. Among them, the design of the kernel is very small and concise, and the work completed is also very simple. Only by looking up the configuration file, the client request is mapped to a location block (location is an ins ...

Posted by srikanthiv on Tue, 26 Oct 2021 05:58:40 -0700

Server sent events (SSE) & EventSource client use and server basic implementation (based on Node.js)

objective The traditional Web front and back communication is mainly carried out by HTTP. Usually, the foreground actively requests to the background for what it needs, and the background cannot directly send data to the front. Usually, if the background data changes frequently, the foreground mainly depends on polling or long connection. ...

Posted by phpbeginner0120 on Mon, 25 Oct 2021 20:04:23 -0700

curl usage guide

brief introduction curl is a common command-line tool for requesting Web servers. Its name means the URL tool of the client. Its function is very powerful, with dozens of command line parameters. If you are proficient, you can completely replace graphical interface tools such as Postman. This paper introduces its main command line paramete ...

Posted by asmon on Mon, 25 Oct 2021 18:31:53 -0700

Working principle and configuration of nginx

Working principle and configuration of nginx Module and working principle of nginx Nginx consists of kernel and modules. Among them, the design of the kernel is very small and concise, and the work completed is also very simple. Only by looking up the configuration file, the client request is mapped to a location block (location is an ins ...

Posted by ChrisMayhew on Mon, 25 Oct 2021 01:59:12 -0700

Build a live broadcast server nginx + rtmp on Mac

Introduction to live broadcasting technology The live broadcasting technology covers a wide range. Now, it is widely known that the live broadcasting technology will be used in personal live broadcasting of video websites, mobile live broadcasting, security camera monitoring, etc. Introduce various technical links in the live broadcast proc ...

Posted by DedoMraz on Sat, 23 Oct 2021 20:49:13 -0700