Archive for May, 2010

IEtest 测试网页在不同IE版本的软件

  在windows下可以同时拥有IE5.5、IE6、IE7、IE8的网页调试环境,是前端开发工程师的好帮手。 ETester is afree WebBrowser that allows you to have the rendering and javascriptengines of IE8 beta 1, IE7 IE 6 and IE5.5 on Vista and XP, as well asthe installed IE in the same process. New in v0.2.2 : Search box and customizable Homepage ! This is an alpha release, so feel free to [...]

Posted on May 29, 2010 at 2:51 pm by admin · Permalink · Leave a comment
In: 工具

如何判断linux系统位数–附getconf 命令使用详解

今天在安装mysql的时候,出现一个错误,可能是与系统位数有关! 查看系统有两种方法 1.直接看看有没有/lib64目目录的方法。64位的系统会有/lib64和/lib两个目录,32位只有/lib一个。 2.getconf LONG_BIT (推荐) (32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系统中可用”getconf WORD_BIT”和”getconf LONG_BIT”获得word和long的位数。64位系统中应该分别得到32和64。) getconf 命令使用详解 os版本不同造成的差异, 具体查看: # man getconf 用途 将系统配置变量值写入标准输出。 语法 getconf [ -v specification ] [ SystemwideConfiguration | PathConfiguration PathName ] [ DeviceVariable DeviceName ] getconf -a 描述 用 SystemwideConfiguration 参数调用 getconf 命令,将 SystemwideConfiguration 参数所指定的变量值写到标准输出。 用 PathConfiguration 和 PathName 参数调用 getconf 命令,写入 PathConfiguration 参数为 PathName 参数指定路径指定的变量值,到标准输出。 [...]

Posted on May 22, 2010 at 1:27 am by admin · Permalink · Leave a comment
In: Linux管理维护

在IIS7上配置php –使用FastCGI

Enabling FastCGI support in IISFastCGI module is disabled in default installation of IIS. The steps to enable it differ based on the version of Windows being used. To enable FastCGI support on Windows Vista SP1 and Windows 7: In the Windows Start Menu choose “Run:”, type “optionalfeatures.exe” and click “Ok”; In the “Windows Features” dialog [...]

Posted on May 22, 2010 at 12:30 am by admin · Permalink · Leave a comment
In: 未分类

一行命令安装PPTPD VPN,一键在xen或linux服务器上安装VPN服务

PPTPD VPN是目前比较好用的vpn之一,为了方便ctohome的客户安装vpn服务,diahosting公开发布的一个”一行命令,一键在xen或linux服务器上安装VPN服务(PPTPD VPN)”的脚本,推荐给大家使用: 一行命令安装PPTPD VPN(注意,只在CentOS 5 32bits/64bits下测试通过,其他系统未测试): wget http://www.zhangrongcun.com/down/vpn/vpn-pptpd.sh;sh ./vpn-pptpd.sh; 用root登录ssh,复制粘贴上面一行命令,回车等待几分钟即可。 安装完成后,会直接显示VPN用户名(默认就是vpn1和vpn2)和密码, 请留意下面的字样,密码中可能会有/=等特殊字符,但没有空格,复制密码的时候,小心不要复制了空格 VPN username: vpn1 password: rPpVvZUoVPN username: vpn2 password: 55Y3ut6t 如何创建更多的vpn用户? 请在linux下,ssh编辑/etc/ppp/chap-secrets文件,按照相同格式添加用户名和密码即可。

Posted on May 18, 2010 at 12:44 am by admin · Permalink · Leave a comment
In: Linux管理维护

Kloxo/lxadmin不支持mb_substr,如何安装mbstring?

Kloxo/lxadmin面板默认不支持mbstrin,不支持mb_substr等函数。怎么办?如何安装mbstring? Kloxo安装mbstring的方法:ssh登录 [root@vps105 www.ctohome.com]# yum install php-mbstringLoading “installonlyn” pluginSetting up Install ProcessSetting up repositorieslxlabsupdate 100% |=========================| 951 B 00:00lxlabslxupdate 100% |=========================| 951 B 00:01base 100% |=========================| 2.1 kB 00:00updates 100% |=========================| 1.9 kB 00:00addons 100% |=========================| 951 B 00:00extras 100% |=========================| 2.1 kB 00:00Reading repository metadata in from local filesParsing package install argumentsResolving Dependencies–> Populating [...]

Posted on May 17, 2010 at 11:39 pm by admin · Permalink · Leave a comment
In: Linux控制面板

去哪里注册sb域名啊

SB域名是所罗门群岛国家顶级域名,现在暂时还没有提供.SB域名注册 但是可以注册.com.sb 、.edu.sb 、.gov.sb 、.net.sb 、.org.sb 五个系列的域名,其中.edu.sb 、.gov.sb 域名需通过所罗门电信申请! 注册费用为89.00 USD ps:china.com.sb还没被注册! 官方网站:http://www.nic.net.sb/ 注册网址:http://www.101domain.com/register_domain_name_sb.htm .SB Registration not offered at this time Available extensions for Solomon Islands: .com.sb .edu.sb .gov.sb .net.sb .org.sb

Posted on May 12, 2010 at 7:09 am by admin · Permalink · Leave a comment
In: 一孔之见

Linux VPS上自动备份文件并发送到Gmail (适用G级数据的备份)

一,安装所需程序 yum install -y mutt vixie-cron 二,设置mutt发信参数 $ vim ~/.muttrc 写入下面的内容 set envelope_from=yes set from=bak@diavps.com set realname=”DiaBak” set use_from=yes 然后设置要接收邮件的Gmail,把bak@diavps.com加入白名单。 三,设置脚本 注意这几个目录 /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly 这些目录下的文件可以分别每小时,每天,每周,每月自动执行一次。 如果是把脚本程序放置在上面的目录里,最好把权限设置为0700。 设置更复杂的执行条件可以使用crontab -e命令。详情请百度。 以每天执行为例 $ vim /etc/cron.daily/diabsk.sh 写入下面的内容 #!/bin/bash # SETTING TOEMAIL=”bak@diavps.com”; COMMENT=’blog database backup’ DIR=’wordpress’ # END SETTING TMP=’/tmp/diabak/’${DIR} ATTTMP=’/tmp/diabakatt/’${DIR} rm -rf $TMP mkdir -p $TMP cd [...]

Posted on May 10, 2010 at 5:38 pm by admin · Permalink · Leave a comment
In: Linux管理维护