The following content is a way to use linux as a friend of the website. Although there are many tools in N for analyzing access logs such as apache and nginx. However, any kind of efficient and flexible ^_^ without linux built-in commands. For example: When your graphical system is not working (hacking?!), it is especially important to have some scripts for monitoring and analyzing logs. The following code can monitor the most recent visitor log, which is quite useful.
1. Real-time filtering logs
Use the tail -f command to view the most recent additions to the log files. However, there will be some trouble in the actual application, you will find that a lot of content is output to fill the entire screen. It is necessary to format these contents ^_^. The script is as follows:
# Need to save the script, $COLUMNS variable will be valid #Note: -n10 means to display the last 10 lines of content, you can modify deny="`tput bold; tput setaf 1`" #亮Red high="`tput bold; tput setaf 3`" #亮黄norm="`tput sgr0`"tail "$@" -s.1 -f access_log
One of the best things about Linux is that you can go deep into the operating system to explore how
First, the installation of VirtualBox and expansion package installation steps is too simple, and wi
On the linux device model online, there are some discussions, some things I used to use, to modify a
Description of Requirement compile and install MySQL, PHP , and Apache to work a. The process o
Explanation: When a segmentation error occurs, how does the Linux system generate the core file
View file encoding, file encoding format conversion and file name encoding conversion under Linux
Introduction to Linux operating system network configuration process under virtual machine
Cron plan task configuration method in linux (centos)
The colrm command usage in Linux
Registration of the s3c2410 device
Linux environment variables (a)
Active buzzer and passive buzzer difference
Linux Nginx Soft Load Implementation Tutorial
How Win7 uses a family group to share multiple computers
Windwos7 system restarts after the printer offline solution
Win8 system tablet inserts the picture method
Cancel Tencent Win10 Upgrade Assistant Method
Win8 flight mode is what Windows 8 flight mode use method
How to hide the "Enable Virus Protection" prompt under Win10 system
What if the win7 system can't open the optical drive?
Acer S3 with Windows7 to create a smart "hummingbird"
System acceleration Starting from the gradual optimization of the XP system (9)