我要评分
获取效率
正确性
完整性
易理解

Querying Server Information

Table 1 Querying server information

Related Information

Query Command

OS version of the server

cat /etc/os-release

Kernel version of the host system

uname -r

NUMA information

numactl

PCI device information

lspci

CPU information

  • lscpu
  • cat /proc/cpuinfo

Memory usage

  • free
  • cat /proc/meminfo

Drive storage

  • df -h
  • cat /proc/loadavg
  • cat /proc/partitions

System runtime load

uptime

Process information

  • top
  • ps

I/O information

  • cat /proc/iomem
  • cat /proc/ioports

System log information

/var/log/

System environment variables

env

Startup information

dmesg -T

Network status

  • ifconfig
  • ping
  • netstat
  • tcpdump

If the host OS is openEuler 22.03, some ports of the firewall need to be enabled in the online gaming scenario. (The port number is defined by the game vendor. For example, the port used by Honor Of Kings is 50012.) Otherwise, the network may be abnormal and users may fail to sign in a game. Configure the firewall as follows:

  1. Enable port 50012 (Honor Of Kings is used as an example).
    firewall-cmd --zone=public --add-port=50012/tcp --permanent
  2. Reload the firewall configuration.
    firewall-cmd --reload