LoginSignup
1
2

More than 5 years have passed since last update.

Apache Traffic Server をソースからインストール

Last updated at Posted at 2013-09-12

概要

Apache Traffic Server をソースからインストールする。

前提条件

  • 以下必要なパッケージがインストール済み

tcl-devel
Expat
PCRE

  • OSにtclを認識させる
# echo /opt/tcl/tclx.x.x/lib >> /etc/ld/so.conf
# ldconfig

本家

Apache Traffic Server

ダウンロード

本家

「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>
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2