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-693e3c3273e54687347798/] 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-693e3c3274cbc284823690/] 2. 사용자 환경 config 파일 생성 [crayon-693e3c3274cc4492556225/] 3. awstats 환경설정 파일 수정 [crayon-693e3c3274cc8385591442/] 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-693e3c32862cd157413558/][crayon-693e3c32862df760010853/][crayon-693e3c32862e7112857526/][crayon-693e3c32862ed992288659/][crayon-693e3c32862f4870018754/][crayon-693e3c32862fa651907195/][crayon-693e3c3286300947836886/] 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..
admin 2014.09.04 cenots setup tool # yum install setuptool – 기본툴# yum install system-config-securitylevel-tui – 방화벽# yum install -y ntsysv – 시스템서비스# yum install -y system-config-network system-config-network-tui – 네트워크 Read More..
admin 2014.09.03 centos 7 mhash libmcrypt 설치 아래 사이트에서 다운로드 후 설치 wget http://pkgs.repoforge.org/libmcrypt/libmcrypt-2.5.7-1.2.el6.rf.x86_64.rpm wget http://pkgs.repoforge.org/libmcrypt/libmcrypt-devel-2.5.7-1.2.el6.rf.x86_64.rpm wget http://pkgs.repoforge.org/mhash/mhash-0.9.9-1.el6.rf.x86_64.rpm wget http://pkgs.repoforge.org/mhash/mhash-devel-0.9.9-1.el6.rf.x86_64.rpm Read More..