###################################################First, familiarize yourself with the concept of an array:1) Array name: cannot have variable in array name2) array elements: An array variable contains multiple elements (values)3) Starting position:
The first part,1. View TCP connection StatusNetstat-nat |awk'{print $6}'|sort|uniq-c|sort-Rnnetstat-N | Awk'/^tcp/{++s[$NF]}; END {for (a in S) print A, S[a]}'netstat-N | Awk'/^tcp/{++state[$NF]}; END {for (key in) print key, "\ T",
#powershell Monitoring, restart the network cardA Windows server, due to a large load, occasionally network interruption, wrote a PowerShell script, monitoring IP is not through, restart the network cardCls$host. Ui. Rawui.windowtitle=' ... VM
Own small website runs in the Aliyun ECS above, occasionally also analyzes own website server log, looks at the website the amount of visits. See if there's any black-and-wide sabotage! So collect, organize some server log Analysis command, we can
AwkI. Introduction of AWKscripting languageVariable..... Process Control array functions use awk for Data statistics 1 Number of users in the statistical system, number of built-in users 2 statistics Site Server traffic for
Own small website runs in the Aliyun ECS above, occasionally also analyzes own website server log, looks at the website the amount of visits. See if there's any black-and-wide sabotage! So collect, organize some server log Analysis command, we can
Below I collect several commonly used shielding IP list of program processing method, shielding this can make your website better, more stable, below we do not analyze the following shielding method.
$ip _str = "127.0.0.1,192.1.1.*,202.*,127.*,123.*
Redis range Query app.DemandFind the corresponding city according to IPThe original solutionOracle Table (Ip_country):Query the city of IP:1. Convert IP a.b.c.d in such a format to a number, for example to convert 210.21.224.34 to 35246489942.
Arp spoofing is a very annoying attack for servers.
For ease of description, we first assume a subnet environment:Gateway: IP = IP-1, MAC = 11: 11: 11: 11: 11: 11HOST: IP = IP-2, MAC = 22: 22: 22: 22: 22: 22Host A: IP = IP-A, MAC = AA: AAHost B: IP =
problem: I am running a mysql/mariadb service on CentOS, and I want to use phpMyAdmin to manage the database through the network interface. What is the best way to install phpMyAdmin on CentOS?phpMyAdmin is a PHP-based, Web MYSQL/MARIADB database
How do I use Windows remote control Linux desktop?1. See if the machine has VNC installed (Redhat Linux 9 has VNC installed by default)Rpm-q VNC Vnc-serverIf you see the result as:Package VNC isn't installedvnc-server-4.1.2-14.e15_3.1Congratulations,
In peacetime operation and maintenance work, our OPS personnel need to know the total number of daily visits, total bandwidth, IP statistics and URL statistics of their website.Although the website has already done CDN acceleration in the service
Fourth Chapter Network layer
1. Two services at the network layer : Virtual circuit Service (reliability guaranteed by the network) and datagram service (reliability guaranteed by the user host)2. Internet Protocol(1) Address Resolution Protocol
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.