Statistics on linux servers

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

Use cat to count apache log ip addresses

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:

Linux shell letter Conversion

Linux shell letter conversion #! /Bin/sh www.2cto.com # -------------------------------------------------------- # [: upper:] [A-Z] # [: lower:] [a-z] # [: digit:] [0-9] # [: alnum:] [0-9 a-z A-Z] # [: space:] space or t a B key # [: alpha:] [a-z

Modify Kernel Parameters during linux running

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

Set an Internet proxy on the linux character Interface

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.

Common Linux commands (8) -- bash application skills

Common Linux commands (8) -- bash application skills view existing shell www.2cto.com [root @ localhost ~] # Cat/etc/shells/bin/sh/bin/bash/sbin/nologin/bin/tcsh/bin/csh [root @ localhost ~] # Common shortcut keys in bash: ctrl + l clear screen,

Source command in linux

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 usage in shell

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 deletion and batch Addition

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

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

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)

Pack the technologies you can learn: Linux kernel entry set

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

Suse chkconfig command

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

Mount NTFS partitions in ubuntu

  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

Vsftpd prompt: No route to host troubleshooting

  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 --

Nginx installation manual

    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

Redhat build YUM Service (ftp-based)

  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

Configure rsync for log synchronization notes

  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.

Install * src. rpm in Linux

    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 *

Basic linux Learning (1)

  (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

Total Pages: 5467 1 .... 3805 3806 3807 3808 3809 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.