登录函数的初步实现:
def Login(self, event):
if (self.datacenter._netstat == 0):
lib.MyDialog(u"网路状态",u"网路异常,请检查网络...")
else:
lib.udpFindCcu(self.datacenter, self.devdb.getFindCcu())...
分类:
编程语言 时间:
2016-05-12 22:19:39
阅读次数:
326
这里贴上辨别电脑的5037端口被哪个应用程序占用的方法:
1. 打开命令行,输入命令:netstat -ano | findstr "5037"
http://bbs.xda.cn/thread-11656869-1-1.html
近日在命令行中使用adb命令时老是会提示 error: unknown host service的错误, 以前一直是正常的,从未出过问题...
分类:
数据库 时间:
2016-05-12 22:11:41
阅读次数:
226
pt-summary功能:统计系统信息Summarizesysteminformationnicely.作用:打印出来的信息包括:CPU、内存、硬盘、网卡等信息,还包括文件系统、磁盘调度和队列大孝LVM、RAID、网络链接信息、netstat的统计,以及前10的负载占用信息和vmstat信息。示例:#pt-summary【下图为部分截..
分类:
其他好文 时间:
2016-05-11 20:14:01
阅读次数:
437
#!/bin/bashstart(){if[`netstat-tnlp|grep-w80|wc-l`-eq1];thenecho"Nginxisrunning......"exit1else/application/nginx/sbin/nginxsleep2echo"Nginxstartsuccessed......"fi}stop(){if[`netstat-tnlp|grep-w80|wc-l`-ne1];thenecho"Nginxisnotrunning......"exit1else/applic..
分类:
其他好文 时间:
2016-05-10 18:53:00
阅读次数:
144
系统问题: 带宽 netstat cpu io 磁盘 内存 free vmstat命令是最常见的Linux/Unix监控工具,可以展现给定时间间隔的服务器的状态值,包括服务器的CPU使用率,内存使用,虚拟内存交换情况,IO读写情况 top命令 shift+m 按内存从高到低排序 iostat -xk ...
分类:
系统相关 时间:
2016-05-10 12:35:10
阅读次数:
178
检测nginx是否正常,如果不正常则自动重启#!/bin/bashnginx=`netstat-tnlp|grep80|grepnginx|wc-l`if["$nginx"-gt0];then echo"Nginxisrunning..."else echo"Nginxisstopped" /application/nginx/sbin/nginxfi
分类:
其他好文 时间:
2016-05-09 18:58:02
阅读次数:
542
ifconfig查看网卡配置ifconfignetstat查看java占用的端口netstat-ntlp|grepjavassh远程连接sshremote_username@remote_ipscp远程文件传输scplocal_fileremote_username@remote_ip:remote_folderunzip解压unzipsource_file-dtarget_filetomcat启动方法1:tomcat跟随shell关闭而关..
分类:
系统相关 时间:
2016-05-09 14:32:42
阅读次数:
227
liunx常用命令01.stat查看文件详细信息例:stat1.txt(包括文件大小等信息)02.who目前登入系统的用户信息03.whoami显示用户名称如:root04.uname显示主机所用的操作系统参数-a-all05.ifconfig网络配置06.ping测试网络通不通07.netstat显示网络状态信息08.clear清屏09kill结束进程..
分类:
其他好文 时间:
2016-05-08 06:57:30
阅读次数:
158
ss是Socket Statistics的缩写。顾名思义,ss命令可以用来获取socket统计信息,它可以显示和netstat类似的内容。但ss的优势在于它能够显示更多更详细的有关TCP和连接状态的信息,而且比netstat更快速更高效。 当服务器的socket连接数量变得非常大时,无论是使用net ...
分类:
系统相关 时间:
2016-05-06 23:05:37
阅读次数:
381