1 问题描述: 启动nginx服务时出现:Nginx [emerge] :bind() to 0.0.0.0:98 failed (98: Address already in use) 2 问题解决: ????使用命令关闭占用80端口的程序:sudo fuser -k 80/tcp...
分类:
其他好文 时间:
2014-11-25 11:02:31
阅读次数:
228
主要介绍:socket、bind、listen、connect、accept、send、sendto、recv、recvfrom、close、shutdown
原理可看:...
分类:
其他好文 时间:
2014-11-25 10:47:06
阅读次数:
279
1、问题 通过Eclipse启动Tomcat时,抛出异常java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind。此异常的原因是服务器端口被占用 其解决办法包括以下两种: 一:更改服务器的端口...
1.tab功能脚本
[root@localhost python]# cat tab.py
#!/usr/bin/python
import sys
import readline
import rlcompleter
import os
# tab completion
readline.parse_and_bind('tab: c...
分类:
编程语言 时间:
2014-11-24 19:17:38
阅读次数:
231
jQuery事件的绑定和委托可以用多种方法实现,on() 、 bind() 、 live() 、 delegate(),还有one()。有时我们可能会像下面这样绑定一个事件:Js代码$("#div1").click(function(){alert("点击后触发");});上面的事件绑定,我们可以通...
分类:
Web程序 时间:
2014-11-24 18:43:55
阅读次数:
262
OpenCV 的视频操作都与 VideoCapture 相关If this argument is an integer then you will bind the class to a camera, a device. The number passed here is the ID of t...
分类:
其他好文 时间:
2014-11-24 18:31:39
阅读次数:
353
在socket函数和bind函数之间加入一段代码://建立服务器端socketif((server_sockfd=socket(AF_INET,SOCK_STREAM,0))<0){ perror("server_sockfdcreationfailed"); exit(EXIT_FAILUR...
分类:
其他好文 时间:
2014-11-24 16:37:41
阅读次数:
167
1.tab功能脚本[root@localhostpython]#cattab.py#!/usr/bin/pythonimportsysimportreadlineimportrlcompleterimportos#tabcompletionreadline.parse_and_bind(‘tab:complete‘)#historyfilehistfile=os.path.join(os.environ[‘HOME‘],‘.pythonhistory‘)2.导入在脚本当前目录下,..
分类:
编程语言 时间:
2014-11-24 13:46:29
阅读次数:
179
艾玛,搞得我好累。。。。Cacti官方提供的模板sh脚本执行有问题,找不到原因,重新写了脚本就正常。。。先看看效果图(大半夜搞出来的,,,)环境:CentOS6.5Bind版本:Bind9.8.2(yuminstallbind安装)未安装Chroot包,(如果有安装那么需要注意文件路径了。)开搞1.解压模板..
分类:
其他好文 时间:
2014-11-24 08:44:08
阅读次数:
402
今天配置mongodb cluster问题: 执行./mongo或 ./mongo localhost:27017都不能进入mongo命令行解决: ./mongocluster1:27017 、原因: mongo.conf文件bind_ip=cluster1,一定要对应(即使localhost也.....
分类:
其他好文 时间:
2014-11-23 14:23:02
阅读次数:
129