windows2003的iis6环境下批量更换服务器绑定ip地址

今天有台windows2003使用iis6的服务器ip地址更换了,而上面的ip地址是绑定的了,很多网站需要同时修改ip地址。

首先停止iis服务,接着打开“C:\WINDOWS\SYSTEM32\INETSVR”,找到Metabase.xml,这就是存放iis信息的地方了,包括IIS的配置及网站配置都在这个文件中,备份一下,防止出错;

接着使用文本编辑器打开ctrl+f搜索对应需要修改的ip地址,然后保存。

重启IIS即可,恭喜大功告成!

发表在 服务器 | 标签为 , , | 留下评论

不使用API KEY如何激活akismet2.6版本

被评论骚扰到郁闷,安装了个akismet插件,发现需要key,查看源代码发现修改下即可:

打开wp-content/plugins/akismet/akismet.php

搜索(Ctrl+F)akismet_verify_key内容

在function akismet_verify_key( $key, $ip = null ) {下面加上
这句:return ‘valid’;

网上很多都写 return true;应该是新版本修改了验证方式。

返回输入key的地方在Akismet APIKey里随便输入一段数字,然后点击更新设置。OK大功告成!

 

发表在 开源代码 | 标签为 , , | 留下评论

IMDb电影评分的计算方法是如何的?

我观看的电影很多都会先查看评分,这里就要说道IMDB了,首先介绍下IMDB是什么:互联网电影资料库(Internet Movie Database,简称IMDb)是一个关于电影演员、电影、电视节目、电视明星、电子游戏和电影制作的在线数据库。

计算方式在TOP 250的页面底部就有 http://www.imdb.com/chart/top?sort=ir,desc

The formula for calculating the Top Rated 250 Titles gives a true Bayesian estimate:

weighted rating (WR) = (v ÷ (v+m)) × R + (m ÷ (v+m)) × C

Where:

  • R = average for the movie (mean) = (Rating)
  • v = number of votes for the movie = (votes)
  • m = minimum votes required to be listed in the Top 250 (currently 25000)
  • C = the mean vote across the whole report (currently 7.0)

For the Top 250, only votes from regular voters are considered.

其中:
R = average for the movie (mean) = (Rating) (是用普通的方法计算出的平均分)
v = number of votes for the movie = (votes) (投票人数,需要注意的是,只有经常投票者才会被计算在内,这个下面详细解释)
m = minimum votes required to be listed in the top 250 (currently 1250) (进入imdb top 250需要的最小票数,只有三两个人投票的电影就算得满分也没用的)
C = the mean vote across the whole report (currently 6.9) (目前所有电影的平均得分)

另外重点来了,根据这个注释:
note: for this top 250, only votes from regular voters are considered.
只有’regular voters’的投票才会被计算在IMDB top 250之内,这就是IMDB防御因为某种电影的fans拉票而影响top 250结果,把top 250尽量限制在资深影迷投票范围内的主要方法。regular voter的标准不详。

IMDB TOP 250的电影评分计算方法正是大名鼎鼎的贝叶斯统计算法。要想领悟这种算法的精妙之处,我们首先需要看一个例子:
电影A,十个人看过,全部评分均为10分;
电影B,十万个人看过,评分平均值为9.8分。
请问你愿意相信哪部电影更加优秀??贝叶斯算法的核心思想就是避免让电影A的最终得分会超过B。

发表在 生活 | 标签为 | 留下评论

Nginx各种常用PHP开源源码的Rewrite伪静态重写规则

WordPress/PHPCMS/ECSHOP/ShopEX/SaBlog/Discuz/DiscuzX/PHPWind/Typecho/DEDECMS伪静态重写规则

WordPress:

location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}

WordPress在二级目录:

location /wp {
if (-f $request_filename/index.php) {
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite ^/wp/(.*)$ /wp/index.php;
}
}

里面的wp改成你的二级目录名称

PHPCMS:

location / {
rewrite ^/caipu-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/list-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=lists&catid=$1&page=$2 last;
rewrite ^/tag-([^\.]*)-([0-9]+)-([0-9]+).html /index.php?m=content&c=tag&catid=$2&tag=$1&page=$3 last;
rewrite ^/comment-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=comment&c=index&a=init&commentid=content_$1-$2-$3 last;
rewrite ^/([^\.]*).html /index.php?m=member&c=index&a=$1 last;
}

ECSHOP:

if (!-e $request_filename)
{
rewrite “^/index\.html” /index.php last;
rewrite “^/category$” /index.php last;
rewrite “^/feed-c([0-9]+)\.xml$” /feed.php?cat=$1 last;
rewrite “^/feed-b([0-9]+)\.xml$” /feed.php?brand=$1 last;
rewrite “^/feed\.xml$” /feed.php last;
rewrite “^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 last;
rewrite “^/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$” /category.php?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 last;
rewrite “^/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /category.php?id=$1&brand=$2&page=$3&sort=$4&order=$5 last;
rewrite “^/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$” /category.php?id=$1&brand=$2&page=$3 last;
rewrite “^/category-([0-9]+)-b([0-9]+)(.*)\.html$” /category.php?id=$1&brand=$2 last;
rewrite “^/category-([0-9]+)(.*)\.html$” /category.php?id=$1 last;
rewrite “^/goods-([0-9]+)(.*)\.html” /goods.php?id=$1 last;
rewrite “^/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /article_cat.php?id=$1&page=$2&sort=$3&order=$4 last;
rewrite “^/article_cat-([0-9]+)-([0-9]+)(.*)\.html$” /article_cat.php?id=$1&page=$2 last;
rewrite “^/article_cat-([0-9]+)(.*)\.html$” /article_cat.php?id=$1 last;
rewrite “^/article-([0-9]+)(.*)\.html$” /article.php?id=$1 last;
rewrite “^/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html” /brand.php?id=$1&cat=$2&page=$3&sort=$4&order=$5 last;
rewrite “^/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html” /brand.php?id=$1&cat=$2&page=$3 last;
rewrite “^/brand-([0-9]+)-c([0-9]+)(.*)\.html” /brand.php?id=$1&cat=$2 last;
rewrite “^/brand-([0-9]+)(.*)\.html” /brand.php?id=$1 last;
rewrite “^/tag-(.*)\.html” /search.php?keywords=$1 last;
rewrite “^/snatch-([0-9]+)\.html$” /snatch.php?id=$1 last;
rewrite “^/group_buy-([0-9]+)\.html$” /group_buy.php?act=view&id=$1 last;
rewrite “^/auction-([0-9]+)\.html$” /auction.php?act=view&id=$1 last;
rewrite “^/exchange-id([0-9]+)(.*)\.html$” /exchange.php?id=$1&act=view last;
rewrite “^/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /exchange.php?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 last;
rewrite ^/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$” /exchange.php?cat_id=$1&page=$2&sort=$3&order=$4 last;
rewrite “^/exchange-([0-9]+)-([0-9]+)(.*)\.html$” /exchange.php?cat_id=$1&page=$2 last;
rewrite “^/exchange-([0-9]+)(.*)\.html$” /exchange.php?cat_id=$1 last;
}

SHOPEX:

location / {
if (!-e $request_filename) {
rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;
}
}

SaBlog 2.0

# 只带月份的归档
rewrite “^/date/([0-9]{6})/?([0-9]+)?/?$” /index.php?action=article&setdate=$1&page=$2 last;
# 无分类翻页
rewrite ^/page/([0-9]+)?/?$ /index.php?action=article&page=$1 last;
# 分类
rewrite ^/category/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&cid=$1&page=$2 last;
rewrite ^/category/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&curl=$1&page=$2 last;
# 归档、高级搜索
rewrite ^/(archives|search|article|links)/?$ /index.php?action=$1 last;
# 全部评论、标签列表、引用列表 带分页
rewrite ^/(comments|tagslist|trackbacks|article)/?([0-9]+)?/?$ /index.php?action=$1&page=$2 last;
# tags
rewrite ^/tag/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&item=$1&page=$2 last;
# 文章
rewrite ^/archives/([0-9]+)/?([0-9]+)?/?$ /index.php?action=show&id=$1&page=$2 last;
# RSS rewrite ^/rss/([0-9]+)?/?$ /rss.php?cid=$1 last;
rewrite ^/rss/([^/]+)/?$ /rss.php?url=$1 last;
# 用户 rewrite ^/uid/([0-9]+)/?([0-9]+)?/?$ /index.php?action=article&uid=$1&page=$2 last;
rewrite ^/user/([^/]+)/?([0-9]+)?/?$ /index.php?action=article&user=$1&page=$2 last;
# 地图文件
rewrite sitemap.xml sitemap.php last;
# 自定义链接
rewrite ^(.*)/([0-9a-zA-Z\-\_]+)/?([0-9]+)?/?$ $1/index.php?action=show&alias=$2&page=$3 last;

Discuz 7:

rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;
rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;
rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page\%3D$3&page=$2 last;
rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;
rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;

Discuz X:

location / {
rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
if (!-e $request_filename) {
return 404;
}
}

Typecho:

location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}

PHPWind:

location / {
rewrite ^(.*)-htm-(.*)$ $1.php?$2 last;
rewrite ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2 last;
}

DEDECMS:

location / {
rewrite “^/index.html$” /index.php last;
rewrite “^/list-([0-9]+)\.html$” /plus/list.php?tid=$1 last;
rewrite “^/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$” /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 last;
rewrite “^/view-([0-9]+)-1\.html$” /plus/view.php?arcID=$1 last;
rewrite “^/view-([0-9]+)-([0-9]+)\.html$” /plus/view.php?aid=$1&pageno=$2 last;
rewrite “^/tags.html$” /tags.php last;
rewrite “^/tag-([0-9]+)-([0-9]+)\.html$” /tags.php?/$1/$2/ last;
break;
}

 

发表在 开源代码 | 标签为 , | 留下评论

WinSCP设置好配置文件方便迁移拷贝

为了使用方便,我们会把WinSCP的session保存起来。如何把A机器上保存的session信息迁移到B机器上,只需要把A机器的seession拷贝到B机器上就可以了。在这之前,首先需要在A机器上设定将WinSCP的session信息用文件方式存储。

1 在A机器上打开WinSCP

2 点击工具->选项->存储-> 配置存储,选择”INI file”,如下图

winscp

3 在A机器上重启WinSCP,这样session的配置信息将会在INIfile中保存。

4 在A机器上找到WinSCP的安装目录 ,C:\Program Files(x86)\WinSCP\(如果你的机器是64位),或者C:\Program Files\WinSCP\(如果你的机器是32位),复制其中的文件WinSCP.ini到B机器。

5 在B机器上重启WinSCP即可。

发表在 软件 | 标签为 | 留下评论

windows2003 IIS6环境正确获取$_SERVER[‘REQUEST_URI’]的方法

在apache或nginx的服务器上使用自带重写功能后都能正确获取的重写后的新地址,可iis6是不一样,没有自带重写功能,安装了ISAPI_Rewrite重写组件后,如果使用了重写,IIS不会将在地址栏中的URL记为REQUEST_URI,而是重写后的URI
如下面的URL
RewriteRule (.*)$ /index.php?s=$1 [I]

本来是执行Pro模块的show方法,为1,在Pro模块中获取REQUEST_URI,值应为/pro/show/id/1.htm
但在IIS中是 /index.php?s=/pro/show/id/1.htm
最后找到了段代码解决:

//IIS REQUEST_URI compatibility 是否使用了 ISAPI_Rewrite
if (isset($_SERVER[‘REQUEST_URI’])) {
//ISAPI_Rewrite 3.x
if (isset($_SERVER[‘HTTP_X_REWRITE_URL’])){
$_SERVER[‘REQUEST_URI’] = $_SERVER[‘HTTP_X_REWRITE_URL’];
}
//ISAPI_Rewrite 2.x w/ HTTPD.INI configuration 其中2.0就调用这个成功获取重写后的新地址
elseif (isset($_SERVER[‘HTTP_REQUEST_URI’])){
$_SERVER[‘REQUEST_URI’] = $_SERVER[‘HTTP_REQUEST_URI’];
}
//ISAPI_Rewrite isn’t installed or not configured
else {
$_SERVER[‘HTTP_REQUEST_URI’]=isset($_SERVER[‘SCRIPT_NAME’])?$_SERVER[‘SCRIPT_NAME’]:$_SERVER[‘PHP_SELF’];
if (isset($_SERVER[‘QUERY_STRING’])) $_SERVER[‘HTTP_REQUEST_URI’] .= ‘?’.$_SERVER[‘QUERY_STRING’];
$_SERVER[‘REQUEST_URI’]=$_SERVER[‘HTTP_REQUEST_URI’];
}
}

把以上代码加到你要获取REQUEST_URI的前面执行,根据实际情况修改!

希望能给你带来帮助,转载注明源地址!谢谢

发表在 服务器 | 标签为 , , , | 留下评论

windows2003定时自动删除指定文件夹下几天前的文件

适用于windows2003/2008服务器上如删除D:\DB下6天前的所有文件 参数/s很重要 扫描子目录,但windows2000不行:

forfiles /p D:\DB /d -6 /s /c “cmd /c del /q @file”

可以把该命令写到一个bat文件里,如Del_6day_ago.bat(路径D:\Del_6day_ago.bat),再结合任务计划一起使用,如在每天的02:00:00执行一次D:\Del_6day_ago.bat

移动文件夹,把D:\data下的所有文件移动到e:\DBbak

echo %date%  %time%
d:
cd D:\data

move * e:\DBbak

forfiles命令格式:

/p 指定的路径
/s 包括子目录
/m 查找的文件名掩码
/d 指定日期,有绝对日期和相对日期, 此处-7指当前日期 的7天前
/c 运行的命令行 表示为每个文件执行的命令。命令字符串应该
用双引号括起来。

默认命令是 “cmd /c echo @file”。下列变量
可以用在命令字符串中:
@file – 返回文件名。
@fname – 返回不带扩展名的文件名。
@ext – 只返回文件的扩展。
@path – 返回文件的完整路径。
@relpath – 返回文件的相对路径。
@isdir – 如果文件类型是目录,返回 “TRUE”;
如果是文件,返回 “FALSE”。
@fsize – 以字节为单位返回文件大小。
@fdate – 返回文件上一次修改的日期。
@ftime – 返回文件上一次修改的时间。

示例
要列出驱动器 C: 上的所有批处理文件,请键入:

forfiles /p c:\ /s /m*.bat /c”cmd /c echo @file is a batch file”

要列出驱动器 C: 上的所有目录,请键入:

forfiles /p c:\ /s /m*.* /c”cmd /c if @isdir==true echo @file is a directory”

要列出驱动器 C: 上存在时间多于 100 天的所有文件,请键入:

forfiles /p c:\ /s /m*.* /dt-100 /c”cmd /c echo @file :date >= 100 days”

要列出驱动器 C: 上 1993 年 1 月 1 日以前创建的所有文件,而且对于日期早于 1993 年 1 月 1 日的文件显示“file is quite old!”,请键入:

forfiles /p c:\ /s /m*.* /dt-01011993 /c”cmd /c echo @file is quite old!”

要按列格式列出驱动器 C: 上所有文件的扩展名,请键入:

forfiles /p c:\ /s /m*.* /c “cmd /c echo extension of @file is 0x09@ext0x09” With:

要列出驱动器 C: 上的所有批处理文件,请键入:

forfiles /p c:\ /s /m *.bat /c “cmd /c echo @file is a batch file”

要列出驱动器 C: 上的所有目录,请键入:

forfiles /p c:\ /s /m *.* /c “cmd /c if @isdir==true echo @file is a directory”

要列出驱动器 C: 上存在时间多于 100 天的所有文件,请键入:

forfiles /p c:\ /s /m *.* /d t-100 /c “cmd /c echo @file :date >= 100 days”

要列出驱动器 C: 上 1993 年 1 月 1 日以前创建的所有文件,而且对于日期早于 1993 年 1 月 1 日的文件显示“file is quite old!”,请键入:

forfiles /p c:\ /s /m *.* /d t-01011993 /c “cmd /c echo @file is quite old!”

要按列格式列出驱动器 C: 上所有文件的扩展名,请键入:

forfiles /p c:\ /s /m*.* /c “cmd /c echo extension of @file is 0x09@ext0x09

发表在 服务器 | 标签为 | 留下评论

tar使用exclude参数排除过滤压缩不需要文件或目录

tar压缩不包含不想要的文件或者文件夹      压缩包很利于传送,备份等等。但比如大量的日志文件一般是不需要备份,或者需要分开备份。       tar –exclude似乎可以解决

后来就照葫芦画瓢写了个这样的命令

tar zcvf demo.tar.gz –exclude=demo/logs/ –exclude=demo/webapp/xxxx//WEB-INF/logs/  demo

但是这样还是会把这些个日志文件全部打包进去

后来搞了很久才知道,正确的写法应该是

tar zcvf demo.tar.gz –exclude=demo/logs –exclude=demo/webapp/xxxx//WEB-INF/logs  demo

因为linux里面的bash很好用,经常用TAB键自动补全路径,这样文件夹后面都会加上/符号

同样支持通配符,例如:不想要*.sis、*.sisx、*.apk

查看一下,压缩包内的文件(非解压)

tar  -tf  test.tar.gz

 

发表在 开源代码 | 标签为 , | 留下评论

国内开源镜像网站几个典型的网址

最近为了配置服务器下载开源软件寻找了国内的地址,外国下载始终比较忙,这里分享几个:

几乎常用的软件都能找到:
搜狐开源镜像站:http://mirrors.sohu.com/
网易开源镜像站:http://mirrors.163.com/
阿里云开源镜像站:http://mirrors.aliyun.com/

其中搜狐最全了:centos/nginx/apache/mysql都有

php windows版:http://windows.php.net/download/

以后发现其它再继续补上,转载请注明源址!

发表在 开源代码 | 标签为 | 留下评论

win server 2008+IIS7.5+ASP Access .microsoft jet database engine错误

今天找了台windows2008 server版的服务器玩了下,遇到无法访问asp和mdb数据库的问题:解决如下

1. 让IIS7支持ASP

Windows server 2008中IIS7是默认不安装的,所以在安装完Windows server 2008之后如果需要安装IIS7的话,就要自己动手了。安装的步骤为:开始》控制面板》程序》打开或关闭Windows功能》Internet信息服 务(以前操作系统版本里面的”Windows components” 在server 2008里面叫做”Programs and Features”)。IIS7安装时需要注意的是,如果需要ASP、ASP.NET等的支持,是需要把功能模块给装上的,默认是不安装的。

2. 解决IIS7中.mdb数据库问题。

默认装完IIS7之后,使用ASP程序会发现提示数据库连接失败,在网上找了找,说是因为MS Jet引擎改变了临时目录的位置,但是又没有对临时的存取权限,导致数据库使用失败。

给“系统盘:/Windows/ServiceProfiles/NetworkService/AppData/Local/Temp”目录添加 一个“Authenticated Users”的用户,其中AppData目录是隐藏的,在进入的时候可以直接在地址栏输入路径,或者在文件夹选项里显示隐藏文件。该项尤其重要,不设置则一直提示microsoft jet database engine 80004005 错误。

设置权限步骤:右击Temp文件夹,选择“属性”》选择“安全”选项卡》单击“编辑”》出来“Temp 的权限”对话框,单击“添加”,在下面的“输入对象名称来选择”中输入Authenticated Users,确定》返回到“Temp 的权限”,将Authenticated Users的权限中的完全控制给勾上,确定》确定。

链接方式:

ServerPath=Server.MapPath(“/xxx.mdb”) connstr=”Provider=Microsoft.Jet.OLEDB.4.0;Data Source=” & ServerPath Set schooldb=Server.CreateObject(“Adodb.Connection”) schooldb.Open connstr

Microsoft JET Database Engine 错误 ‘80040e09’ 这个提示是因为文件权限问题导致的,选择对应用户写入权限即可!

3. windows 2008 64位系统解决IIS7中.mdb数据库问题。

如果你使用64位系统,那可能如上办法也解决不了,原因是在64位Windows8操作系统中,IIS7.5应用程序池默认没有启用32位应用程序,而我们连接ACCESS数据库的驱动程序Microsoft.Jet.OLEDB.4.0是32位的,所以就出错了,要想正常运行,只需启用32位应用程序即可。方法如下:

1、打开IIS信息服务管理器,在最右边的窗口中点击“查看应用程序池”链接

windows7,64位,asp不能连接mdb数据库的解决方法 - wangpfsir - wangpfsir的博客

2、在出现的窗口中点击“设置应用程序池默认设置”链接,在弹出的窗口中将“常规”中的“启用32位应用程序”设置为“True”即可

windows7,64位,asp不能连接mdb数据库的解决方法 - wangpfsir - wangpfsir的博客

Other tips in IIS7:

a. 启用父路径。       常用的 ../ 父路径使用在IIS7里面是默认不支持的。       在iis的主页–>ASP -> 双击打开-> 启用父路径: True

b. 向浏览器返回错误信息。       默认网页代码出错浏览器会出现“An error occurred on the server when processing the URL. Please contact the system administrator”。      在iis的主页–>ASP -> 双击打开->调试错误-> 将错误发送到浏览器: True

发表在 服务器 | 标签为 , | 留下评论