yum install libxml2 libxsl -y
tar -xzf cmake-<version>.tar.gz
cd cmake-</version><version>
make install

Install hiawatha

tar zxvf hiawatha-10.10.tar.gz
cd hiawatha-10.10
mkdir build
cd build
make && make install
hiawatha -k //检测安装是否成功,如果输出以下提示,则表示安装成功
Reading hiawatha.conf
Configuration OK
If the CMake version installed on your system is lower than 3.0, remove it, download the latest version from and install it.

	tar -xzf cmake-<version>.tar.gz
	cd cmake-</version><version>
	sudo make install

Use the following commands to compile and install Hiawatha. This will install Hiawatha in /usr/local.

	mkdir build
	cd build
	cmake .. [options]
	sudo make install/strip

The following options for cmake are available. Default value is in uppercase.

	-DENABLE_CACHE=ON|off              Enable internal cache support.
	-DENABLE_MONITOR=on|OFF            Enable support for the Hiawatha Monitor.
	-DENABLE_RPROXY=ON|off             Enable reverse proxy support.
	-DENABLE_TLS=ON|off                Enable TLS (mbed TLS) support.
	-DENABLE_TOMAHAWK=on|OFF           Enable Tomahawk, the Hiawatha command shell.
	-DENABLE_TOOLKIT=ON|off            Enable the URL Toolkit.
	-DENABLE_XSLT=ON|off               Enable XSLT support.
	-DUSE_SYSTEM_MBEDTLS=on|OFF        Compile Hiawatha against the system's mbed TLS library (>=2.0.0).

The following path settings are available for cmake.

	-DCMAKE_INSTALL_PREFIX=<path>      The prefix for all other CMAKE_INSTALL directories.
	-DCMAKE_INSTALL_BINDIR=</path><path>      Location of the ssi-cgi binary.
	-DCMAKE_INSTALL_SBINDIR=</path><path>     Location of the other Hiawatha binaries.
	-DCMAKE_INSTALL_SYSCONFDIR=</path><path>  The configuration files will be installed in </path><path>/hiawatha.
	-DCMAKE_INSTALL_LIBDIR=</path><path>      The mbed TLS shared library will be installed in </path><path>/hiawatha.
	-DCMAKE_INSTALL_MANDIR=</path><path>      Manual pages will be installed in </path><path>/man1.
	-DCONFIG_DIR=</path><path>                Location of the Hiawatha configuration files.
	-DLOG_DIR=</path><path>                   Log directory used in the default hiawatha.conf.
	-DPID_DIR=</path><path>                   Location of the Hiawatha PID file.
	-DWEBROOT_DIR=</path><path>               Webroot directory used in the default hiawatha.conf.
	-DWORK_DIR=</path><path>                  Path of directory where Hiawatha can write temporary files.

Look inside the directory 'extra' for scripts to build packages for Debian, Red Hat, MacOS X and Windows (via Cygwin).

Configuration hiawatha

vi /usr/local/etc/hiawatha/hiawatha.conf
# Hiawatha main configuration file
ServerId = www:www
ConnectionsTotal = 250
ConnectionsPerIP = 25
SystemLogfile = /usr/local/var/log/hiawatha/system.log
GarbageLogfile = /usr/local/var/log/hiawatha/garbage.log</p> <p># BINDING SETTINGS
# A binding is where a client can connect to.
Binding {
Port = 80
# Interface =
# MaxKeepAlive = 30
# TimeForRequest = 3,20
#Binding {
# Port = 443
# Interface = ::1
# MaxKeepAlive = 30
# TimeForRequest = 3,20
# SSLcertFile = hiawatha.pem
# Deny service to clients who misbehave.
BanOnGarbage = 300
BanOnMaxPerIP = 60
BanOnMaxReqSize = 300
KickOnBan = yes
# These settings can be used to run CGI applications.
#CGIhandler = /usr/bin/perl:pl
#CGIhandler = /usr/local/php/bin/php-cgi:php
#CGIhandler = /usr/bin/python:py
#CGIhandler = /usr/bin/ruby:rb
#CGIhandler = /usr/bin/ssi-cgi:shtml
#CGIextension = cgi</p> <p>FastCGIserver {
FastCGIid = PHP5
ConnectTo = /var/lib/hiawatha/php-fcgi.sock //根据自己所在的位置填写
Extension = php
}</p> <p># URL TOOLKIT
# This URL toolkit rule was made for the Banshee PHP framework, which
# can be downloaded from
#UrlToolkit {
# ToolkitID = banshee
# RequestURI isfile Return
# Match ^/(css|files|images|js|slimstat)($|/) Return
# Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
# Match .*\?(.*) Rewrite /index.php?$1
# Match .* Rewrite /index.php
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
Hostname =
WebsiteRoot = /home/wwwroot
StartFile = index.html
AccessLogfile = /usr/local/var/log/hiawatha/access.log
ErrorLogfile = /usr/local/var/log/hiawatha/error.log
ErrorHandler = 404:/error.cgi</p> <p># VIRTUAL HOSTS
# Use a VirtualHost section to declare the websites you want to host.
#VirtualHost {
# Hostname =
# WebsiteRoot = /home/wwwroot
# StartFile = index.php
# AccessLogfile = /var/www/my-domain/log/access.log
# ErrorLogfile = /var/www/my-domain/log/error.log
# TimeForCGI = 5
# UseFastCGI = PHP5
# UseToolkit = banshee
# You can specify some settings per directory.
#Directory {
# Path = /home/baduser
# ExecuteCGI = no
# UploadSpeed = 10,2

sicnature ---------------------------------------------------------------------
Your current IP address is:
Your IP address location: 美国 弗吉尼亚州阿什本amazon数据中心
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 海南仙岛海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source



电子邮件地址不会被公开。 必填项已用*标注