hiawatha--a security-focused, lightweight Web server application ...

Source: Internet
Author: User
Tags sha1

What the? You've never heard of Hiawath? Well, actually candy never heard of it. When I recently focused on Web application servers, I inadvertently wandered through the open source community and found it--hiawatha.

Today we're going to have a look at our pig feet (Hiawatha) How to install the configuration.

1, first we enter the official website of the download page, download the latest source code Https://www.hiawatha-webserver.org/download;Candy download is 9.14 version;

[Email protected] ~]# wget https://www.hiawatha-webserver.org/files/hiawatha-9.14.tar.gz--2015-09-17 13:44:19--. tar.gz Parsing host www.hiawatha-webserver.org ... 141.138.201.249, 2a02:348:80:c9f9::1 is connecting www.hiawatha-webserver.org|141.138.201.249|:443 ... is connected. An HTTP request has been made and is waiting for a response ... $ OK Length: 891930 (871K) [application/x-gzip] saving to: "Hiawatha-9.14.tar.gz" 100%[===================================== =>] 891,930 311k/s in 2.8s2015-09-17 13:44:27 (311 kb/s)-Saved "hiawatha-9.14.tar.gz" [891930/891930])

2, good, software download down, we extracted to the/USR/SRC directory below

[[email protected] ~]# tar -zxvf hiawatha-9.14.tar.gz -c /usr/src/  hiawatha-9.14/mbedtls/licensehiawatha-9.14/mbedtls/2.0.0.patchhiawatha-9.14/mbedtls/include/mbedtls/ aesni.hhiawatha-9.14/mbedtls/include/mbedtls/arc4.hhiawatha-9.14/mbedtls/include/mbedtls/timing.hhiawatha-9.14 /mbedtls/include/mbedtls/pk_internal.hhiawatha-9.14/mbedtls/include/mbedtls/error.hhiawatha-9.14/mbedtls/ include/mbedtls/oid.hhiawatha-9.14/mbedtls/include/mbedtls/x509_crl.hhiawatha-9.14/mbedtls/include/mbedtls/ ecdsa.hhiawatha-9.14/mbedtls/include/mbedtls/threading.hhiawatha-9.14/mbedtls/include/mbedtls/ pem.hhiawatha-9.14/mbedtls/include/mbedtls/ssl_cache.hhiawatha-9.14/mbedtls/include/mbedtls/ asn1write.hhiawatha-9.14/mbedtls/include/mbedtls/pk.hhiawatha-9.14/mbedtls/include/mbedtls/ blowfish.hhiawatha-9.14/mbedtls/include/mbedtls/sha1.hhiawatha-9.14/mbedtls/include/mbedtls/ X509.hhiawatha-9.14/mbedtls/include/mbedtls/version.hhiawatha-9.14/mbedtls/include/mbedtls/padlock.hhiAwatha-9.14/mbedtls/include/mbedtls/ssl_ciphersuites.hhiawatha-9.14/mbedtls/include/mbedtls/ssl_ Internal.hhiawatha-9.14/mbedtls/include/mbedtls/base64.hhiawatha-9.14/mbedtls/include/mbedtls/ssl_ cookie.hhiawatha-9.14/mbedtls/include/mbedtls/platform.h....hiawatha-9.14/src/alternative.hhiawatha-9.14/src/ tomahawk.chiawatha-9.14/src/memdbg.txthiawatha-9.14/src/filehashes.chiawatha-9.14/src/tls.hhiawatha-9.14/src/ Libstr.chiawatha-9.14/src/wigwam.chiawatha-9.14/cmakefiles.txthiawatha-9.14/changelog[[email protected]  ~]#

Hiawatha requires CMake installation. Version requirements above 2.8.4, after Centos 6.6 Minimal installs development tools, yum Update is available (see Read.me in the Compact package for details)

3. Then we go into the extracted directory:

[Email protected] ~]# cd/usr/src/hiawatha-9.14

4. Add the build directory and compile the installation configuration:

[Email protected] hiawatha-9.14]# mkdir build[[email protected] hiawatha-9.14]# cmake. -denable_cache=on-denable_debug=off-denable_ipv6=off-denable_monitor=off-denable_rproxy=on-denable_ssl=on- Denable_tomahawk=off-denable_toolkit=on

The following parameters mean:

-denable_cache=on #开启缓存-denable_debug=off #DEBUG-denable_ipv6=off #是否支持IPv6-denable_monitor=off #监控-denabl E_rproxy=on #代理-denable_ssl=on #这个不用说了, Ssl-denable_tomahawk=off #命令行管理-denable_toolkit=on #一些工具包 # More configuration parameters available on the website Reference.

5, then we compile, by default installed in the/usr/local/etc/hiawatha directory, the other binaries will be compiled after the display on the screen:

.... #以上 (slightly)--looking for Gzdopen in z-found--looking for so_acceptfilter--looking for so_acceptfilter-not found--Co Nfiguring done--generating done--Build files has been written to:/usr/src/hiawatha-9.14/build# Indicates that the compiled configuration file has been produced in the build directory.

6. OK, after the configuration file is generated, start the installation directly.

 [[email protected] hiawatha-9.14]# make install scanning dependencies  of target cgi-wrapper[  0%] building c object cmakefiles/ cgi-wrapper.dir/src/alternative.c.o[  1%] building c object cmakefiles/ cgi-wrapper.dir/src/cgi-wrapper.c.o[  2%] building c object cmakefiles/ cgi-wrapper.dir/src/memdbg.c.o[  3%] building c object cmakefiles/ Cgi-wrapper.dir/src/libfs.c.o[  4%] building c object cmakefiles/cgi-wrapper.dir /src/libstr.c.o[  5%] building c object cmakefiles/cgi-wrapper.dir/src/ userconfig.c.olinking c executable cgi-wrapper[  5%] built target  Cgi-wrapperscanning dependencies of target mbedcrypto[  6%] building c  object mbedtls/library/cmakefiles/mbedcrypto.dir/aes.c.o[  6%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/aesni.c.o[   7%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/arc4.c.o[   8%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/asn1parse.c.o[   9%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/asn1write.c.o[  10%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/base64.c.o[ 11 %] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/bignum.c.o[ 11%]  building c object mbedtls/library/cmakefiles/mbedcrypto.dir/blowfish.c.o[ 12%]  building c object mbedtls/library/cmakefiles/mbedcrypto.dir/camellia.c.o[ 13%]  Building c object mbedtls/library/cmakefiles/mbedcrypto.dir/ccm.c.o[ 14%] building  c object mbedtls/library/cmakefiles/mbedcrypto.dir/cipher.c.o[ 15%] building c object mbedtls/library/ cmakefiles/mbedcrypto.dir/cipher_wrap.c.o[ 16%] building c object mbedtls/library/ cmakefiles/mbedcrypto.dir/ctr_drbg.c.o[ 16%] building c object mbedtls/library/ cmakefiles/mbedcrypto.dir/des.c.o[ 17%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/dhm.c.o[ 18%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/ecdh.c.o[ 19%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/ecdsa.c.o[ 20%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/ecp.c.o[ 21%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/ecp_curves.c.o[ 21%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/entropy.c.o[ 22%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/entropy_poll.c.o[ 23%] building c  Object mbedtls/library/cmakefiles/mbedcrypto.dir/error.c.o[ 24%] building c object  mbedtls/library/CMakeFiles/mbedcrypto.dir/gcm.c.o[ 25%] Building C object  mbedtls/library/cmakefiles/mbedcrypto.dir/havege.c.o[ 26%] building c object mbedtls/ library/cmakefiles/mbedcrypto.dir/hmac_drbg.c.o[ 26%] building c object mbedtls/ library/cmakefiles/mbedcrypto.dir/md.c.o[ 27%] building c object mbedtls/library/ cmakefiles/mbedcrypto.dir/md2.c.o[ 28%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/md4.c.o[ 29%] building c object mbedtls/library/cmakefiles/ mbedcrypto.dir/md5.c.o[ 30%] building c object mbedtls/library/cmakefiles/ Mbedcrypto.dir/md_wrap.c.o[ 31%] building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/memory_buffer_alloc.c.o[ 31%]  Building c object mbedtls/library/cmakefiles/mbedcrypto.dir/oid.c.o[ 32%] building  c object mbedtls/library/cmakefiles/mbedcrypto.dir/padlock.c.o[ 33%] building c  object mbedtls/library/CMakeFiles/mbedcrypto.dir/pem.c.o[ 34%] Building C  object mbedtls/library/cmakefiles/mbedcrypto.dir/pk.c.o[ 35%] building c object  Mbedtls/library/cmakefiles/mbedcrypto.dir/pk_wrap.c.o[ 36%] building c object mbedtls /library/cmakefiles/mbedcrypto.dir/pkcs12.c.o[ 36%] building c object mbedtls/library /cmakefiles/mbedcrypto.dir/pkcs5.c.o[ 37%] building c object mbedtls/library/ cmakefiles/mbedcrypto.dir/pkparse.c.o[ 38%] building c object mbedtls/library/ Cmakefiles/mbedcrypto.dir/pkwrite.c.o[ 39%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/platform.c.o[  40%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/ripemd160.c.o[  41%] building c object mbedtls/library/cmakefiles/mbedcrypto.dir/rsa.c.o[ 41%]  Building C object mbedtls/library/CMakeFiles/mbedcrypto.dir/sha1.c.o[ 42%]  Building c object mbedtls/library/cmakefiles/mbedcrypto.dir/sha256.c.o[ 43%] building  c object mbedtls/library/cmakefiles/mbedcrypto.dir/sha512.c.o[ 44%] building c  object mbedtls/library/cmakefiles/mbedcrypto.dir/threading.c.o[ 45%] building c  object mbedtls/library/CMakeFiles/mbedcrypto.dir/timing.c.o[ 46%] Building C  Object mbedtls/library/cmakefiles/mbedcrypto.dir/version.c.o[ 46%] building c object  mbedtls/library/cmakefiles/mbedcrypto.dir/version_features.c.o[ 47%] building c object mbedtls/library/ cmakefiles/mbedcrypto.dir/xtea.c.olinking c shared library libmbedcrypto.so[ 47%]  built target mbedcryptoscanning dependencies of target mbedx509[ 48%]  Building C object mbedtls/library/CMakeFiles/mbedx509.dir/certs.c.o[ 48%]  Building c object mbedtls/library/cmakefiles/mbedx509.dir/pkcs11.c.o[ 49%] building  c object mbedtls/library/cmakefiles/mbedx509.dir/x509.c.o[ 50%] building c  object mbedtls/library/cmakefiles/mbedx509.dir/x509_create.c.o[ 51%] building c  object mbedtls/library/CMakeFiles/mbedx509.dir/x509_crl.c.o[ 52%] Building C  Object mbedtls/library/cmakefiles/mbedx509.dir/x509_crt.c.o[ 53%] building c object  mbedtls/library/cmakefiles/mbedx509.dir/x509_csr.c.o[ 53%] building c object mbedtls/library/cmakefiles/mbedx509.dir/ x509write_crt.c.o[ 54%] building c object mbedtls/library/cmakefiles/mbedx509.dir/ X509write_csr.c.olinking c shared library libmbedx509.so[ 54%] built target  mbedx509scanning dependencies of target mbedtls[ 55%] building c  object mbedtls/library/cmakefiles/mbedtls.dir/debug.c.o[ 56%] building c object  mbedtls/library/cmakefiles/mbedtls.dir/net.c.o[ 57%] building c object mbedtls/ library/cmakefiles/mbedtls.dir/ssl_cache.c.o[ 58%] building c object mbedtls/library/ cmakefiles/mbedtls.dir/ssl_ciphersuites.c.o[ 58%] building c object mbedtls/library/ Cmakefiles/mbedtls.dir/ssl_cli.c.o[ 59%] building c object mbedtls/library/cmakefiles /mbedtls.dir/ssl_cookie.c.o[ 60%] building c object mbedtls/library/cmakefiles/mbedtls.dir/ssl_srv.c.o[  61%] building c object mbedtls/library/cmakefiles/mbedtls.dir/ssl_ticket.c.o[ 62%]  Building C object mbedtls/library/CMakeFiles/mbedtls.dir/ssl_tls.c.oLinking C  shared library libmbedtls.so[ 62%] built target mbedtlsscanning  dependencies of target hiawatha[ 62%] building c object cmakefiles/ hiawatha.dir/src/alternative.c.o[ 63%] building c object cmakefiles/hiawatha.dir/src/ cache.c.o[ 64%] building c object cmakefiles/hiawatha.dir/src/cgi.c.o[ 65%]  building c object cmakefiles/hiawatha.dir/src/challenge.c.o[ 66%] building  c object cmakefiles/hiawatha.dir/src/client.c.o[ 67%] building c object  cmakefiles/hiawatha.dir/src/envir.c.o[ 67%] building c object cmakefiles/hiawatha.dir/src/filehashes.c.o[ 68%]  Building c object cmakefiles/hiawatha.dir/src/hiawatha.c.o[ 69%] building c  object CMakeFiles/hiawatha.dir/src/http.c.o[ 70%] Building C object  cmakefiles/hiawatha.dir/src/httpauth.c.o[ 71%] building c object cmakefiles/ hiawatha.dir/src/ip.c.o[ 72%] building c object cmakefiles/hiawatha.dir/src/libfs.c.o [ 72%] building c object cmakefiles/hiawatha.dir/src/liblist.c.o[ 73%]  building c object cmakefiles/hiawatha.dir/src/libstr.c.o[ 74%] building c  object cmakefiles/hiawatha.dir/src/log.c.o[ 75%] building c object cmakefiles/ hiawatha.dir/src/memdbg.c.o[ 76%] building c object cmakefiles/hiawatha.dir/src/ mimetype.c.o[ 77%] building  c object cmakefiles/hiawatha.dir/src/monitor.c.o[ 77%] building c object  cmakefiles/hiawatha.dir/src/rproxy.c.o[ 78%] building c object cmakefiles/ hiawatha.dir/src/send.c.o[ 79%] building c object cmakefiles/hiawatha.dir/src/ serverconfig.c.o[ 80%] building c object cmakefiles/hiawatha.dir/src/session.c.o[  81%] building c object cmakefiles/hiawatha.dir/src/tls.c.o[ 82%] building  c object cmakefiles/hiawatha.dir/src/target.c.o[ 82%] building c object  cmakefiles/hiawatha.dir/src/tomahawk.c.o[ 83%] building c object cmakefiles/ hiawatha.dir/src/toolkit.c.o[ 84%] building c object cmakefiles/hiawatha.dir/src/ userconfig.c.o[ 85%] building c object cmakefiles/hiawatha.dir/src/workers.c.o[  86%] building c object cmakefiles/hiawatha.dir/src/xslt.c.olinking c executable hiawatha[ 86%] built  target hiawathascanning dependencies of target ssi-cgi[ 87%] building  C object cmakefiles/ssi-cgi.dir/src/alternative.c.o[ 88%] building c object  cmakefiles/ssi-cgi.dir/src/ip.c.o[ 89%] building c object cmakefiles/ ssi-cgi.dir/src/libfs.c.o[ 90%] building c object cmakefiles/ssi-cgi.dir/src/ liblist.c.o[ 90%] building c object cmakefiles/ssi-cgi.dir/src/libstr.c.o[ 91%]  building c object cmakefiles/ssi-cgi.dir/src/memdbg.c.o[ 92%] building c  object cmakefiles/ssi-cgi.dir/src/ssi-cgi.c.olinking c executable ssi-cgi[ 92%]  built target ssi-cgiscanning dependencies of target wigwam[ 93%]  building c object cmakefiles/wigwam.dir/src/alternative.c.o[ 94%] building c object cmakefiles/wigwam.dir/ src/filehashes.c.o[ 95%] building c object cmakefiles/wigwam.dir/src/ip.c.o[ 95% ] building c object cmakefiles/wigwam.dir/src/libfs.c.o[ 96%] building c  object CMakeFiles/wigwam.dir/src/libstr.c.o[ 97%] Building C object  cmakefiles/wigwam.dir/src/liblist.c.o[ 98%] building c object cmakefiles/wigwam.dir/ src/memdbg.c.o[ 99%] building c object cmakefiles/wigwam.dir/src/toolkit.c.o[100%]  building c object cmakefiles/wigwam.dir/src/wigwam.c.olinking c executable  wigwam[100%] Built target wigwamInstall the project...-- Install  configuration:  "Relwithdebinfo"-- installing: /usr/local/sbin/hiawatha-- set runtime  path of  "/usr/local/sbin/hiawatha " to "/usr/local/lib64/hiawatha "-- installing: /usr/local/sbin/wigwam--  Set runtime path of  "/usr/local/sbin/wigwam"  to  "/usr/local/lib64/hiawatha "-- installing: /usr/local/sbin/cgi-wrapper-- installing: /usr/local/bin/ssi-cgi--  installing: /usr/local/etc/hiawatha/cgi-wrapper.conf-- installing: /usr/local/etc/hiawatha/ Mimetype.conf-- installing: /usr/local/etc/hiawatha/hiawatha.conf-- installing: /usr/local /share/man/man1/ssi-cgi.1-- installing: /usr/local/share/man/man1/wigwam.1-- installing: / usr/local/share/man/man1/cgi-wrapper.1-- installing: /usr/local/share/man/man1/hiawatha.1--  installing: /usr/local/var/www/hiawatha/index.html-- installing: /usr/local/var/log/hiawatha--  Installing: /usr/local/var/run-- Installing: /usr/local/var/lib/hiawatha--  installing: /usr/local/lib64/hiawatha/libmbedtls.so.2.0.0-- installing: /usr/local/lib64/hiawatha/libmbedtls.so.10--  installing: /usr/local/lib64/hiawatha/libmbedtls.so-- removed runtime path from  "/usr/local/lib64/hiawatha/libmbedtls.so.2.0.0"-- installing: /usr/local/lib64/hiawatha/ Libmbedx509.so.2.0.0-- installing: /usr/local/lib64/hiawatha/libmbedx509.so.0-- installing:  /usr/local/lib64/hiawatha/libmbedx509.so-- Removed runtime path from  "/usr/ local/lib64/hiawatha/libmbedx509.so.2.0.0 "-- installing: /usr/local/lib64/hiawatha/ Libmbedcrypto.so.2.0.0-- installing: /usr/local/lib64/hiawatha/libmbedcrypto.so.0-- installing:  /usr/local/lib64/hiawatha/libmbedcrypto.so[[email protected] hiawatha-9.14]#

7, to this, Hiawatha installation has been completed, the next tutorial will be a simple introduction to Hiawatha simple configuration. Thank you!

hiawatha--a security-focused, lightweight Web server application ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.