概要
なうでヤングな若者に圧倒的な人気がある。H2Oを今更構築してしまったのでその作業ログをブログに残したいと思う。
H2O - the optimized HTTP/2 server
H2O is a new generation HTTP server that provides quicker response to users with less CPU utilization when compared to older generation of web servers.
環境
yum groupinstall "Development Tools" yum -y install cmake openssl-devel git yum -y install curl curl-devel libarchive libarchive-devel expat expat-devel zlib zlib-devel openssl cname
ダウンロード
git clone --depth=1 https://github.com/h2o/h2o.git
ソフトウェアビルド
cmake -DWITH_BUNDLED_SSL=off . make && make install
実行
./h2o -c examples/h2o/h2o.conf
phpを動かすには
yum -y install php-fpm yum -y install rpmforget
~/h2o/examples/h2o/h2o.conf に追記
file.custom-handler: extension: .php fastcgi.connect: host: 127.0.0.1 port: 9000 type: tcp