linux File System Management Trilogy Two: Creating a File System

The meaning of creating a file system is to format a hard disk partition and create different file systems in different formats. Format: Low-level formatting: Performs before partitioning, mainly partitioning tracks of hard disks, etc. Advanced formatting: partitioned and executed to create a file system What you do when you create a file s ...

Posted by alcibar on Mon, 06 Jan 2020 09:26:44 -0800

Remember the blood case caused by a pass file handle (continued)

Following Remember a blood case caused by passing a file handle once After that, the demo triggered another blood case, which is now recorded below. This time I'm testing file handle transfer on linux, which does not have a STREAMS system. The handle is therefore passed using the control message part in sendmsg/recvmsg of the unix domain socke ...

Posted by srikanth03565 on Mon, 06 Jan 2020 08:52:54 -0800

[e220200101-1] Centos 7.x turns off firewall and SELinux

1, Preparations 1.1 server preparation Operating system: centos 7.x 1.2. Install the text editing tool nano # yum -y install nano 2, Turn off SELinux 2.1. View SELinux status 2.1.1. First method: view SELinux status # /usr/sbin/sestatus SELinux status:                 enabled SELinuxfs mount:                /sys/fs/selinux SELinux root director ...

Posted by rostros on Mon, 06 Jan 2020 01:12:22 -0800

Linux system sets nginx to boot automatically

Linux sets nginx to boot automatically First, create nginx startup script file under / etc/init.d cd /etc/init.d/ vim nginx Write the following code in the created nginx startup script file #!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # chkconfig: - 85 15 # description: Nginx is ...

Posted by gus on Mon, 06 Jan 2020 01:09:36 -0800

Linux view partition file system type summary

How to view the file system type of a partition in Linux? Here are several ways to view the file system type of a partition.     1: df -T command view     This is the simplest command. The file system Type is output in the Type column. Only the mounted partition and file system Type can be viewed. As follows:   [root@mylnx008 ~]# df -T /dev/sd ...

Posted by hdpt00 on Sun, 05 Jan 2020 19:49:24 -0800

nginx jump with parameters

//Original link: https://www.baidu.com/benefit_detail?slug=bankofchina-20170320 //Target link: https://www.test.cn/boc location ~ /benefit_detail { if ($args ~* "slug=bankofchina-20170320") { rewrite ^/benefit_detail /boc? permanent; } try_files $uri $uri/ /index.php?$query_string; } Common jump ca ...

Posted by dingus on Sun, 05 Jan 2020 18:42:22 -0800

Snapshot backup using Linux LVM

1. Overview of LVM The full name of LVM, Logical Volume Manager, is a flexible management mechanism for disk partitions provided by Linux.To understand LVM, you first need to start with a problem that Linux users often encounter, which is, "How should I properly evaluate the size of different partitions to appropriately allocate hard disk ...

Posted by jabbaonthedais on Sun, 05 Jan 2020 17:59:44 -0800

Linux-07-scheduled tasks

In Linux, the timing task is executed by crond program. It is started by default after power on like SSH, network, rsyslog and sysstat. By default, crond checks every other minute to see if there are any tasks to perform. If you have special needs, such as executing once a second, you need to write daemons. View the contents o ...

Posted by rascle on Sun, 05 Jan 2020 09:36:49 -0800

Spring Conditional annotation @ Conditional

Spring 4 provides a more general way to create condition based beans, using @ Conditional annotations. The following example will take different operating systems as conditions, and we will construct judgment conditions by implementing the Condition interface and overriding its matches method. For example, run the program under Windows to outp ...

Posted by aesthetics1 on Sun, 05 Jan 2020 06:28:13 -0800

Nginx Core Configuration Details

1 Global Configuration user nginx nginx; # Users and groups that initiate the nginx worker process, defaulting to nobody worker_processes auto; # Number of nginx worker processes started, default 1 worker_cpu_affinity 0001 0010 0100 1000; #Binding Nginx_as a process to the specified CPU core, the default Nginx is not to bind to the process. Bi ...

Posted by soldbychris on Sun, 05 Jan 2020 05:47:49 -0800