Script memory and CPU footprint is very low!
Answer the question when my script has been completed 60%, yesterday morning overtime completed, using the Orc parsing verification code, specify only the analysis of numbers!
Before using the need to
I/O problem is always a difficult problem to locate, today, the online environment encountered I/O caused by the CPU load problem, see the following this relatively good article, after dinner I still in and tomatoes and cucumbers on the road to lose
mkdir commands that we use a lot more when we operate Linux operations and Web deployments, primarily to create a directory folder that you specify. For example, Chiang Kai-shek in the previous blog article mentioned in the download data hard disk,
First, the phenomenon of problems
Now network has two virtual machine host 95% CPU in idle state, memory usage is not particularly high, and the host load average reached more than 40.
Second, the problem analysis
Method one, with parameters directly behind the command
Use the wget command to set up an HTTP proxy
wget http://www.baidu.com/-E use_proxy=yes-e http_proxy=yourproxy.com:port
Other additional parameters are necessary for downloading HTTPS files.
In the Linux Environment Performance optimization practice, Hugepage is a frequently mentioned method. Simply put, Hugepage is a way of using memory blocks on the Linux kernel. As an alternative to the traditional 4K page, Hugepage can improve the
In the use of Linux host, the general use of the environment are apache+php+mysql to use, in fact, with your use of PHP, Mysql does not matter.
The key is Apache settings, generally as long as the httpd.conf set up. Htaccess can be used normally.
RPM Execution Installation package
Binary package (Binary) as well as source code package (sources) two. The binary package can be installed directly on the computer, and the source code package will be automatically compiled and installed by RPM.
Nginx is actually just a reverse proxy server that receives the request to see if the current request is a. php file and, if so, to the php-fpm for processing, and then to the user after the result is obtained. So there are two permissions to
The problem should be that the/usr/home/boot partition disk detected a problem.
Give root password for maintenance
(or type control-d to continue): After entering the password, it appears:
(Repair filesystem) 1 #
Execute the following command:
#
If there is no FTP prompt:-bash:ftp:command not foundPlease install the FTP application first: Yum install FTP#ftp 127.0.0.1 21 Enter the FTP IP and port number of the remote space, carriage returnThen enter the user name and password according to
1. Allow to pass through a port at one end
Vi/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT (allow 80 ports through the firewall)
/etc/init.d/iptables restart
#最后重启防火墙使配置生效
Allow only specific IP access to a
A feature commonly used in Scheduled tasks, detailed below:
Start and stop of services
The cron service is a built-in service for Linux, but it does not boot automatically. You can start and stop a service with the following command:
Linux Code
/
We need to edit the file.
The code is as follows
Copy Code
/etc/init.d/networking restart
Locate the Ifcfg-eth0 file and duplicate a copy of the renamed Ifcgf-eth0:0″
The code is as follows
Iptables Shielded IP
The code is as follows
Copy Code
Iptables-i input-s 202.77.176.106-j DROP
An entire paragraph, the order from 192.0.0.1 to 192.255.255.254.
The code is as follows
Copy Code
using the Extundelete plugin
Suppose the deleted file is located in the/media/backup, and the mounted device is/DEV/SDA3.
First, mount the current disk again.
Then install the Extundelete dependent package,
The code is as follows
Change time zone to East 8, Shanghai
1 cp/usr/share/zoneinfo/asia/shanghai/etc/localtimeModify Host Name
1 #需要改下边这两个文件:
2 vim/etc/hosts
3 Vim/etc/sysconfig/networkView the number of connections per IP for a server to detect DDoS
1 Netstat-ntu |
The MV command is the abbreviation for move, which can be used to move files or rename files (rename), which is a common command under Linux, often used to back up files or directories.1 command format:MV [option] original file or directory
Recently, I've been working on porting Linux embedded systems on embedded boards, but I don't want to spend too much money on development boards. Then search the Internet for the relevant arm simulator. There are qemu,skyeye,armulator, etc., in
Linux info and Linuxinfo commands
What is Info? Info is a document format and a reader reading this format. We often use it to view the info document of Linux commands. It organizes several commands in the form of a topic so that we can read them.
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