[warn] NameVirtualHost *:80 has no VirtualHosts

错误:[warn] NameVirtualHost *:80 has no VirtualHosts 原因:定义了多个NameVirtualHost 解决:Ubuntu之前的版本定义在/etc/apache2/sites-available/default, 8.04后在/etc/apache2/ports.conf 故可以将/etc/apache2/ports.conf中的NameVirtualHost *:80注释掉 这个问题的本质是在没有定义域名是一个端口只能对应一个虚拟主机,将NameVirtualHost…

Read More...

CentOS配置时间同步NTP

CentOS配置时间同步NTP 为什么要使用ntpd而不是ntpdate? 原因很简单,ntpd是步进式的逐渐调整时间,而ntpdate是断点更新,比如现在服务器时间是9.18分,而标准时间是9.28分,ntpd会在一段时间内逐渐的把时间校准到与标准时间相同,而ntpdate会立刻把时间调整到9.28分,如果你往数据库内写入内容或在其他对…

Read More...

lsof 工具

lsof 工具可列出某个Unix 进程所打开文件信息的清单,被打开文件的类型可能包括了:本地文件,目录,网络共享文件,块设备文件,字符设备文件,共享库,管道,软链接,套接字等等. 以下是具体的lsof 操作实例总结: 1,列出所有被打开文件信息 #lsof 2,查看某个被打开文件信息 #lsof /path/to/file #lsof /…

Read More...

linux 网络操作相关命令

#/bin/sh #查看http请求的header tcpdump -s 1024 -l -A -n host 192.168.9.56 tcpdump -s 1024 -l -A src 192.168.9.56 or dst 192.168.9.56 sudo tcpdump -A -s 1492 dst port 80 #本地网络中…

Read More...

PuTTYgen

PuTTYgen PuTTYgen 是一套可以產生金鑰的工具,它可生成 RSA 以及 DSA 的金鑰, 做出來的公開以及私有金鑰,可以用於 PuTTY 、 PSCP 、 Plink 以及 Pageant 。 產生一個新的金鑰 : 直接點選 PuTTYgen 圖示。 第一步,選擇所要生成之金鑰的演算法 (RSA / DSA) 、 …

Read More...

Using Rsync and SSH

This document covers using cron, ssh, and rsync to backup files over a local network or the Internet. Part of my goal is to ensure no user intervention is required when t…

Read More...