View the system information of a Linux Server

Source: Internet
Author: User
Original article: Workshop. first of all, you must obtain the IP address, user name, and password of the machine (if you do not know it, find the original administrator to ask for it). After logging in, you will first see the machine name, generally, the prompt is available, for example, [root @ localhost root] # the localhost is the machine name. if you use the command to view the version of the operating system, you can view the kernel uname-A in hostname. (I only use RedHat, so I only use this as an example) CAT/etc/RedHat-release view network configuration information ifconfig output the following information: eth0 link encap: Ethernet hwaddr 00: XX Inet ADDR: 10.1.3.1 01 bcast: 10.1.3.255 mask: 255.255.255.0 ...... Eth1 link encap: Ethernet hwaddr 00: XX Inet ADDR: 10.1.2.101 bcast: 10.1.2.255 mask: 255.255.255.0 ........ Lo link encap: local loopback Inet ADDR: 127.0.0.1 mask: 255.0.0.0 up loopback running MTU: 16436 Metric: 1 ....... Note that there are currently three NICs: eth0, eth1, and lo. The lo IP address is 127.0.0.1, which is the virtual interface used for testing. if you want to view more detailed information for each Nic, You need to view its configuration file separately and perform less/etc/sysconfig/network-scripts/ifcfg-eth0 on eth0 to output the following information: Device = eth0 device name hwaddr = 00: XX: XX physical address onboot = Yes type = Ethernet bootproto = none ipaddr = 10.1.3.101 IP address gateway = 10.1.3.1 gateway netmask = 255.255.255.0 mask for eth1 perform less/etc/sysconfig/network-scripts/ifcfg-eth1, the output result is similar to the preceding one. view the currently opened service chkconfig-list view the currently opened port netstat-An view disk information fdisk-LDF-H view CPU information CAT/proc/cpuinfo view memory information CAT/proc/ meminfo display board information lspcicat/proc/PCI view current system running PS-auxtop (similar to the Windows Task Manager, you can see the current CPU and memory usage.) Check that some installed service software is generally installed under/usr/local, so here you can view the related folders. The first thing you need to know about the software is its version. So I will list several common software to view the version of PHP: run the command in the installed bin directory. /PHP-vmysql: run the command in the installed bin directory. /MySQL-V (note that this V is in uppercase) Apache: run the command in the installed bin directory. /apachectl-V

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.