摘要: # uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# lspci -tv # 列出所有PCI设备# lsusb -tv # 列出所有USB设备# lsmod # 列出加载的内核模块# env # 查看环境变量资源# free -m # 查看内存使用量和交换区使用量# df -h # 查看各分区使用情况# du -sh # 查看指定目录的大小# grep MemTotal /proc/meminfo # 查看内存总量# grep 阅读全文
posted @ 2012-08-22 18:07 赤脚大仙~ 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 其它版本 3 * 使用方法: 4 * $post_string = "app=request&version=beta"; 5 * request_by_other('http://facebook.cn/restServer.php',$post_string); 6 */ 7 function request_by_other($remote_server,$post_string){ 8 $context = array( 9 'http'=>array( 10 'method... 阅读全文
posted @ 2012-08-22 16:33 赤脚大仙~ 阅读(840) 评论(0) 推荐(1) 编辑
View Code