例子linux

例子Linux教程

您可以使用ping来查看系统是否处于活动状态:

ping -c4 <system's IP address>

要查看某个服务是否仍然有效,请使用telnet命令:

telnet <system's IP address> 25 (for SMTP)
telnet <system's IP address> 80 (for HTTP)
telnet <system's IP address> 110 (for POP3)

我们可以使用SSH(端口22)登录系统(如果您在Windows PC上,请使用PuTTY;PuTTY是Windows的SSH客户端),当您在系统上时,您有一些有用的工具来收集更多信息:

uptime (shows how long the system has been up)
ps aux (shows a list with all running processes)
netstat -tap (shows a list of all services that are listening on some port)
top (shows the system load)
dmesg (shows bootup messages of the last boot)

您还可以查看/var/log/中的日志文件,以了解错误等信息。

发表评论