欢迎大家光临【无师自通-教程网】您的到来是我们的荣幸。本站提供photoshop教程,ps教程,flash教程,cad教程,网页制作教程,excel教程,asp教程,vb教程,3d教程,c语言教程,html教程,coreldraw教程,dreamweaver教程,java教程,3dmax教程 等各种教程为主题的内容和服务,相信您会在这里找到您所需要的东东。无师自通伴您一生-谢谢您的光临!!
网站地图 设为首页
简繁切换 加入收藏
栏目待定 留言本站
您现在的位置: 无师自通-教程网 >> 操作系统 >> Linux >> Linux安装 >> 教程正文

  没有公告

教程: Linux教程-安装经验-配置Sun ONE Web Server支持JSP,PHP,CGI 更多...
教程: Linux教程-安装经验-配置Sun ONE Web Server支持JSP,PHP,CGI
前言:

目前在linux系统上,存在两个最强的web服务器,一个是apache一个就是,sun的Sun ONE Web Server,在网络上最apache的各种应用
写的比较多,但是Sun ONE Web Server 则比较少,今日闲来无事,便写了一个简单的配置教程

所需软件(因为软件较大无法提供本地下载)

1,Sun ONE Web Server 6.1

下载地址

http://wwws.sun.com/software/download/products/3f4f998d.html,在sun的主页上,是OEM版,60多M下载需要注册

2,php 4.3.6

x下载地址
http://cn.php.net/get/php-4.3.6.tar.bz2/from/a/mirror

首先安装SUN ONE web server ,解压缩sun-webserver61-rh72.tar.gz这个软件包,到一个目录里,例如sun,然后运行安装程序

cd /sun
tar -zxf sun-webserver61-rh72.tar.gz
./setup

以root进行安装

过程如下,基本安默认安装就行

Would you like to continue with installation? [Yes]: 回车
Do you agree to the license terms? [No]:yes

Choose an installation type:

1. Express installation
Allows you to quickly install the servers using the most
common options and pre-defined defaults. Useful for quick
evaluation of the products.

2. Typical installation
Allows you to specify common defaults and options.

3. Custom installation
Allows you to specify more advanced options. This is
recommended for experienced server administrators only.

To accept the default shown in brackets, press the Enter key.

Choose an installation type [2]: 回车(建议安典型安装)

Install location [/opt/SUNWwbsvr]:回车(默认安装目录)
Sun ONE Web Server components:

Components with a number in () contain additional subcomponents
which you can select using subsequent screens.

1. Sun ONE Web Server, Enterprise Edition (2)


Specify the components you wish to install [All]:回车(安装Sun ONE Web Server, Enterprise Edition)

Components with a number in () contain additional subcomponents
which you can select using subsequent screens.

1. Server Core
2. Java Development Kit


Specify the components you wish to install [1, 2]: 回车(安装代码和开发包)

To accept the default shown in brackets, press the Enter key.

Computer name [lee.(none)]:回车(设置域名,默认主机名)

System User [nobody]:回车(设置启动这个服务的用户)
System Group [nobody]:回车(设置启动这个服务的用户组)
Run Web Server Administration Server as [root]:回车(运行管理服务的用户)
Web Server Admin Server User Name [admin]:回车(web管理员用户名)
Web Server Admin Server Password:(密码)
Web Server Admin Server Password (again):(确认密码)
Web Server Admin Server Port [8888]:回车(web管理的端口)
Web Server Port [80]:回车(运行web服务的端口一般是80,因为我的服务器装了apache,所以改成了88)
Web Server Content Root [/opt/SUNWwbsvr/docs]:回车(网页根目录)
Web Server Start On Boot [yes]:回车(引导时启动)
然后会拷贝安装文件,一切顺利,就会安装完毕。

因为sun one web server本身支持jsp,所以不用配置。
下面介绍如何,配置cgi和php

首先配置CGI

cd /opt/SUNWwbsvr/https-lee/config
进入虚拟服务器的配置目录
vi obj.conf
打开配置文件,并加入如下内容
在的下面加入
Service fn=\"send-cgi\" type=\"magnus-internal/cgi\" user=\"$user\" group=\"$group\" dir=\"$dir\" chroot=\"$chroot\" nice=\"$nice\"

在文件最后加入

ObjectType fn=\"force-type\" type=\"magnus-internal/cgi\"
Service fn=\"send-cgi\" user=\"$user\" group=\"$group\" dir=\"$dir\" chroot=\"$chroot\" nice=\"$nice\"

如果这段有,就不必加入了

然后运行
cd /opt/SUNWwbsvr/https-lee
./restart重启动服务器。
这样在sun one web server就能运行

[1] [2] 下一页

教程录入:admin    责任编辑:admin 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
     
     
     
     

    dos入门教程

    dos入门教程-2

    dos入门教程-1
    免责声明!本站资料大部分来自于互联网,其版权归原作者或其他合法者所有.如内容涉及或侵犯了您的权益,请通知本人,我将尽快处理!.欢迎您的光临。
    辽ICP备07003958号
    无师自通,伴你一生-教程网