With the Linux system, you can't help but understand the commands in this system. A system command sometimes improves the working efficiency and more convenient for us in the operation process. Therefore, we have to learn a little bit of this knowledge, of course, Tomcat maintenance must also have a certain understanding.
Monitor the CPU average. After SSH to the Linux server, type uptime to display the CPU usage before 1 minute, 5 minutes ago, and 10 minutes before. The closer the value is to 0, the better.
Monitor memory and swap partition usage. After SSH to Linux server, type free-m to display memory and swap partition usage. If memory usage exceeds 90% and swap space usage exceeds 50%, proof There is a problem with the system. (At least there is memory leak phenomenon)
Monitor hard disk usage. After SSH to Linux server, type df-h to view the hard disk usage rate. More than 90% need to clean up useless data and logs in time
Monitor CPU and process CPU and memory usage. After SSH to Linux server, type top-cs to view the allocation of detailed process resources according to CPU and memory usage.
Monitor the number of Apahce connections, SSH to After the Linux server, type ps-ef|
Grephttpd|
Wc-l can view the Apache at the time, this depends on the Apache connection settings, if it exceeds the setting of 80%, it proves unstable.
PostFix Processing
Health status tail-f/var/log/maillog to view postfix mail server operation.
Start PostFix
servicehttpdstart
servicemysqldstart
servicepostfixstart
servicecourier-authlibstart
servicedovecotstart
servicespamassassinstart
serviceMailScannerstart
servicesaslauthdstart< Br>
Related services required to start the mail service
Restart PostFix
servicehttpdstart
postfixrestart
Do not restart the server, only restart POSTFIX
Tomcat processing method, Tomcat log in the log folder of its installation directory, you can view the Tomcat log query problem.
Close the Tomcat process and type ./shutdown.sh&kill-9$(ps-ef|) in the bin directory of the Tomcat installation directory. Grepjava| Awk'{print$2}') can kill all Tomcat processes, then type ./startup.sh to restart Tomcat
In the process of using the computer, it is inevitable to encounter virus intrusion, we will install
In order to prevent others from seeing the contents of the file, some people will set a password for
u disk is an indispensable tool in our daily life, but there are some problems in the process of usi
The computer will inevitably encounter the problem of aging parts, such as my own computer, Samsungs
Windows2003 system quick login has a high trick
How to make the messy right mouse button menu clear
Specific ways to keep your computer running at low energy
How to ping Windows and VM without connecting the network cable
Introducing several misunderstandings in the process of optimizing Vista
How to use the computer screen capture button Print Screen?
Introducing the use of windows defender
Watch the video appearing explorer.exe encountered problems need to close
The difference between Windows authentication mode and mixed mode
Do not record the time of file access noatime application
Hard disk formatting partition prompt "cannot operate" error solution
How to roll back to the original driver after Win8 system update driver
Method for disabling EFS encryption in Windows 7 system
How to change the language setting of Win8.1 system
Windows 7 is impeccable? Safety settings step by step for camp
Win7 system Windows Search system search how to uninstall?
How much is the official version of Win8? How much is the genuine Win8?
How to cancel the "Bluetooth Peripherals" option in the win7 Ultimate computer menu