By:kapil Sharma from Linux_month (a onine monthly Linux magzine)
Translation: F@tfox
This article describes how to make your Linux system reliable with basic security measures.
1. Bios Security
Be sure to set the BIOS password to prevent booting
Look at this crontab down here.
* * * * * * */usr/bin/python/home/zhangdapeng/del.py >/dev/null 2>&1
Generally safer, without disturbing the case is like this
But debugging is inconvenient, the error, do not know why the error, can't find the
Linux Apache virtual directory settings
Open the/etc/httpd/conf/httpd.conf file, find , and add the following code after :
#虚拟目录节点
code is as follows
copy code
#设置欢迎界面 directoryindex index.php index.html
I. Preparatory work
First of all, you need a stable foreign cheap vps, the old high recommended to the bricklayer, of course you have do such as faster and more expensive VPS on the exception, the Old high blog is built on this VPS.
How to get
What is swap memory (swap)?
Virtual memory is a technology of computer system memory management. It makes the application think that it has contiguous available memory (a contiguous complete address space), which is usually separated into multiple
In the virtualization and cloud computing and container ages, we migrated many of the applications run by physical servers to the Xen virtualized private cloud. This is the problem with the physical server migrating to the virtual server. Migrating
Function
Advantages
Simple configurationAccurate managementProcess Group ManagementRPC ExtensionsAPI supportFASTCGI Process ManagementEvent support (such as timed tasks)
Disadvantages
The managed process must be run by the foregroundWithdrawal
sudo a2enmod rewriteUnder lamp use pseudo static need to open Apache's rewrite module, enter above code can realize
But after testing or not, this time you can modify the Apache file
sudo emacs/etc/apache2/sites-available/defaultTo modify several
Solution:# Install Yum-complete-transaction (this is a program that can discover unfinished or interrupted Yum transactions)Yum-y Install Yum-utils# clear Yum CacheYum Clean All# run Yum-complete-transaction, clean unfinished
1: Soft LinkCommand: Ln–s/etc/inittab/test/inittab.softView: Ls–l/etc/initab/test/inittab.softFound a soft connection similar to Windows shortcut,-> represents the address of a real file2: Hard LinkCommand: Ln/etc/inittab/test/inittab.hardView: Ls-l/
Today, when you install CentOS5.5 on a virtual machine, you find that you run some very normal commands, such as Init,shutdown,fdisk:
bash:xx command not found.
The first thing to consider is whether or not the $path in root contains these
First, by entering Single-user mode, modify the password and log in again.First step:Reboot the system and press the "ESC" key in the upper-left corner of the keyboard before entering the system to enter the following page:
Then press E to enter
Tar is the most common packaging and compression tool under Linux, which plays a role similar to WinZip or WinRAR under Windows in Linux. Here is the tool's common command parameters and application examples:Main commands:-C Create Package-X
This article describes how to seamlessly and smoothly upgrade Nginx from 1.6.0 to Nginx 1.6.1.# Download the latest software[Root @ idoseek ~] # Cd/usr/local/src /&&Wget http://nginx.org/download/nginx-1.6.1.tar.gz &&Tar-zxvf nginx-1.6.1.tar.gz #
Free ssl certificate applicationApply for a Free SSL certificate from the http://www.wosign.com/Products/free_SSL.htm.Download www.111cn.net.zip, decompress the file, find for Nginx.zip, and decompress the file.Listen www.111cn.net_bundle.crt, 2_www.
Redirection standard output> Redirects the standard output (STDOUT) of the current command to a file or descriptor.The following example stores the lscommand output to the File.txt file.Ls> file.txt> File.txt lsIf the target file does not exist, it
Currently, VM instances are more and more widely used. System images of some VM instances do not automatically mount swap partitions, which will definitely affect the performance of the machines, The solution is as follows: 1. Some VM instance
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