一、安装
yum install bind-utils.x86_64
yum install bind
二、配置
vim /etc/named.conf
编辑文件内容为:
############################################################
options {
listen-on port 53 { 127.0.0...
分类:
其他好文 时间:
2014-09-16 17:25:50
阅读次数:
328
php和nginx的配置server{ root html; listen 80; server_name a.com; index index.php index.html ; location ~ \.php$ { fastcgi_pass 127.0....
分类:
Web程序 时间:
2014-09-15 12:41:28
阅读次数:
178
(一)端口占用查询
常用命令:
lsof netstat
实例:
lsof -i:80 netstat -an | grep 80 netstat -an | grep LISTEN 查询本机监听的端口
(二)crontab定时任务
常用命令:...
分类:
系统相关 时间:
2014-09-13 17:22:55
阅读次数:
252
原文链接:http://blog.csdn.net/largetalk/article/details/7939080看tornado源码多进程(process.py)那段,发现他的多进程模型和一般常见的模型有点不一样,多见的是主进程bind-> listen -> accept, 将accept返...
分类:
其他好文 时间:
2014-09-13 13:22:25
阅读次数:
283
TelephonyManager类:管理手机通话状态,电话网络信息的服务类,获取方法为: TelephonyManager manager=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE) 常用方法:listen(PhoneS...
分类:
移动开发 时间:
2014-09-12 23:15:34
阅读次数:
234
主干部分 服务器端:socket—>bind—>listen—>accept—>close; 客户端: socket—>connect—>close; 按照上面建立连接后,就是进行数据的传输了。。。。 涉及主干函数如下: socket函数用于创建套接字文件标识号; bind函数用于套接字和地址的绑定...
分类:
系统相关 时间:
2014-09-10 09:33:13
阅读次数:
354
catnetstat.txtProtoRecv-QSend-QLocal-AddressForeign-AddressState
tcp000.0.0.0:33060.0.0.0:*LISTEN
tcp000.0.0.0:800.0.0.0:*LISTEN
tcp00127.0.0.1:90000.0.0.0:*LISTEN
tcp00coolshell.cn:80124.205.5.146:18245TIME_WAIT
tcp00coolshell.cn:8061.140.101.185:37538FIN_..
分类:
其他好文 时间:
2014-09-09 18:33:19
阅读次数:
315
1.netstatnetstat -tnl | grep 443 (查看443端口是否被占用)root用户,用netstat -pnl | grep 443 (还可显示出占用本机443端口的进程PID)。-a (all)显示所有选项,默认不显示LISTEN相关-t (tcp)仅显示tcp相关选项-u...
分类:
Web程序 时间:
2014-09-06 17:24:13
阅读次数:
349
使用zabbix自带key监控进程与端口每个公司都有自己的程序,自己的进程名与端口监听,对于nagios来说,这些都经常需要自己去写插件,但是zabbix不需要,它自己就有监控进程与端口的key。在使用zabbix的key来监控进程与端口前,我也自己写了插件,但用起来很不爽,因为需要在所有..
分类:
其他好文 时间:
2014-09-04 15:08:10
阅读次数:
291
今天在导出一个模式的时候,约140GB,出现如下错误:
UDE-00008: operation generated ORACLE error 31626
ORA-31626: job does not exist
ORA-06512: at "SYS.KUPC$QUE_INT", line 536
ORA-25254: time-out in LISTEN while waiting...
分类:
其他好文 时间:
2014-09-04 14:58:09
阅读次数:
337