Last active
August 29, 2015 14:08
-
-
Save yosuke-furukawa/fa9b517ef86e17dd2f49 to your computer and use it in GitHub Desktop.
h2oをamazon linux環境(aws)でビルドするためのメモ ref: http://qiita.com/yosuke_furukawa/items/ecc8c5d35406fcb5a821
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install curl curl-devel | |
sudo yum install libarchive libarchive-devel | |
sudo yum install expat expat-devel | |
wget http://www.cmake.org/files/v3.0/cmake-3.0.2.tar.gz | |
tar -xvf cmake-3.0.2.tar.gz | |
cd cmake-3.0.2 | |
./bootstrap --prefix=/usr \ | |
--system-libs \ | |
--mandir=/share/man \ | |
--docdir=/share/doc/cmake-3.0.2 && | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz | |
tar -xvf yaml-0.1.5.tar.gz | |
cd yaml-0.1.5 | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/kazuho/h2o.git | |
cd h2o | |
git submodule update --init --recursive | |
cmake . | |
make h2o | |
./h2o -c examples/h2o.conf | |
curl http://localhost:8080/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen: 8080 | |
hosts: | |
default: | |
paths: | |
/: | |
file.dir: examples/doc_root | |
access-log: /dev/stdout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment