概要
Apache Traffic Server をソースからインストールする。
前提条件
- 以下必要なパッケージがインストール済み
- OSにtclを認識させる
# echo /opt/tcl/tclx.x.x/lib >> /etc/ld/so.conf
# ldconfig
本家
ダウンロード
「Download Traffic Server x.x.x」ボタン
→「trafficserver-x.x.x.tar.bz2」のURL
→任意のディレクトリに配置
解凍
tar
$ tar xvfj trafficserver-x.x.x.tar.bz2
configure
./configure
$ ./configure --prefix=/opt/trafficserver/trafficserver-x.x.x \
--with-user=user \
--with-group=grp \
--with-expat=/opt/expat/expat-x.x.x \
--with-pcre=/opt/pcre/pcre-x.x
make, make install
make
$ make && make install
起動 / 停止
起動
$ /opt/trafficserver/bin/trafficserver start
停止
$ /opt/trafficserver/bin/trafficserver stop
疎通確認
curl
$ curl http://localhost/8080
- 期待値
responce
<HTML>
<HEAD>
<TITLE>Not Found on Accelerator</TITLE>
</HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
<H1>Not Found on Accelerator</H1>
<HR>
<FONT FACE="Helvetica,Aial"><B>
Description: Your request on host "<EM>localhost<EM>" was not found.
Check the location and try again.
</B> </FONT>
<HR>
</BODY>