在HP-UX操作系统上开启Apache服务

datouniao 2007-05-22

  Apache是当前比较流程的Web服务器软件,其开放源码、方便易用、跨平台的优点让越来越多的人喜欢上它。

  下面我们就来看看如何在HP-UX操作系统上开启Apache服务。

  1. 检查是否安装了Apache软件
  #swlist -l bundle | grep -i Apache
  hpuxwsApache B.2.0.55.03 HP-UX Apache-based Web Server

  这表明已经安装了Apache软件,版本为2.0.55.03,如果没有安装,则可以到www.apache.org的官方站点下载

  2. 开启Apache服务
  一般来说,Apache目前已经装在各类操作系统里面了,HP-UX操作系统也不例外——除非在安装操作系统的时候去掉该软件。

  2.1 修改/etc/rc.config.d/hpws_apacheconf文件

  将HPWS_APACHE_START=0修改成HPWS_APACHE_START=1

  该文件的默认值如下:

# Apache Web Server configuration file
# Set HPWS_APACHE_START to 1 to have the Apache web-server started by the
# init process.
HPWS_APACHE_START=0
HPWS_APACHE_START_SSL=0

# Set HPWS_APACHE_HOME to the location of the Apache web-server.
# Default is /opt/hpws/apache
HPWS_APACHE_HOME=/opt/hpws/apache

相关推荐