IIS
一.软件简介
本文主要讲述如何用IIS+Tomcat3.1支持JSP及servlet环境。正常情况下IIS不支持servlet及JSP环境。我们通过使用一个IIS到Tomcat重定向的插件(plugin)使用IIS能够将所有的servlet及JSP请求发送到Tomcat执行以实现servlet及JSP环境。
二.文档定义
"tomcat_home"--假定为你安装tomcat的目录。
三.软件环境
Microsoft Windows NT 4.0 SP6a
IIS 4.0
Tomcat 3.1
四.获得所需软件
Microsoft Windows NT Server 4.0,请你自行准备。
Microsoft Windows NT Option Pack(安装IIS),请你自行准备。
IIS server的Tomcat插件
Tomcat 3.1
五.安装
(1)请参考前面的文章,安装Tomcat 3.1 for win。
(2)确认第一步安装成功后,安装配置IIS的Tomcat插件
在注册表中,增加一个新的键值:
"HKEY_LOCAL_MACINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0"
增加一个名为"extension_uri"的字符串,值为"/jakarta/isapi_redirect.dll"
增加一个名为"log_filei"的字符串,值为"日志文件的文件全名l"(例如c:\tomcat\IISisapi.log)
增加一个名为"log_level"的字符串,值为"你想记录的error级别"(可以是以下值中的一个:debug,inform,error,emerg)
增加一个名为"worker_file"的字符串,值为"tomcat_home\conf\workers.properties"(将这里的tomcat_home替换成你安装tomcat的路径全名,例如c:\tomcat)
增加一个名为"worker_mount_file"的字符串,值为"tomcat_home\conf\uriworkermap.properties"(将这里的tomcat_home替换成你安装tomcat的路径全名,例如c:\tomcat)
进入IIS管理控制台,选中"WEB站点"->按右键->选中属性->isapi筛选器中将"isapi_redirect.dll"加入到筛选器列表中。
重新启动IIS,确认在isapi筛选器中我们新加的筛选器有一个向上的绿色箭头。
(1)加上jsp的web引用目录(Context)
在Tomcat里加上一个web引用目录,具体步骤请看本区文章
加入一个web引用目录到IIS ISAPI 重定向插件
打开"tomcat_home\conf\worker.properties"文件,加入如下配置行:
/"web引用目录"/*=ajp12(例如/jsp/*=ajp12)。

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Zend Studio 13.0.1
Powerful PHP integrated development environment

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
