C language computing is compiled on the day of the year and under Linux

catalogue 1, C language calculates the day of a year 2, Compiling C language program under Linux   1, C language calculates the day of a year   The general idea of this program is: day = (requested date month - 1) * 31 + date of requested date - redundant days (because the days of each month are different, the previous * 31 will m ...

Posted by lbaxterl on Sat, 25 Sep 2021 04:10:33 -0700

Network file system (NFS)

Network file system (NFS) Introduction to nfs NFS (Network File System), namely Network File System, is one of the file systems supported by FreeBSD. It allows computers in the network to share resources through TCP/IP networkIn NFS applications, local NFS client applications can transparently read and write files on remote NFS servers, just ...

Posted by jmosterb on Sat, 25 Sep 2021 01:40:25 -0700

Samba server configuration (instance resolution)

Samba server configuration (instance resolution) 1, Configuring samba shared server on rhel 8 ① Viewing samba package information [root@localhost ~]# yum info samba #Viewing samba package information Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Manage ...

Posted by sangamon on Sat, 25 Sep 2021 01:37:11 -0700

ubuntu monitoring keyboard input

background         In the project, I used a hook function of windows, mainly the keyboard hook, which is very interesting. So I want to see the hook function under linux and realize a function of monitoring keyboard input, so that I can shield the input of some keys. process         I only have a ...

Posted by aragon1337 on Fri, 24 Sep 2021 07:22:13 -0700

select model for IO reuse

IO multiplexing IO reuse is a very important technology in linux system. I think the understanding of reuse here is that a single process or thread can process multiple IOS in a certain mode, rather than one process or thread only processes one io. Generally, when processing socket communication, a thread or process either blocks and waits the ...

Posted by paddycallaghan on Thu, 23 Sep 2021 17:54:44 -0700

Windows Terminal installation and beautification

1 Overview In my last article, we learned how to quickly build various development environments through Scoop and WSL, but did you find that the default powershell is ugly and difficult to use. Today, I teach you how to install and beautify Windows Terminal. Windows Terminal is an ideal matching for WSL2. It is fast, configurable and beautiful ...

Posted by EverLearning on Thu, 23 Sep 2021 17:49:01 -0700

Automatic master-slave switching of redis

Setting redis master-slave is mainly used to edit configuration files on different hosts We have three main engines ready server1, server2 and server3 respectively The master-slave automatic switching of redis is based on sentinel 1. The Sentinel system of Redis is used to manage multiple Redis servers (instance s). The system performs the ...

Posted by CWebguy on Thu, 23 Sep 2021 07:01:18 -0700

Semaphore of FreeRTOS

1, Semaphore introduction Semaphores are an important part of the operating system. Semaphores are generally used for resource management and task synchronization. Semaphores in FreeRTOS are divided into binary semaphores, counting semaphores, mutually exclusive semaphores and recursive mutually exclusive semaphores. Different semaphores have ...

Posted by rvpals on Wed, 22 Sep 2021 23:23:07 -0700

The five minute package teaches you to write Shell scripts

Java developers must have come into contact with the Linux system, so many times during the development process, we break our project into a jar package or war package, upload it to the specified directory of our server through XFTP, and then run the startup script at one end, Make our project accessible, like. / sh service.sh start, and then s ...

Posted by pages on Wed, 22 Sep 2021 07:14:50 -0700

linux compression and decompression

pack Command:[ root@localhost ~]#tar [options] source file or directory   Common: tar -cvf   optionmeaning-cPackage multiple files or directories.-AAppend the tar file to the archive file.-f package nameSpecifies the file name of the package. The package extension is used to identify the format for the administrator, so you must sp ...

Posted by savingc on Wed, 22 Sep 2021 00:34:45 -0700