admin 2014.11.18 centos6 geoip install O/S : CentOS 6.x 1. epel yum repo에 추가 [crayon-6621df6bda65d414378016/] 2.yum GeoIP install [crayon-6621df6bda668182773549/] 3. 자료를 확인해 보면 최신 자료가 아닌 2018년도 자료가 마지막이다 [crayon-6621df6bda66d413078741/] 4. 최신 자료로 업데이트 진행은 아래 사이트에서 진행 GeoIP.dat GeoIPCity.dat 파일 업데이트 CentOS 6 (GeoLite2 이용한 geoip geoipcity 파일 최신 파일로 업데이트) Read More..
admin 2014.11.18 nginx 설치 ( centos 6.5) yum install pcre pcre-devel openssl openssl-devel wget http://nginx.org/download/nginx-1.5.13.tar.gz tar xvfz nginx-1.5.13.tar.gz cd nginx-1.5.13 ./configure –prefix=/usr/local/nginx –conf-path=/usr/local/nginx/nginx.conf –sbin-path=/usr/local/nginx/sbin/nginx –pid-path=/usr/local/nginx/log/nginx.pid –lock-path=/usr/local/nginx/log/nginx.lock –error-log-path=/usr/local/nginx/log/error.log –user=no... Read More..
admin 2014.11.07 BEGIN failed–compilation aborted centos perl 실행시 에러 yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker perl -MCPAN -e shell 실행 에러시 yum -y install perl-Shell-Perl Read More..
admin 2014.11.03 nginx Access-Control-Allow-Origin * vi nginx.conf location ~* ^.*\.(ico|css|js|gif|jp?g|png|svg|bmp|eot|ttf|woff|otf|woff2){ add_header Access-Control-Allow-Origin “*”; access_log off; expires max; # break; } vi mime.type [crayon-6621df6bdb166040732125/] Read More..
+ admin 2014.10.08 awstats 설치 웹로그 분석 시스템은 다양은 오픈소스가 존재 한다. webalizer / awstats / goaccess 등 여러가지 존재하는데 이중에서 awstats 를 설치 해보자 OS : CentOS 7.x Web Server : apache 2.4 1. 다운로드 ( 다운로드는 공식 홈페이지에서 다운로드 가능 https://awstats.sourceforge.io/ ) 및 폴더 변경 [crayon-6621df6bdb847352902886/] 2. 사용자 환경 config 파일 생성 [crayon-6621df6bdb857644625342/] 3. awstats 환경설정 파일 수정 [crayon-6621df6bdb85d449944551/] 4. 이제 모든 설정이 완료되었으므로 로그 파일을 awstats 에 맞게 파싱... Read More..
admin 2014.10.01 history 로그로 남기기 간혹 엔지니어 중에 history 를 수정하거나 삭제 한 후 자기 자신은 작업을 하지 않았다는 등 ㅜㅜ 그러한 이유로 작업자의 ip 및 명령어를 로그에 남기도록 해보자 vi /etc/profile ####### sulinux 2014 command history function history_to_syslog { declare command remoteaddr=”who am i” command=$(fc -ln -0) if [ “$command” != “$old_command” ]; then logger -p local1.notice -t bash -i ? “$USER : $remoteaddr” : “$command” fi ... Read More..
admin 2014.09.26 CENTOS 창 크기 변환시 로그아웃 되는 문제 CENTOS 5.X / 6.X 버전 모두 해킹된 서버를 확인해보면 CRT 창을 변환시키면 로그아웃이 되는 문제가 발생한다 우선 login 파일이 어느 패키지 파일인지 확인하다 rpm -qf /bin/login rpm -qV util-linux-ng-2.17.2-12.9.el6.x86_64 이렇게 했을때 여러개가 나오는경우 해당 파일은 변조된것이다. 이것만 따로 삭제(강제)하고 다시 설치해 준다 Read More..
+ admin 2014.09.12 CENTOS scout realtime ( 웹페이지 서버 상태 체크) 환경은 cents 6.x [crayon-6621df6be6652234326233/][crayon-6621df6be665d094327918/][crayon-6621df6be6663116683971/][crayon-6621df6be6667320468056/][crayon-6621df6be666c283291762/][crayon-6621df6be6670341951489/][crayon-6621df6be6675262158101/] Read More..
admin 2014.09.04 linux timezone 설정 AWS 를 설치 하고 나면 몇가지 작업을 해 주어야 합니다. 그 중 하나가 시간을 설정 하는 것입니다. EC2 인스턴스를 생성하고 나면 시간이 서울이 아닌 표준 0 시로 셋팅되어 있습니다. 이 시간 설정은 tzselect 라는 툴을 이용해 간단히 설정 가능 합니다. 먼저 EC2 인스턴스에 콘솔 접속을 해서 tzselect 를 실행시키고 다음과 같이 진행시킵니다. [ec2-user@ ~]$ tzselectPlease identify a location so that time zone rules can be set correctly.Please select a continent or ocean.1) Africa2) Americas3) Antarctica4) Arctic Ocean5) Asia6) Atlantic... Read More..