mod_jkのインストール
apacheのインストール
apacheのインストール時、mod_jkのビルドにapxsが必要なのでhttpd-develもインストールする。
yum -y install httpd httpd-devel
あと、Cコンパイラも必要
yum -y install gcc
mod_jk
http://tomcat.apache.org/download-connectors.cgi
curl -O https://www-eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.46-src.tar.gz tar zxf tomcat-connectors-1.2.46-src.tar.gz cd tomcat-connectors-1.2.46-src/native
apxsのパスを確認してインストール
# which apxs /usr/bin/apxs # ./configure --with-apxs=/usr/bin/apxs # make && make install
ちゃんとロケールを設定してないので以下のメッセージが出た。
perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "ja_JP.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
Libraries have been installed in: /usr/lib64/httpd/modules
あとは他のモジュール同様Apacheに取り込んで利用可能!