很简单,不多说了。我们假设把他安装在D:\mysql目录下,打开该目录下的bin文档夹,运行winmysqladmin.exe配置mysql
输入管理员的用户名和密码就能够了。
以后每次启动,都能够在服务里面看到MYSQL进程已打开。
4,安装phpMyAdmin-2.6.0-pl2
phpadmin无需安装,直接COPY到网页目录下即可,将其命名为phpadmin。打开C:\Windows/php.ini文档, 查找 extension=php_mysql.dll 字串.删除掉前面的 ; 号extension=php_mysql.dll,启动 PHP 对 MYSQL 模块支持.
打开phpmyadmin文档夹下面的config.inc.php3文档,定位到下面的内容:
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
将host,user和password修改成您自己的IP地址,用户和密码,打开网页http://127.0.0.1/phpmyadmin/index.php,假如能够看到下面的页面,恭喜您,安装成功了。
5,安装ActivePerl-5.8.4.810-MSWin32-x86
安装过程很简单,一路NEXT就能够了。我们将其安装在D:\usr下面,注意,ActivePerl-5.8.4.810-MSWin32-x86默认的根目录是Perl文档夹,按照国际上面的惯例,最好是usr作我根目录,以免在以后调试程式时候出现麻烦。
配置Apache让其支持CGI和PL文档。用记事本打开 D:\Apache2\conf\ (我这里是按照默认安装路径安装,后面的配置按照自己的安装路径做相应的改变) 目录下的 httpd.conf 文档,寻找
#ScriptAlias /cgi-bin/ "D:/Apache/cgi-bin/"
把前面的#号去掉 ,把D:/Apache/cgi-bin/新开为您需要支持CGI程式的目录,我配置的是f:/Web/cgi-bin。
寻找
<Directory "D:/Apache/cgi-bin">
同样,也修改为f:/Web/cgi-bin
寻找
AddHandler cgi-script .cgi
后面加上.pl ,即 AddHandler cgi-script .cgi .pl
OK,自己写个CGI程式测试一下:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
保存为hello.cgi,放置在F:\WEB\CGI-BIN文档夹下面,使用浏览器打开http://127.0.0.1/cgi-bin/hello.cgi,出现如下的页面,安装成功。
6,安装j2sdk-1_4_2-windows-i586
由于安装tomcat前需要安装j2sdk,所以要先安装j2sdk-1_4_2-windows-i586,过程很简单,安装到D:\j2sdk文档夹。
配置环境变量,
JAVA_HOME = D:\j2sdk
在Path最后附加:
Path = ......;%JAVA_HOME%\bin
打开CMD,输入java –version,显示下面的内容
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
输入javac,显示:
C:\Documents and Settings\lin>javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
表示JAVAC也安装成功。
7.安装jakarta-tomcat-4.1.31
jakarta-tomcat无需安装,下载压缩包以后直接解压到D:\TOMCAT目录下,配置环境变量
TOMCAT_HOME =D:\TOMCAT
打开D:\tomcat\bin目录下的startup.bat启动tomcat,假如出现下图的状态,表示启动成功。如图:
使用MYIE打开 http://127.0.0.1:8080/index.jsp ,能够看到如下的页面,再次恭喜您,tomcat也安装成功。tomcat默认的HTTP端口和用户名能够去D:\tomcat\conf目录下修改server.xml和tomcat-user.xml文档。
整合Apache和Tomcat。用记事本打开 D:\Apache2\conf\ 目录下的 httpd.conf 文档,在最后面增加下面的内容:
LoadModule jk2_module modules/mod_jk2.so
在D:\Apache2\conf目录下新建一个workers2.properties文档,内容如下:
[shm]
info=Scoreboard. Requried for reconfiguration and status with multiprocess servers.
file=anon
# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
group=lb
[status:]
info=Status worker, displays runtime information
[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:
假如懒得写代码,将该文档夹下面的workers2.properties.sample改成workers2.properties即可。
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




