Since the use of PHP-SYSLOG-NG monitoring log information, often found that some of the past will ignore the error information, is currently being resolved. One of the errors occurred when I logged on to the server using the key via SSH, and the log
Add a normal new user to Linux, and a superuser (also known as "root") is a special account that has the power to modify any file in the system. In daily work, it is best not to use the Super user account to enter the system, because any error
This article describes how to use backup scripts and commands and commercially available software to protect disk data securely and efficiently in a Linux environment.
The backup and recovery system assumes the function of ex ante backup and
The system provides the communication system between the users, when the user opens the terminal registers the login to discover the system to give the following information:
The code is as follows:
You have mail.
The user can then read the
You can bind the remote server port Remote_port to the local port, where-c is data compression,-f is the background operation, only when the user name password is prompted to the foreground. -N is not a remote command, which is useful in the case of
To run a simple script
Suppose you have a script called:/usr/local/bin/myscript, you want to run every hour.
Service files
The first step is to create a service file that is placed in the appropriate system directory according to your Linux
For Linux administrators sometimes make small Linux management common mistakes, but for some of the administrators who just stepped into Linux management, if not avoid some common mistakes, it is easy to the organization's network or system security
SendMail component not installed or started
1. Reinstall the SendMail component, I use the CentOS, install with the following command
Yum Install SendMail
2. Restart the PHP-FPM process using the following command
/ETC/INIT.D/PHP-FPM restart
3.
Nylas N1 is a flexible and scalable new open source e-mail client, the San Francisco Mail program that focuses on security, intuitive interface design, and applies to all popular mainstream operating system platforms (including WINDOWS/LINUX/MAC).
A. fdisk command
FDISK is a disk partitioning command that uses detailed commands to view related documents
Use command fdisk-l to view the partition status of the current disk
Two. DF command
DF is from the Coreutils software package, when
This command can unlock the Linux file's super-privilege limitExtract:Chown the owner of the specified file to the specified user or group, the user can be either a user name or a user ID; a group can be a group name or a group ID; a file is a space-
2017-03-23:All commands can be used * *--help to view Help
CD-To-Change directory
Function: Switch directory
Format: CD [catalogue]
Usage
CD ~ Current User Directory
CD/root directory
Cd..
---restore content starts---how to automatically execute an execution script on Linux at system startup
If the script is executed immediately, the script can be written to rc.local;
If the user log on after the automatic execution of
1. System time and hardware timeThere are two clocks of hardware clock and system clock in Linux. The hardware clock is the clock device on the motherboard, which is usually the clock that can be set on the BIOS screen. The system clock refers to
To configure the DNS approximate steps:1. Configure the IP address, and DNS points to itself.2. Turn off the firewall and turn off SELinux.3. Mount and install the bind package4. Copy the configuration file5. Configuring named.conf Primary Files6.
Before configuring the bind DNS server software: Bind is an open source DNS (domain name System) protocol implementation that contains all the software required to query and respond to domain names. It is the most widely used DNS server on the
I. Network configuration modifications1. Temporary modification (Ip,dns,netmask,gateway)Temporarily modify the network configuration, as long as it does not involve the modification of the configuration file, after the network service restarts, all
To forget the FTP password modification method:1. Log in to the serverCd/etc/vsftpdCat FtpusersFind the corresponding FTP username (if the user name also forgets so cd/etc then cat passwd View the user and the corresponding admin directory)passwd
Enable Nic enable DHCP in Centos 7 to automatically obtain IP addresses
By default, Centos7 does not enable Nic configuration. That is to say, all network interfaces are available and the Internet cannot be accessed. Because I am locally installed,
Basic Linux vim operations and basic Linux vim operations
1. display the number of rows
Input
: Set number or: set nu
2. move the cursor
H. move the cursor to the left.
J move the cursor downward
K move the cursor up
L move the cursor to the right
N
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