Semaphore (semaphore) setIn a multitasking operating system environment, multiple processes or threads run concurrently, and multiple tasks may work together in order to accomplish the same goal, creating a synchronization relationship between tasks,
clearlog.sh#!/bin/shFind/usr/local/apache/logs-mtime + 30-name "*.log"-exec rm {} \;Description
Find:linux Find command, the user finds the file for the specified condition
/usr/local/apache/logs: The target directory to be cleaned
1. Start the system and select the second option and press the E key to enter edit mode2. Edit add at end of Linux16/vmlinuzinit=/sysroot/bin/sh3. Press CTRL +x to start the shell4. Mount the file system in writable mode:mount+o remount,rw /sysroot5.
The emergency tools under LinuxUnder Linux, the emergency point of view is nothing more than that, one is to see the performance (downtime, high CPU, high memory, high IO, high network communication), two look at the connection, three look at the
The PS command is the abbreviation for process status and is used to list the processes currently running on the system. The PS command lists the current snapshots of those processes, which are the processes at the time of the PS command, and if you
1. What is the grep commandgrep full Name Global search regular expression and print out of the line, fully search regular expressions and print out the linesis a powerful text search tool.2. Common usage1) Search for files, print lines containing
Linux Common directives:LS display file or directory ls-l list file details ls-a lists all files or directories in the current directory, including hiddenLs-al display detailed file information, including hidden files mkdir creating a directoryMKDIR-
At can execute only once, perform a specified task at a specified time, execute only once, and need to open the ATD process Anacron: Suitable for non-7x24 types of servers, day-cycle or after the system is powered on to perform tasks It periodically
Method 1: Linux version 3.10.0-327.el7.x86_64 ([email protected]) (GCC version 4.8.3 20140911 (Red Hat 4.8.3-9) (gcc)) #1 SMP Thu N OV 22:10:57 UTC 2015 CentOS Linux release 7.2.1511 (Core)[Email protected] ~]#Method 2:[Email protected] ~]#
1. Upload the installation package2. Unzip TAR-ZXVF zookeeper-3.4.5.tar.gz3. Change the name of MV zookeeper-3.4.5 Zookeeper14. Enter The zookeeper file to create The data file package, and use the memory mkdir5 Enter data and create the myID file
CdThe CD is the command that enters the Linux system directory folder, the absolute path and the relative path that can be entered
Cd/home Enter '/home ' directory 'Cd.. Return to the top level directoryCd.. /.. Return to the top level two
Linux disk mount takes three steps:(1) The disk is plugged into a USB port, and is recognized as SISC (Small computer system Interface, literal translation is "small computer system dedicated interface");(2) disk partitioning/formatting (specifying
User groupsEach user in Linux must belong to a group and cannot be independent of the group. Each file in Linux has the concept of owner, group, other group-Owner-Group-Other groups-Change the group where the user is locatedOwnerTypically the
First, the application scenarioQuota disk quotas are commonly used for mail user settings in the Mail service, and for users in the FTP, Samba file service.To know whether the system will support quota disk quotas, execute the following commands
Course Outline? Unix/linux Development History? Free software? Linux application areas? Linux Learning MethodsUNIX Development History(1) 1965, Massachusetts Institute of America (MIT),General Electric Corporation (GE) and Bell Labs in the
1. Preparatory workPlease refer to the history blog for the installation of Jdk+tomcat+nginx related configuration.2. Modify Nginx configuration fileModify the configuration file as follows:3. Modify the Tomcat configuration fileModify the
/bin:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!The bin is the abbreviation for binary, which holds the most frequently used commands.
/boot:Here are some of the core files used when starting Linux, including some connection files and image files.
Files and directoriesCd/home Enter/home directoryCd.. Return to the top level directoryCd.. /.. Return to the top level two directoryCD into the personal home directoryCD-Return to the last directoryPWD Display work pathls to view the files in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service