Brief introduction
For the choice of Linux as an application platform for small and medium-sized enterprises or Web sites, often face how to achieve remote Data backup or Web site mirror image of the problem, although there are commercial backup and
The UNIX system records these three different times for each file, the first one is mtime, that is, the modification time. Whenever the contents of a file are changed, the value of the Mtime is modified accordingly. The second one is Atime, which is
Semaphore, sync these nouns have been said in the process of communication, where they mean the same, except that the synchronized objects are different. However, the interface of the semaphore described below is used for the semaphore of the thread,
By step:
Operating Environment Centeros 6
* First run the following command:
cat /dev/net/tun The return must be:Cat:/dev/net/tun:file Descriptor inRun:cat /dev/pppThe return must be:Cat:/dev/ppp:no such device or address
If the above return is
Foreword: The general Novice does not adapt the LINUXVPS command to build the station, the loading panel is necessary, the KLOXO function is formidable most importantly is supports the automatic backup to be good protects the data not to lose. The
Linux to open URL rewriting method:1, open Apache httpd.conf (usually in the/etc/httpd/conf directory)
2, find #LoadModule rewrite_module modules/mod_rewrite.so Remove the front of the #
3, to find allowoverride None changed to allowoverride all,
Some Linux distributions provide GUI programs for system monitoring, such as SUSE Linux has a great and professional tool yast,kde the KDE System Guard is also excellent. Of course, to use these tools, you have to operate in front of the server, and
In Linux we can convert a large-capacity disk into a GPT format first. Because the GPT-formatted disk is equivalent to the 4*16 byte of the original MBR disk that originally retained 4 partition table, only the first 16 bytes are left, others are
In general we use the manual backup VPS site on it. Generally old left like 1 weeks to back up the site, such frequency should still be good, for yesterday to share the "database/website files Automatic Timing Backup" method is more important for
Linux mount U disk steps are as follows
1: The USB disk plug into the interface, check whether inserted good
2: Check partition and USB device information with fdisk command
[Root@wgods ~]# Fdisk-l
disk/dev/sda:1000.2 GB, 1000204886016 bytes255
When an executable file is already open for write, the executable file at this time is not allowed to be executed. Conversely, when a file is executing, it is not allowed to be open at the same time in write mode. This constraint is well understood
This technique is very practical. In particular, remote login to a host a, and then from a landing to B, if you want to do some operation on a, you have to open a finalEnd, very troublesome.
When you use SSH to log on to a remote host from this
Description: My host for the Centos system, step-by-step instructions are written in the annotation inside, easy to read.
VI apachemonitor.sh #!/bin/bash url= "HTTP://127.0.0.1/" Curlit () {curl–connect-timeout 15–max-time 20–head–silent
The first part: Linux Rights ManagementI. Basic RIGHTSLinux privilege mechanism adopts UGO mode. where u (user) indicates that the owning user, G (Group) indicates that the owning group, O (Other) is in addition to the owning user, the owning
Log files are an extremely important tool for Linux system security. the Logrotate program is a log file management tool. Used to split the log file, delete the old log file, and create a new log file that acts as a "dump". You can save disk space.
Reprint: http://www.myhack58.com/Article/html/3/8/2017/83236.htm0x00 Operating system relatedOperating system Type version
Cat/etc/issue
Cat/etc/*-release
Cat/etc/lsb-release # Debian
Cat/etc/redhat-release # Redhat
Kernel
The first way to read all the files is to use an iterative approach, first use the return value of function A to determine if there are files in the directory, and then return the value is valid in the loop with function B until the return value of
Linux-command learning-df, linux-command-df
1. the df command is used to view the storage of the file system disk of the Linux server. You can use this command to obtain the disk space and the remaining space.
2. du: displays the disk space used
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