Statistics on linux servers: 1) number of port 80 connections: www.2cto.com netstat-nat | grep-I "80" | wc-l12) count the number of httpd protocol connections ps-ef | grep httpd | wc-l13) and the number of connected connections. The status is
To use cat to count the ip address of an apache Log, extract the IP address with the highest access volume from the log. Use shell. Www.2cto.com logs are as follows (for example, the data volume is small): $ more aa.txt 127.0.0.1-frank [10/Oct/2000:
In linux, you can modify the kernel parameters during linux running without restarting the system. This is achieved through the/proc Virtual File System. Www.2cto.com/proc/sys stores most Kernel Parameters and is designed to be modified while the
On the linux character interface, set the Internet proxy. In the profile file, set the relevant environment variable www.2cto.com # vi/etc/profilehttp_proxy = http: // 192.168.20.20: 3128 # specify the proxy server address https_proxy = http: // 192.
The source command in linux is a built-in command of bash shell, which comes from C Shell. Another method of writing the www.2cto.com source command is the dot symbol, which is used in the same way as source and comes from the Bourne Shell. The
Case statement in shell: It can match the variable content with multiple templates, and then decide which part of the Code should be executed based on the template that matches successfully. Format of www.2cto.com: case matching mother board in
Svn command line batch Delete and batch add If svn command line is used, for example, in a linux terminal, the svn add command for www.2cto.com is svn add, and the DELETE command is svn del, however, there is a lack of batch operations. If I
Ubuntu 10.04 install ibus on the premise that the ibus software has been installed in ubuntu, which also contains some pinyin input methods, but it is not easy to use at all. The input method I installed on www.2cto.com is displayed in ibus as a
Laruence's linux Command Learning -- declare [root @ www ~] # Declare [-aixr] variable www.2cto.com option and parameter:-a: Define the variable named variable as the array type-I: the variable named variable is defined as an integer (integer)
Step 1: Obtain the kernel codeIn these years, Linux has become a buzzword. None of the students and IT professionals who boast computer proficiency have installed one or two Linux operating systems on their computers, and have consciously caught up
After installing mysql on opensuse, you need to change it to the automatic start mode. As a result, an error is reported when chkconfig -- level 35 mysqld on is used. The usage of chkconfig and chkconfig in Red Hat series on suse is somewhat
Sometimes we have installed ubuntu, but the data in the previous WINDOWS partition of the local machine exists, so we don't want to format it. Then we can access the NTFS partition as we like on the server, you only need to add a mount point to
Vsftp cannot be connected. The system prompts No route to host.
Cause: port 21 is not enabled for iptables
[Root @ localhost sysconfig] # iptables -- list
Chain INPUT (policy ACCEPT)
Target prot opt source destination
RH-Firewall-1-INPUT all --
Wget http://nginx.org/download/nginx-1.0.4.tar.gz
1. Install
Install it on/usr/local/nginx by default
Tar-zxvf nginx-1.0.4.tar.gz
Cd nginx-1.0.4
./Configure
Make; make install
2. Run
/Usr/local/nginx/sbin/nginx
# Note: nginx uses port 80
After the redhat system was reinstalled today, when installing apache, I encountered the no acceptable C compiler found in $ PATH error. I found some information from the Internet and asked me not to install gcc or other compilers, we recommend
Since the rsync service is installed by default, I will omit how to install rsync.
Server installation:
Mkdir-p/etc/rsyncd/create rsync main directory
Touch/etc/rsyncd. conf
Touch/etc/rsyncd. secrets create rsync Information
Chmod 600/etc/rsyncd.
Src. rpm is the source package and can be used only after compilation. After installation, the source code is used. After rebuild, the rpm package will be generated.
Method:
Example 1:
Download complete:
[Root @ localhost beinan] # ls unrar *
(1) Linux distribution companies: redhat suse redflag
(2) storage media:
The Iide interface is automatically recognized as/dev/hda.
The Scsi interface is automatically recognized as/dev/sda.
Stata (Serial hard drive)
The software drive is
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