Dec2

Netbeans c/c++ 远程主机connection timeout问题解决

Author: leeon  Click: 7819   Comments: 0 Category: 其他  Tag: netbeans

今日遇到一个非常纠结的bug,无论怎么用netbeans连接vmware中的虚拟机都不通提示timeout,但是宿主机ping和telnet虚机都是没有任何问题的,securecrt ssh到虚机也没有问题。此虚机配置有两个网卡分别为eth0和eth1,eth0用vmware的nat实现(ip为192.168.3.9),eth1用vmware的hostonly实现(ip为192.168.239.128)。

通过netbeans配置192.168.3.9怎么也创建不了c/c++远程主机,通过wireshark监测vmnet8的网卡(nat模式)也无法获得任何信息,确信netbeans并没有走192.168.3.9来直连,索性尝试用192.168.239.128的eth1来连接配置远程主机,竟然通了。测试通过down掉eth1网卡,仅启用eth0(192.168.3.9)时,netbeans用192.168.3.9连接时竟然可以连上。甚是奇怪,故此记录一下

Nov10

Netbeans中gdb调试错误小记

Author: leeon  Click: 9178   Comments: 0 Category: 其他  Tag: netbeans

在Netbeans7.2中使用远程gdb调试会在输出终端上出现如下错误:

GDB: Failed to set controlling terminal: Operation not permitted

解决之道是在:

在工程项目上鼠标右键中的“属性”->“运行”,设置成如图所示即可:

 

Oct21

Apache HTTP 2.4安装小记

Author: leeon  Click: 581   Comments: 0 Category: 其他  Tag: httpd,2.4

最新版本2.4的httpd已经不在内置apr和apr-util了,但是在configure --help中却还能看到:

[root@rh-1 httpd-2.4.3]# ./configure --help | grep apr
  --with-included-apr     Use bundled copies of APR/APR-Util
  --with-apr=PATH         prefix for installed APR or the full path to
                             apr-config
  --with-apr-util=PATH    prefix for installed APU or the full path to

以前版本都能使用with-included-apr来安装,现在的新版本查看安装手册后发现比以前麻烦了许多,需要自行提前安装准备pcre库和apr库

 

The following requirements exist for building Apache httpd:

APR and APR-Util
Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into ./srclib/apr and ./srclib/apr-util (be sure the domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/) and use ./configure's --with-included-aproption. On some platforms, you may have to install the corresponding -dev packages to allow httpd to build against your installed copy of APR and APR-Util.
Perl-Compatible Regular Expressions Library (PCRE)
This library is required but not longer bundled with httpd. Download the source code from http://www.pcre.org, or install a Port or Package. If your build system can't find the pcre-config script installed by the PCRE build, point to it using the --with-pcre parameter. On some platforms, you may have to install the corresponding -dev package to allow httpd to build against your installed copy of PCRE.
Disk Space
Make sure you have at least 50 MB of temporary free disk space available. After installation the server occupies approximately 10 MB of disk space. The actual disk space requirements will vary considerably based on your chosen configuration options, any third-party modules, and, of course, the size of the web site or sites that you have on the server.
ANSI-C Compiler and Build System
Make sure you have an ANSI-C compiler installed. The GNU C compiler (GCC) from the Free Software Foundation (FSF) is recommended. If you don't have GCC then at least make sure your vendor's compiler is ANSI compliant. In addition, your PATH must contain basic build tools such asmake.
Accurate time keeping
Elements of the HTTP protocol are expressed as the time of day. So, it's time to investigate setting some time synchronization facility on your system. Usually the ntpdate or xntpd programs are used for this purpose which are based on the Network Time Protocol (NTP). See the NTP homepage for more details about NTP software and public time servers.
Perl 5 [OPTIONAL]
For some of the support scripts like apxs or dbmmanage (which are written in Perl) the Perl 5 interpreter is required (versions 5.003 or newer are sufficient). If you have multiple Perl interpreters (for example, a systemwide install of Perl 4, and your own install of Perl 5), you are advised to use the --with-perl option (see below) to make sure the correct one is used by configure. If no Perl 5 interpreter is found by the configure script, you will not be able to use the affected support scripts. Of course, you will still be able to build and use Apache httpd.
Aug14

【原创】SQUID学习笔记

Author: leeon  Click: 6486   Comments: 0 Category: 其他  Tag: squid

no_cache deny xxxx

表示拒绝缓存xxxx对象

 

SQUID集群中ICP协议(默认端口:3130)是牺牲时间为代价,每次Miss的请求都要等ICP返回才能判断是否转发请求。

Digest是牺牲空间换事件为代价,将邻居cache的数据的摘要信息下载到本地,判断miss的请求是否在邻居cache中存在

HTCP协议(默认端口:4827)相比ICP协议更加复杂,ICP查询仅包括URI,而HTCP查询支持完整的HTTP请求头部。

 

查看squid debug日志最佳方式:

squid -k debug; sleep 5; squid -k debug

此命令可以重复使用,第一次使用是开启,第二次调用则关闭

 

SQUID日志中关于请求URI的记录默认情况是去掉“?”号后面的内容的,如果要记录完整的URI信息,需要在配置文件中加上:

strip_query_terms off

分类

标签

归档

最新评论

Abyss在00:04:28评论了
Linux中ramdisk,tmpfs,ramfs的介绍与性能测试
shallwe99在10:21:17评论了
【原创】如何在微信小程序开发中正确的使用vant ui组件
默一在09:04:53评论了
Berkeley DB 由浅入深【转自架构师杨建】
Memory在14:09:22评论了
【原创】最佳PHP框架选择(phalcon,yaf,laravel,thinkphp,yii)
leo在17:57:04评论了
shell中使用while循环ssh的注意事项

我看过的书

链接

其他

访问本站种子 本站平均热度:8823 c° 本站链接数:1 个 本站标签数:464 个 本站被评论次数:94 次