_ CONNECT ', '1m') dnl (set the maximum waiting time to 1 minute)
Define ('conftry _ NULL_MX_LIST ', true) dnl (if the MX record points to the local machine, sendmail connects directly to the remote host)
Define ('confdont _ PROBE_INTERFACES ', true) dnl (sendmial does not automatically regard the server's network interface as a valid address)
Define ('procmail _ MAILER_PATH ','/usr/bin/procmail') dnl (set the storage path of PROCMAIL)
Define ('Alias
I. Scheduled Tasks (i), Crond introduction
Crond is a daemon that is used to periodically perform certain tasks or wait for certain events under Linux, similar to Scheduled tasks under Windows, when the operating system is installed, the Service tool is installed by default and the Crond process is started automatically. The Crond process periodically checks to see if there is a task to perform and automatically executes the task if there are tasks to perform. (ii), task scheduling
The tas
directories at the same time, and the final destination is a directory that already exists, and all of the previously specified files or directories are copied to the directory. If you specify multiple files or directories at the same time, and the final destination is not an existing directory, an error message appears.3. Command parameters:Necessary parameters:-B Delete, overwrite previously established link-D allows super users to make hard links to directories-F Force Execution-I interactiv
1. What is a shell script?
It is a scripting language, not a programming language.
You can use some logical judgments, loops, and other syntax.
You can customize the sub-function, which is a collection of system commands.
Shell scripts enable automated operations, which greatly increase our productivity.
2. Shell script structure and execution method
Start line Specify Bash
Fundamentals of Shell ScriptingWriting specifications for 1.shell scripts2 variable and special variable application3 Local variables and global variables4 Test-judgment expressionIn some complex Linux maintenance efforts, a large number of repetitive input and interaction operations are laborious and error-prone.The benefits of scripting:Batch processing, automated completion of maintenance, reduce the burden of administrators.The Linux shell script
). Use XMLHttpRequest to send a call to the server. Wait for a fixed period of time (usually using the Javascript setTimeout Function) after the return, and then call it again. This is a very common technology. For example, most webmail applications use this technology to display emails when an email arrives.
This technology has advantages and disadvantages. In this case, you expect a quick response, just
1. Write a scriptThe script can accept more than one file path as a parameter;Displays the number of rows held by each file;Shows how many files have been executed for the number of rows this time.#!/bin/bashfor file in $*;Do lines= ' wc-l $file | Cut-d '-f1 ' echo ' $file has $lines lines. " Doneecho "$# files." Running results: [[email protected] test]# sh 1.sh
) Set the net.ipv4.tcp_challenge_ack_limit in /etc/sysctl.conf to a larger value (such as 999999999):Net.ipv4.tcp_challenge_ack_limit = 9999999992) load settings:Sysctl-p4, in Umount a disk, the system always prompt busy, the error is as follows:[Email protected] ~]# lsof +d/data2/COMMAND PID USER FD TYPE DEVICE size/off NODE NAMEBash 6646 push cwd DIR 202,80 4096 3145731/data2/mucs/logs[Email protected] ~
management, we habitually end the script file with. sh Vim first.sh Then, save exit!!! (at the time of programming, our first program is usually Hello world! , here we also as an example) Explain: First line: #!/bin/bash Specifies that the interpreter running this script is/bin/bash #表示这一行是注释, and then followed one! Represents this non-comment!!! Praise Line second to third: Comment information, indicating the function of this script When writing a larger script, if there is no good comment,
local Yum source
Pipe break: The correct output of command 1 as the operand of command 2 [[Email protected]]# ls | grep Fengtaotao requires that the command in front of the pipe character must have output [[Email protected]]# ll-a | Morp display the output of the ll-a if the command 1 must have the correct outpu
The terminal is the window where the user interacts with the shell environment, and most of the interaction results are displayed directly to the user from the terminal, so this is the basis for the friendly display results.1. Overview of CommandsECHO is the basic Terminal output command that directly enters the input parameters and the command format is as follows:echo [options] toBeOutputDetailed description is as follows:2. Description of character
Tags: http using strong data art CTIIn some cases, using limit 1 in an SQL statement can improve query efficiency if you know that there is only one query result.For example, the following user table (primary key ID, mailbox, password):CREATE TABLE T_user (ID int primary KEY auto_increment,Email varchar (255),Password varchar (255));Each user's email is unique, i
PS: Red font is an important part, look carefullyFirst, Shell features1. History view the command record, default records 1000;[Email protected] ~]# history 1 vim/etc/hosts 2 Ifconfig 3 cd/etc/sysconfig/network-scripts/ifcfg-4 CD/etc/sysconfig/network-scripts/ifcfg-eth0 5 ifconfig eth0 up......................../omitted [[email protected] ~]# Vim/etc/profile #可自定
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.