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
1. Introduce
When maintaining a Linux server, it is often necessary to look at the logs of the various services in the system to check the running state of the server. such as login history, mail, software installation and other logs. It's very
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
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
Linux memcache server-side installationServer side is mainly installed Memcache server side, the latest version is memcached-1.3.0.Download: http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gzIn addition, Memcache used libevent This library
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.
Although you have jail me into a specific environment through namespace, the processes I use in the CPU, memory, disk, and so on, can actually be arbitrary. So, we want to limit or control the resources used in the process. That's why Linux cgroup
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.
Today, my varnish carried out a small pressure test, 40s 8000 concurrency, no failure, an estimate can withstand a greater concurrency, not to mention varnish, I recently found a high percentage of squid profile, of course, squid3.0 configuration
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.
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:
#
Why do you want performance tuning?
Most Linux distributions are designed to be fully compatible with most computers in the marketplace. This is a fairly mixed set of hardware (hard drive, video card, NIC, etc.). So Red Hat, Suse,mandriva and some
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
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
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
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