在Debian Lenny中默认装载Exim4,SendMail的配置可以用天书来形容。不过现在可以很轻松的用Exim4来替代SendMail。
在Debian Lenny中直接执行
dpkg-reconfigure exim4-config
将打开对话窗口,在第二个对话框中选择 ‘internet site; mail is sent and received directly using SMTP’。之后先服务器ip中加上你目前的静态IP。然后可以按默认设置进行。
如果你需要使用PHP的sendmail,那么创建sendmail的软链接,
ln -s /usr/sbin/sendmail /usr/sbin/exim4
最后可以创建一个sendmail()函数的例子作为测试。如果是静态IP的,基本不会被认定上为Spam,可以正常接收文件。
Comments (0) Posted on Saturday, October 24th, 2009
执行apt-get install 的时候提示
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.
错误。
解决方式
mkdir -p /var/cache/apt/archives/partial
或者
touch /var/cache/apt/archives/lock
Comments (0) Posted on Friday, October 9th, 2009
SSH Server一般会根据设定的设计自动断开SSH连接,这就是为什么一定时间不操作SSH,SSH会自动断开的原因。
按以下步骤可以延长自动断开的时间。以debian为例
编辑配置文件
nano /etc/ssh/sshd_config
添加两个参数
ClientAliveInterval 600
ClientAliveCountMax 3
按以上的配置的含义就是 SSH会在 30分钟(600秒 X 3)后自动退出。系统默认是ClientAliveInterval为15,ClientAliveCountMax 为3,所以SSH会在45秒之后断开。
保存设置并重载配置文件
/etc/init.d/ssh reload
Comments (0) Posted on Thursday, September 17th, 2009
百度推出统计系统,但目前只对联盟会员开发。入口在 http://tongji.baidu.com 。
另外百度有一个叫联盟志的订阅刊物,30期研讨是网游行业,这期通过数据展示和案例分析可以挖掘出营销价值,非常值得关注。 比较好的信息源动力。入口在 http://dingyue-umaz.baidu.com/client/subscribe.html
Comments (0) Posted on Wednesday, August 26th, 2009
colinux:~/test# ls
test.tar
colinux:~/test# tar -tvf test.tar
drwxr-xr-x root/root 0 2005-11-17 10:13:37 ./
-rw-r--r-- root/root 16 2005-11-17 10:12:55 ./test2
-rwxr-xr-x root/root 89 2005-11-10 03:23:37 ./test.sh
colinux:~/test# tar --get -vf test.tar test.sh
tar: test.sh: Not found in archive
tar: Error exit delayed from previous errors
colinux:~/test# tar --get -vf test.tar ./test.sh
./test.sh
colinux:~/test# ls -l
total 16
-rwxr-xr-x 1 root root 89 Nov 10 03:23 test.sh
-rw-r--r-- 1 root root 10240 Nov 17 10:13 test.tar
Comments (0) Posted on Saturday, August 8th, 2009
注意添加ip的如果出现错误会导致无法连接服务器,因此改动过程中要非常注意
准备工作
- 认清主机商给你提供的是哪些ip
- ifconfig查看当前服务器的ip
- ping ips -t 查看链接状况,如果此时这是能够Ping通,有可能该ip并没有真正分配给你
开始添加
- 修改 /etc/network/interfaces 文件
- 当前文件可能是如下样式
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 200.63.48.64
netmask 255.255.255.0
network 200.63.48.0
broadcast 200.63.48.255
gateway 200.63.48.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 208.67.222.222
dns-search alicestore.info
- 添加第二个ip
将第一个ip的inferce修改为以下样式
….
# The primary network interface
allow-hotplug eth0:0
iface eth0:0 inet static
…..
eth0可以看作网卡,:0 是绑定的第一个ip
假如主机上分配给你的是 200.63.48.80
直接在文件末尾添加
…..
auto eth0:1
iface eth0:1 inet static
address 200.63.48.80
netmask 255.255.255.0
network 200.63.48.0
broadcast 200.63.48.255
gateway 200.63.48.1
…..
- 认真检查是否正确
- 重新启动networking
执行
# /etc/init.d/networking restart
执行的结果例子
debian:/etc/network# /etc/init.d/networking restart
Reconfiguring network interfaces…if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS
mounts (warning).
done.
debian:/etc/network# /etc/init.d/networking restart
Reconfiguring network interfaces…if-up.d/mountnfs[eth0:1]: waiting for interface eth0:2 before doing NFS
mounts (warning).
done.
系统应当马上就生效,这是Ping这个ip的话应该就能够Ping通了。
Comments (0) Posted on Thursday, July 30th, 2009
HyperVM,由一家小型公司专门设计的虚拟机支持软件昨天被黑客攻破。HyperVM中绑定虚拟主机管理工具 LXadmin,算open source 中比较健全的软件,因此应用比较广泛。此次攻击导致大约100,000家网站被黑客攻击。一家叫fsckvps的公司损失最大,直接导致大批网站数据丢失完全无法恢复。而开发这个虚拟机软件的公司LXLabs的创始人Ligesh也试图用自杀来逃避的这场灾难。说成灾难是完全的。fsckvps 已经关闭的网站首页,完全改为服务器恢复状态记录清单。从记录上看,有不低于80台机器受到攻击。我们目前有一台放在巴拿马的主机也是用的HyperVM集成的Lxadmin,明天看样子要马上下线更新。
VPS是一种新的主机形态,通过虚拟化技术,将一台物理独立主机分割为更小的虚拟独立主机。因此对需要底层管理权限同时预算有限网站站长非常具有吸引力。目前VPS发展态势非常强劲,但此次软件问题暴露的问题确实震惊。不过国内公司多用windows,这次算是躲过一劫。
根据Wiki提供的消息,Mr. Ligesh在5年前也是自杀身亡,唉,也许这个就是宿命。
Comments (0) Posted on Tuesday, June 9th, 2009
Comments (0) Posted on Thursday, April 9th, 2009
俄语搜索引擎和中文搜索引擎一样并不是google和yahoo的市场。俄文搜索引擎最大的两家是 yandex 和 rambler. 如果需要关注俄语市场的话,需要多研究这两个搜索引擎。
如果是blog,可以通过以下链接提交
Yandex http://webmaster.yandex.ru。这个提交界面比较简单,输入url和验证码即可。
rambler http://robot.rambler.ru/cgi-bin/addsite.cgi 。这个提交稍微有点复杂。下图作了一些翻译

输入内容需要是俄语,不过用google的翻译系统可以轻松搞定。
Comments (0) Posted on Sunday, April 5th, 2009
在第一部分在这里
搜索引擎数据

[说明] bounce rate偏高,会继续提高landing page的质量。另外请注意4800个ip来自4173个关键词。长尾效应非常突出。所以对全站优化是才是SEO的长期策略。
关键词

[说明]不要过于迷信某些高流量的关键词。好像表现并不十分好!排名第一关键词当日只提供了不到100个ip, 而这个词却是3600万级别的竞争词语,而且这个关键词已经排名前十。可以看得出来,与其把精力放到这种高竞争的词语,不如对全站制定一个长期SEO规划,以提高长尾的效率。红色隐藏的是域名相关的内容,有些客人喜欢在搜索引擎中直接输入域名,而不是浏览器。
我们团队对这个网站的成功运作。但作为SEOer者应该更多的向客户灌输长期SEO规划,而不是短期看到几个关键词。获得客户的信任是SEOer和客户双赢的提要条件。
Comments (0) Posted on Tuesday, March 31st, 2009