When you connect to a host using SSH or SFTP it does a series of checks to ensure you are connecting to the host you are expecting to connect to. One of these is a reverse lookup on the IP address to check the hostname is the same as the hostname you are connecting to. If it's not, you'll get an error message like "reverse mapping checking getaddrinfo for ... POSSIBLE BREAK-IN ATTEMPT!". The post looks at a solution to this message.
Connecting from the command line, you might enter something like this:
ssh my.example.com
and get some output like this:
Connecting to my.example.com...
reverse mapping checking getaddrinfo for 192-168-1-243.foo.bar.net failed - POSSIBLE BREAK-IN ATTEMPT!
chris@my.example.com's password:
What this is telling us is that although we are connecting to my.example.com the IP address of the server we are connecting to actually maps back to 192-168-1-243.foo.bar.net in this example. When this actually happened to me, it's because the reverse DNS had not been set up for the server (which would map e.g. 192.168.1.243 to my.example.com as well as vice versa).
Because I knew this reverse mapping was OK, I can add an entry to my hosts file and it will stop the error message from happening. For the above example, I would add the following to my hosts file:
192.168.1.243 my.example.com
Now when I log in using SSH from the command line I won't get that error message any more.
Problem
Trying to connect to remote database fails with -956 error
目录
通过查看打开的文件,了解更多关于系统的信息。了解应用程序打开了哪些文件或者哪个应用程序打开了特定的文件,作为系统管理员,这将使得您能够作出更好的决策。例如,您不应该卸载具有打开文件的文件系统。使用 lsof,您可以检查打开的文件,并根据需要在卸载之前中止相应的进程。同样地,如果您发现了一个未知的文件,那么可以找出到底是哪个应用程序打开了这个文件。【APACHE的工作方式】
prefork模式(默认)
这个多路处理模块(MPM)实现了一个非线程型的、预派生的web服务器,它的工作方式类似于Apache 1.3。它适合于没有线程安全库,需要避免线程兼容性问题的系统。它是要求将每个请求相互独立的情况下最好的MPM,这样若一个请求出现问题就不会影响到其他请求。
这个MPM具有很强的自我调节能力,只需要很少的配置指令调整。最重要的是将MaxClients设置为一个足够大的数值以处理潜在的请求高峰,同时又不能太大,以致需要使用的内存超出物理内存的大小。
worker模式
此多路处理模块(MPM)使网络服务器支持混合的多线程多进程。由于使用线程来处理请求,所以可以处理海量请求,而系统资源的开销小于基于进程的MPM。但是,它也使用了多进程,每个进程又有多个线程,以获得基于进程的MPM的稳定性。
译者序:
本人在工作中维护着数台Squid服务器,多次参阅Duane Wessels(他也是Squid的创始人)的这本书,原书名是"Squid: The Definitive Guide",由O'Reilly出版。我在业余时间把它翻译成中文,希望对中文Squid用户有所帮助。对普通的单位上网用户,Squid可充当代理服务器;而对Sina,NetEase这样的大型站点,Squid又充当WEB加速器。这两个角色它都扮演得异常优秀。窗外繁星点点,开源的世界亦如这星空般美丽,而Squid是其中耀眼的一颗星。
当文件名为乱码的时候,无法通过键盘输入文件名,所以在终端下就不能直接利用rm,mv等命令管理文件了。
但是我们知道每个文件都有一个i节点号,我们可以考虑通过i节点号来管理文件。首先,我们要取得文件的
i节点号。这个可以通过ls命令的-i选项获得得。
- -bash-3.00$ ls -i
- 41697812 a 32983551 di 32983554 ethnet.c 32983543 hard_link
- 32983542 de.c 32983544 ethnet 32983541 ethnet.h 32983543 kstat
每个文件名前面的数字就是文件的i节点号。有了文件的i节点号,我们就可以利用find命令的-inum选项配合
常用的文件管理命令进行文件管理了。例如,如果要删除di文件,命令如下:
- -bash-3.00$ find . -inum 32983551 -exec rm {} \;
- -bash-3.00$ ls
- a de.c ethnet ethnet.c ethnet.h hard_link kstat
看di文件被删除了。因为这个例子是在unix-center的机子上运行的,暂时没有文件名为乱码的文件做为示例,
但是道理是一样的,不影响我们的理解。
要重命名一个文件,命令也很简单,如下:
- -bash-3.00$ ls -i
- 32983542 de.c 32983554 ethnet.c 32983543 hard_link 32983545 kstat.c
- 32983544 ethnet 32983541 ethnet.h 32983543 kstat 32983681 sys_link
- -bash-3.00$ find . -inum 32983542 -exec mv {} di.c \;
- -bash-3.00$ ls -i
- 32983542 di.c 32983554 ethnet.c 32983543 hard_link 32983545 kstat.c
- 32983544 ethnet 32983541 ethnet.h 32983543 kstat 32983681 sys_link
看看,de.c文件被重命名为di.c了。特别要提一下的是,在find命令中的“{}”表示find命令找到的文件,在-exec选项执行mv命令的时候,会利用按i节点号找到的文件名替换掉“{}”。
To: jconsole不能打开,大概两种可能: 1 没有启用独占模式,如O
两个实例分别放在不同的 datadir 里面,会方便很多
今天遇到了“Cleanup failed to process the following paths:-
谢谢分享.有帮助.
根据inotify + rsync的思路,现在有了个c++版本的同步程序,只需指
真是有耐心呀。我做了个pdf 文件 在上面的网站可以下载