Raspberry Piにh2oをインストール

Raspberry PiをRaspbian Jessie Liteにアップグレード - kame-tの日記の続き
こちらもメモ程度
Jessieにするとcmakeも3になるのでh2oのインストールOK
方法はh2oのマニュアルhttps://h2o.examp1e.net/のとおり

% sudo apt-get install cmake mruby libmruby-dev bison
% git clone https://github.com/h2o/h2o.git
% cd h2o
% cmake -DWITH_MRUBY=ON
% make
% sudo make install

あとLet's Encryptでサーバ証明書を取得する
これもKazuho's Weblog: Using H2O with Let's Encryptに書いてあるとおり

% git clone https://github.com/letsencrypt/letsencrypt.git
% cd letsencrypt
% ./letsencrypt-auto certonly --standalone \
    --email $EMAIL \
    --domain $HOSTNAME

あとはお好みで

  • /usr/local/etc/h2o.conf
  • /var/log/h2o/{access_log,error_log}
  • /var/run/h2o.pid
  • /etc/init.d/h2o

起動時はmasterモード(-m master)で