본문 바로가기

2020/0410

[ ANSIBLE ] ansible 에서 windows 원격 실행 우선 저의 테스트 환경을 먼저 알려 드리겠습니다. - centos 7 - windows10 (powershell 이 3버전 이상이여야 합니다.) yum 으로 ansible 설치부터 진행 하면서 설명 드리겠습니다. 1. Extra Packages for Enterprise Linux 설치 yum install -y epel-release 2. yum 을 통한 ansible 설치 yum install -y ansible 3. python 에서 winrm 을 실행 시킬 수 있도록 해줌 pip install "pywinrm>=0.3.0" winRM은 기본적으로 사용하는 포트는 5985,6번 입니다. (http 는 5985, https 는 5986) https 라니? 리눅스에선 openssl 을 미리 설치 해놔야.. 2020. 4. 26.
[ Apache ] Proxy 환경에서 client ip 확인 (X-Forwarded-For) Apache 를 사용하는 Proxy 환경에서 최종 client ip 를 확인 하기 위해 http header규격인 X-Forwarded-For 를 사용하여 apache 의 access log 로 출력 해 보았습니다. 제가 테스트를 해본 환경은 아래와 같습니다. 위의 환경에서 Apache Service Server 에 X-Forwarded-For 라는 header 로 client pc 의 ip 를 출력 하는 예제 입니다. 호출은 client pc 브라우저에서 http://192.168.101.1/ 로 하였습니다. 1. Apache Proxy Server (192.168.101.1) 설정 - httpd.conf ($APACHE_HOME/conf) LoadModule proxy_module modules/mo.. 2020. 4. 17.
[ Linux ] libssl.so.1.0.0: cannot open shared object file: No such file or directory libssl.so.1.0.0 은 openssl 이 설치되면 그 안의 lib 폴더에 있는 파일 입니다. openssl 이 설치 되어 있다면 아래와 같은 3가지 방법으로 library path 가 잡혀 있으면 위와 같은 오류가 발생하지 않습니다. 1. /lib64 안에 ln -s 로 파일에 대한 링크를 걸어 줍니다. 2. /usr/lib 안에 ln -s 로 파일에 대한 링크를 걸어 줍니다. 3. /etc/profile 에 (또는 .bashrc, .bash_profile) LD_LIBRARY_PATH를 잡아 준다. 예) vi /etc/profile export LD_LIBRARY_PATH=/app/openssl1.0.2t/lib 추가 2020. 4. 15.
[ Linux ] Gettext 소스 설치 (리눅스) 1. GNU gettext 사이트에서 소스를 다운로드 받는다. https://www.gnu.org/software/gettext/ gettext - GNU Project - Free Software Foundation (FSF) gettext Usually, programs are written and documented in English, and use English at execution time for interacting with users. This is true not only from within GNU, but also in a great deal of proprietary and free software. Using a common language is quit www.gnu.org 제.. 2020. 4. 4.