读书人

Linux 查寻总结

发布时间: 2013-02-24 17:58:56 作者: rapoo

Linux 查找总结
./tomcat7.0.29/logs/localhost_access_log.2012-07-22.txt
./tomcat7.0.29/logs/localhost_access_log.2012-07-21.txt

/*shell获取ip地址*/
ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{print $1}'

/*查看端口情况*/
netstat -ntlp

参考:

http://blog.csdn.net/wj_j2ee/article/details/6934371

读书人网 >UNIXLINUX

热点推荐