Pages: 8/27 First page Previous page 3 4 5 6 7 8 9 10 11 12 Next page Final page [ View by Articles | List ]
OS1:Linux
Network Interface: eth0
IP: 61.152.1.1

OS2: FreeBSD
Network Interface: fxp0
IP: 210.51.1.1

预配置:
OS1: 10.0.0.1 / 255.255.255.252
OS2: 10.0.0.2 / 255.255.255.252

OS1上配置
配置ipip隧道
Quotation
#ip tunnel add tun0 mode ipip remote 210.51.1.1 local 61.152.1.1 dev eth0
#ifconfig tun0 10.0.0.1 netmask 255.255.255.252 pointopoint 10.0.0.2
#ifconfig tun0 mtu 1500 up


OS2配置隧道

Quotation
#ifconfig gif0 create
#gifconfig gif0 inet 210.51.1.1 61.152.1.1
#ifconfig gif0 10.0.0.2 netmask 255.255.255.252 10.0.0.1
#ifconfig gif0 mtu 1500 up


OS1测试:
#ping -c 4 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.139 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.138 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.138 ms
64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.136 ms
今天一客户机器出现这种错误

Quotation
[root@server ]/usr/local/apache2/bin/apachectl start
httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

一般是由于系统hostname设置不当或者混乱造成的
解决方法:
确保系统hostname指令得出的值与 /etc/hosts 和 /etc/sysconfig/network所对应的值一致

这也提醒我们 修改系统的主机名 为了不必要的麻烦 就要同时修改这两个文件才行
再次启动httpd 就不会有这个错误了
至于下面这一行 设置apache配置文件 将ServerName 设置为对应IP地址即可

rrdtool画的图

[不指定 2008/08/27 16:54 | by askwan ]
rrdtool真是一把做图的利剑:),昨天把自己服务器CPU使用情况做了个图
Open in new window

这个是今天监控apache连接的图
Open in new window

全面一点的
Open in new window
不知道为什么time_wait取到的值老为0,稍后检查(:
Tags:
Pages: 8/27 First page Previous page 3 4 5 6 7 8 9 10 11 12 Next page Final page [ View by Articles | List ]