[CentOS] 7.x 아파치 2.4.x mod_cband 0.9.7.5 컴파일



Apache 트래픽 제어 모듈은 cband 만한게 없는 것 같네요~

CBandScoreboard 설정시 "apache2_mod_cband: cannot open scoreboard file" 같은 에러는 해당 경로의 퍼미션을 조정하면 됩니다.

CBandUser (apache 또는 root로 생성) 를 설정하고 VirtualHost (mod_ruid2 로 유저계정) 에서 사용시 파일권한이 달라서 나는 에러는 666 으로 변경하여 주세요~


# wget https://github.com/vobruba-martin/mod_cband/archive/0.9.7.5.tar.gz

# tar zxvf 0.9.7.5.tar.gz

# cd mod_cband-0.9.7.5

# ./configure  ## configure: error: apxs missing 에러가 납니다.

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking whether make sets $(MAKE)... yes

checking for apr_palloc in -laprutil... no

checking for an ANSI C-conforming const... yes

checking for apxs... no

checking for apxs2... no

configure: error: apxs missing

httpd-devel 을 설치해 줍니다.


# yum -y install httpd-devel

# ./configure

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking whether make sets $(MAKE)... yes

checking for apr_palloc in -laprutil... no

checking for an ANSI C-conforming const... yes

checking for apxs... apxs

checking how to run the C preprocessor... gcc -E

checking for egrep... grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking stdio.h usability... yes

checking stdio.h presence... yes

checking for stdio.h... yes

checking for string.h... (cached) yes

checking assert.h usability... yes

checking assert.h presence... yes

checking for assert.h... yes

checking ctype.h usability... yes

checking ctype.h presence... yes

checking for ctype.h... yes

checking errno.h usability... yes

checking errno.h presence... yes

checking for errno.h... yes

checking math.h usability... yes

checking math.h presence... yes

checking for math.h... yes

checking netinet/in.h usability... yes

checking netinet/in.h presence... yes

checking for netinet/in.h... yes

checking sys/socket.h usability... yes

checking sys/socket.h presence... yes

checking for sys/socket.h... yes

checking arpa/inet.h usability... yes

checking arpa/inet.h presence... yes

checking for arpa/inet.h... yes

configure: creating ./config.status

config.status: creating Makefile


# make

# make install


# find / -name mod_cband.so 명령어로 제대로 설치가 되었는지 확인하면 됩니다.


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,