Current location - Education and Training Encyclopedia - Graduation thesis - Linux View Server Status Command Linux View Server Status
Linux View Server Status Command Linux View Server Status
How do linux commands view the server name?

The materials to be prepared are: computer and linux connection tools.

1. First connect the linux host and enter the linux command line state waiting for input instructions.

2. On the command line, enter the command: hostname, and then press Enter.

3. At this point, the server name will be printed, for example, bogon.

What is the command to view the server running log in Linux?

I only know log /var/log/messages, but I know nothing about mail. The mail queue is checked with the mailq command, and the file /var/spool/mqueue is a temporary mail that cannot be sent out.

How to check the io reading and writing of linux server?

Use iotop to see which process has the highest io usage, and then use the top command to see if the status of this io process is _ column. It is estimated that most of it is caused by the write operation of the web server, so let the programmer optimize this part.

How does Linux check the status of the web server?

By checking whether the process exists, the command ps-efgreptomcat can view the service. If the service is started, the information of the corresponding path will be displayed, or you can view phpstatus through status.