전체 글 썸네일형 리스트형 [리눅스] Ansible Playboot 실행하기 Ansible Playbook 실행하기 [Control Machine] 1. Playbook examples 파일 다운로드 # cd ./etc/ansible # git clone git://github.com/ansible/ansible.git --recursive # git clone https://github.com/ansible/ansible-examples.git --recursive 2-1. Playbook 트리 구조 및 설정 파일 # tree . ├── roles │ └── common │ ├── handlers │ │ └── main.yml │ ├── tasks │ │ └── main.yml │ └── templates │ └── ntp.conf.j2 └── site.yml # cat sit.. 더보기 Ansible을 설치하고 구성하는 방법 Ansible을 설치하고 구성하는 방법1. EPEL 패키지 설치EPEL은 Extra Packages for Enterprise Linux의 약어로 여러 추가 소프트웨어를 제공합니다.sudo yum install epel-release2. Ansible 패키지 설치sudo yum install ansible3. Ansible 버전 확인ansible --versionansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides4. SSH Keygen 설정ssh-keygen -t rsa -b 4096 -C "root@ass01"5. Ansible 키 교환username과 ma.. 더보기 원도우에서 tcping을 사용하는 방법 원도우에서 tcping을 사용하는 방법 TCP 포트의 가용성을 확인하기 위한 유용한 도구입니다. tcping.exe - ping over a tcp connection tcping 설치 tcping 다운로드 URL https://www.elifulkerson.com/projects/downloads/tcping-0.34/tcping.exe 다운로드 위치 : D:\app\bind9\bin 환경 변수 : Path 설정 tcping 명령어 사용 tcping -h sangchul.kr C:\Users\Administrator>tcping -h sangchul.kr ** Requesting from sangchul.kr: (for various reasons, kbit/s is an approximation) P.. 더보기 [기타] GeoIP database update GeoIP database update1. GeoIP 데이터베이스 디렉터리로 이동sudo mkdir -p /usr/share/GeoIP2. GeoIP 데이터베이스 다운로드wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz \ -O /usr/share/GeoIP/GeoIP.dat.gz3. GeoIP 데이터베이스 파일 압축 해제압축 파일(GeoIP.dat.gz)을 /usr/share/GeoIP 디렉터리로 이동하고 압축을 해제합니다.cd /usr/share/GeoIPgzip -d GeoIP.dat.gz압축 해제 후 GeoIP.dat 파일이 /usr/share/GeoIP 디렉터리에 존재해야 합니다.$ lsGeoIP.. 더보기 CentOS 7에서 BIND에 GeoIP 기능을 설정하여 사용하는 방법 CentOS 7에서 BIND(named)에 GeoIP 기능을 설정하여 사용하는 방법1. BIND 설치 확인 및 GeoIP 패키지 설치sudo yum install -y epel-releasesudo yum install -y zlib-devel openssl-develBIND 설치BIND와 관련된 패키지를 설치해야 합니다.sudo yum install -y install bind bind-utilsGeoIP 라이브러리 설치GeoIP 데이터베이스를 사용하려면 MaxMind의 GeoIP 라이브러리를 설치해야 합니다.sudo yum install -y GeoIP GeoIP-devel2. MaxMind GeoIP 데이터베이스 다운로드MaxMind에서 제공하는 GeoIP Legacy 데이터베이스를 사용하여 지역별.. 더보기 CentOS 7에 NGINX와 Tomcat 멀티 인스턴스를 설치하고 설정하는 방법 CentOS 7에 NGINX와 Tomcat 멀티 인스턴스를 설치하고 설정하는 방법1. nginx 설치필수 패키지 설치yum install pcre-devel zlib-devel openssl-devel디렉토리 생성 및 이동mkdir /appcd /app/Nginx 소스 코드 압축 해제tar xvfz nginx-1.10.3.tar.gzNginx 소스 디렉토리로 이동cd nginx-1.10.3Nginx 구성 설정./configure --prefix=/app/nginx --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_moduleNginx 컴파일 및 설치make && make installNginx 실행 파일 디렉토리로 .. 더보기 [리눅스] Scouter Host Agent 설치 Scouter Host Agent 설치 Scouter 다운로드(https://github.com/scouter-project/scouter/releases) cd /app tar xvfz scouter.agent.tar.gz chown -R tomcat.tomcat /app/scouter su - tomcat vi .bashrc ## JAVA_HOME export JAVA_HOME="/app/java" export PATH="$PATH:$JAVA_HOME/bin" cd /app/scouter/agent.host/conf vi scouter.conf $ vi scouter.conf # Scouter Server IP Address (Default : 127.0.0.1) net_collector_ip=10... 더보기 [리눅스] Scouter Server 설치 Scouter Server 설치 scouter 다운로드(https://github.com/scouter-project/scouter/releases) cd /app tar xvfz scouter.server.tar.gz vi /app/scouter/server/conf/scouter.conf # Agent Control and Service Port(Default : TCP 6100) net_tcp_listen_port=6100 # UDP Receive Port(Default : 6100) net_udp_listen_port=6100 # DB directory(Default : ./database) db_dir=/app/scouter/server/database # Log directory(Default.. 더보기 이전 1 ··· 221 222 223 224 225 226 227 ··· 298 다음