作者归档:kaisin

win2003服务器安全配置清单

Web服务器安全配置的内容

1终端服务默认端口号:3389。
更改原因:不想让非法用户连接到服务器进行登录实验。当这台服务器托管在外时更不希望发生这种情况,呵呵,还没忘记2000的输入法漏洞吧?
更改方法:
  (1)、第一处[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Terminal Server \ Wds \ rdpwd \ Tds \ tcp],看到右边的PortNumber了吗?在十进制状态下改成你想要的端口号吧,比如7126之类的,只要不与其它冲突即可。
  (2)、第二处[HKEY...

继续阅读

发表在 article | 标签为 | 32条评论

Install PHP to IIS (FastCGI)

1.下载FastCGI For IIS6

http://www.iis.net/expand/FastCGI

下载之后,双击运行进行安装。

安装后在 C:\WINDOWS\system32\inetsrv 目录下产生了五个文件。

同时在 IIS 的 “Web 服务扩展”里多了 FastCGI Handler。

2.下载PHP5.3.2 Windows
http://windows.php.net/download/

下载 .zip 格式的版本,下载后解压至 D:\PHP 目录,并给 IIS 启动帐户组或用户赋予读取和运行权限。

你可以根据自己的意愿解压到别的目录。

3.注册PHPFastCGI

打开 ...

继续阅读

发表在 web server | 标签为 , | Install PHP to IIS (FastCGI)已关闭评论

php中的与当前文件名有关一些常量

__FILE__ ,
getcwd(),
$_SERVER["REQUEST_URI"],
$_SERVER["SCRIPT_NAME"],
$_SERVER["PHP_SELF"],
$_SERVER["SCRIPT_FILENAME"],
来观察一下这些变量或函数的异同.
假设有一个请求地址为:
http://localhost:8080/test.php/age=20
而test.php 的完整路径是: D:/server/www/example/test.php
1) getcwd()
将得到浏览器请求的页面文件所在的目录. 即test.php 文件所... 继续阅读

发表在 article | 标签为 | php中的与当前文件名有关一些常量已关闭评论

windows server2003 各版本区别

比较 Windows Server 2003 的版本

使用这组表比较 Windows Server 2003 系列的特性,这组表按功能组织。

特性

图例: Feature included or supported = 支持全部功能 Feature partially supported = 支持部分功能 Feature not included = 不支持该功能

特性 标准版 企业版 数据中心版 Web 版
硬件规格
64位支持1 Feature not included Feature included Feature included Feature not included
热插拔内存2, 3 Feature not included Feature included Feature included Feature not included
非均一内存访问 (NUMA)3 Feature not included Feature included Feature included Feature not included
数据中心计划 Feature not included Feature not included Feature included Feature not included
2 GB最大内存 Feature not included Feature not included Feature not included Feature included
4 GB最大内存 Feature included Feature not included Feature not included Feature not included
32 GB最大内存4 Feature not included Feature included Feature not included Feature not included
64 GB最大内存5 Feature not included Feature partially supported Feature included Feature not included
1 TB最大内存6 Feature not included Feature not included Feature partially supported Feature not included
2-路 SMP Feature included Feature included Feature not included Feature included
4-路 SMP Feature included Feature included Feature not included Feature not included
8-路 SMP Feature not included Feature included Feature included Feature not included
32-路 SMP Feature not included Feature not included Feature included Feature not included
64-路 SMP Feature not included Feature not included Feature included Feature not included
目录服务
Active Directory Feature included Feature included Feature included Feature partially supported
Microsoft Identity Integration Serve...

继续阅读

发表在 article | 标签为 | 71条评论

最全的ASP.NET开源CMS汇总 转

编辑点评:汇总了一些asp.net开源cms,希望对学习ASP.NET的人员带来帮助.

  国内: 1.SiteServer CMS SiteServer CMS 网站内容管理系统(著作权登记号2008SR15710)是定位于中高端市场的CMS内容管理系统,能最近汇总了一些asp.net开源cms,希望对学习ASP.NET的人员带来帮助:

  国内CMS:

  1.SiteServer CMS

  SiteServer CMS 网站内容管理系统(著作权登记号2008SR15710)是定位于中高端市场的CMS内容管理系统,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大...

继续阅读

发表在 article | 最全的ASP.NET开源CMS汇总 转已关闭评论

nginx处理web请求分析

Nginx是什么?Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx,它的发音为“engine X”, 是一个高性能的HTTP和反向代理服务器,同时也是一个IMAP/POP3/SMTP 代理服务器.Nginx是由俄罗斯人 Igor Sysoev为俄罗斯访问量第二的 Rambler.ru站点开发的,它已经在该站点运行超过两年半了。Igor Sysoev在建立的项目时,使用基于BSD许可。

笔者的VPS使用的是nginx服务器,以前配置都是从网上拷贝过来的,一直一知半解,正好手头有VPS可以玩,趁这个机会认真学习下nginx的配置.下面的文章是讲nginx如何处理web请求(web r...

继续阅读

发表在 web server | 标签为 | nginx处理web请求分析已关闭评论

nginx设置SSL反向代理

Nginx的反向代理通常用来映射内网中提供的Apache、IIS、Lighttpd服务,以实现负载均衡;同时,由于动态服务程序运行在内网,服务器的整体安全性也有所提高,那么怎样用nginx设置SSL反向代理呢?

使用nginx设置SSL的优点不少:

  1. 易用性:nginx安装、升级简单,nginx的平滑升级使得网站服务器不需要重启就可以完成升级任务。
  2. 安全性:nginx对于代理是透明的,因此,相当于为放置在代理后的Apache等服务器提供一道安全屏障、可以抵御一些基本web的攻击。
  3. 低负载:负载低是nginx的另一大优点。可以在nginx代理后配置多个apache服务器以满足不同需求
  4. 缓存:可以将除...

继续阅读

发表在 web server | 标签为 , , | nginx设置SSL反向代理已关闭评论

kb968389 引起局域网无法共享

windows kb968389 补丁可能会引起局域网无法共享

继续阅读

发表在 article | kb968389 引起局域网无法共享已关闭评论

兼容性好,自动置顶的淘宝悬浮工具栏,DIV绝对置顶(兼容IE,FF)

对于IE7,我们可以利用DIV的"position: fixed;"属性。代码如下:

#ie7_ff{
       position: fixed;
       top: 0px;
       left: 0px;
       width: 120px;
}

这段代码对于Firefox浏览器同样适用。但是IE6不支持“position: fixed;”属性。所以针对IE6我们可以用如下代码:

#ie6_ie7{
       position: absolute;
       width: 120px;
       left: 140px;
...

继续阅读

发表在 article | 兼容性好,自动置顶的淘宝悬浮工具栏,DIV绝对置顶(兼容IE,FF)已关闭评论

SQL里面随机选择数据行

SELECT TOP 10 OrderID, NewID() as Random
FROM Orders
ORDER BY Random  

关键在于NewID()这个函数,他生成一个随机数。

随机提取10条记录的例子:
SQL Server:
Select Top 10 * From 表 Order By NewID()

Access:
Select Top 10 * From 表 Order By Rnd(ID)  

 Random rnd = new Random(unchecked((int)DateTime.Now.Ticks));
 int intRandomNumber = rnd.Next();
Rnd(ID) 其中的ID是自动编号字段,可以利用其他任何数值来完成,比如用姓名字段(UserName)
Select Top 10 * From 表 Order BY Rnd(Len(UserName))

MySql:
Select * From 表 Order By Rand() Limit 10

SQL语句真是博大精...

继续阅读

发表在 article | 标签为 , , | SQL里面随机选择数据行已关闭评论

JW FLV Player

一、JW Player是什么?

简单地说,JW Player是一种基于flash的交互式网页媒体播放器。它是由Jeroen 和 Wijering共同建立的LongTail Video所开发,问世于2005年,当时仍名不经传的YouTube首次采用的播放器就是JW Player。官方网址:http://www.longtailvideo.com/

JW Player含:FLV Player、WMV Player、Image Rotator和Desktop Player四种,除了最后一种实为桌面播放器,其他三种都是网页播放器。本篇内容仅限FLV Player。

二、JW FLV Media Player简介

JW FLV Media Player可播放Adobe Flash Player所支持的媒体,具体包括:FLV、MP4、MP3、AAC、JPG、PNG和GIF等,还支持RTMP、HTTP、实时视频流、各种播放清单格式、灵活的设置和广泛的javascript API。此外它还提供多种外观、功能性插件来扩展播放器,以便我们可以分享、推荐、搜索、分析甚至广告投放。

目前(2009-10-20)最...

继续阅读

发表在 article | 标签为 | JW FLV Player已关闭评论

IIS7 Discuz! X1伪静态设置方法

IIS7官方: http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/

微软在IIS7中添加了URL的重写模块,并且免费使用,可以导入.htaccess规则,确实是个不错的选择

URL Rewrite Module

URL Rewrite Module是一个基于规则的URL重写引擎,用于在URL被Web服务器处理之前改变请求的URL。对于动态Web应用程序,它可以为用户和搜索引擎提供友好的URL,URL重写和重定向是基于HTTP头和服务器变量的,并可以对站点内容进行访问控制。

iis 7的主机才支持伪静态模块.

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
    <system.webServer>
        <rewrite>
   &...

继续阅读

发表在 web server | IIS7 Discuz! X1伪静态设置方法已关闭评论

最新优惠25%的godaddy优惠码,ixwebhosting优惠码,godaddy最新优惠码

Godaddy默认为购买亚太机房主机(Fast Asia Pacific-based servers),国内访问速度慢,记得要购买美国机房的主机。
美国机房(Our World-Class Data Center)购买链接入口:
欧洲机房(Fast European-based servers)购买链接入口:
亚太机房主机(Fast Asia Pacific-based servers)购买链接入口:
 
----------------------------------------...

继续阅读

发表在 article | 最新优惠25%的godaddy优惠码,ixwebhosting优惠码,godaddy最新优惠码已关闭评论

视频转换 视频水印 mencoder+ffmpeg+aviysth+ffdshow

印视频转换总结(win):

 

一.              视频转换水印资料的搜集整理如下:

二.              1.现在网络上大多都用页面中内嵌flash播放器播放flv格式的视频,原理是通过mencoder+ffmpeg+avisyth通过mencoder将上传的视频通转换为avi格式,用ffmpeg将avi格式转换为flv格式,在配合avisyth添加水印,字幕,以及格式的转换等,了解到还有一种添加水印的方式就是用ffmpeg将视频按每一帧截图,添加水印,再用mencoder将图片合成视频,比较繁琐。

三.              mencoder(隶属Linux下MPlaye...

继续阅读

发表在 article | 标签为 , , | 视频转换 视频水印 mencoder+ffmpeg+aviysth+ffdshow已关闭评论

微软分布式缓存服务Velocity

使用微软分布式缓存服务Velocity Part 1

http://msdn.microsoft.com/zh-cn/partners/dd367796

使用微软分布式缓存服务Velocity Part 2

http://msdn.microsoft.com/zh-cn/partners/dd367798.aspx

 

Microsoft Distributed Cache Velocity 分布式缓存

http://blog.csdn.net/yangjian15/archive/2009/12/18/5033248.aspx

继续阅读

发表在 article | 标签为 | 微软分布式缓存服务Velocity已关闭评论