본문 바로가기

728x90
반응형

전체 글

[리눅스] CentOS 7 런레벨(runlevel) 변경 CentOS 7 런레벨(runlevel) 변경 1. RunLevel config 파일 (CentOS 7 부터 systemctl 명령을 통해 RunLevel를 변경하도록 안내) vim /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target # # systemd uses 'targets' instead of runlevels. By default, there are two main targets: # .. 더보기
Ansible 일반 계정으로 패키지 배포 및 NTP 설정하기 Ansible 일반 계정(ansiadmin)으로 패키지 배포 및 NTP 설정하기Control Machine 설정Ansible 컨트롤 머신에서 ansiadmin 계정을 사용하여 SSH 키 생성 및 노드 서버와 키 교환을 수행합니다. 1. SSH 키 생성ssh-keygen -t rsa -b 4096 -C "ansiadmin@ass01"2. SSH 키 배포 (Managed Node 등록)ssh-copy-id ansiadmin@192.168.0.252Ansible 플레이북 구성1. 역할(Role) 기반 플레이북 작성Ansible roles/common/tasks/main.yml 파일을 수정하여 NTP를 설치하고 구성합니다.vim roles/common/tasks/main.yml---# Common role: N.. 더보기
[리눅스] 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 실행 파일 디렉토리로 .. 더보기

728x90
반응형