# cd /usr/local/src
# rpmbuild -ts apr-1.7.0.tar.bz2
# rpmbuild -tb apr-1.7.0.tar.bz2
# cd /root/rpmbuild/RPMS/x86_64/
# rpm -ivh apr-1.7.0-1.x86_64.rpm apr-debuginfo-1.7.0-1.x86_64.rpm apr-devel-1.7.0-1.x86_64.rpm
# rpmbuild -ts apr-util-1.6.1.tar.bz2
# rpmbuild -tb apr-util-1.6.1.tar.bz2
# cd /root/rpmbuild/RPMS/x86_64/
# rpm -ivh apr-util-1.6.1-1.x86_64.rpm apr-util-devel-1.6.1-1.x86_64.rpm
# rpmbuild -ts httpd-2.4.48.tar.bz2
Wrote: /root/rpmbuild/SRPMS/httpd-2.4.48-1.src.rpm
# rpmbuild -tb httpd-2.4.48.tar.bz2
# cd /root/rpmbuild/RPMS/x86_64/
# yum install mailcap
# rpm -ivh httpd-* mod_proxy_html-2.4.48-1.x86_64.rpm mod_ssl-2.4.48-1.x86_64.rpm
# systemctl enable httpd
# systemctl start http
Install Tomcat Connectors
https://tomcat.apache.org/download-connectors.cgi
# tar zxvfp tomcat-connectors-1.2.48-src.tar.gz
# cd tomcat-connectors-1.2.48-src/
# cd native
# ./configure --with-apxs=/bin/apxs
# make && make install
# apachectl –M
Loaded Modules:
~~
jk_module (shared)
# vi /etc/httpd/conf/httpd.conf
LoadModule jk_module lib64/httpd/modules/mod_jk.so
User ????
Group ????
ServerName ????
Include /etc/httpd/conf/extra/httpd-jk.conf
Include /etc/httpd/conf/extra/httpd-vhosts.conf
# vi /etc/httpd/conf/extra/httpd-jk.conf
<IfModule jk_module>
JkWorkersFile /etc/httpd/conf.d/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel Info
JkShmFile /var/run/mod_jk.shm
</IfModule>
# vi /etc/httpd/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin ????@kobic.kr
ServerName ????
<VirtualHost>
# vi /etc/httpd/conf.d/workers.properties
worker.list=test
worker.test.port=8009
worker.test.host=xxx.xxx.xxx.xxx
worker.test.type=ajp13
worker.test.lbfactor=1
'Linux > Apache' 카테고리의 다른 글
Update Apache HTTP Server(2.4.48->2.4.52) (0) | 2021.12.23 |
---|---|
CGI (Common Gateway Interface) (0) | 2012.09.24 |
최근댓글