본문 바로가기

728x90

기타

[LDAP] openldap server 삭제 openldap server 삭제 서비스 중지 $ systemctl stop slapd 패키지 삭제 $ yum remove openldap-servers Removing: openldap-servers DB 삭제 $ rm -rf /var/lib/ldap 계정 삭제 $ userdel ldap 더보기
[LDAP] OpenLDAP 설치 및 구성 OpenLDAP 설치 및 구성 OpenLDAP 설치 $ yum install -y compat-openldap openldap openldap-servers openldap-clients OpenLDAP 데이터베이스 설정 $ cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG $ chown ldap. /var/lib/ldap/DB_CONFIG $ systemctl --now enable slapd.service $ systemctl status slapd.service ● slapd.service - OpenLDAP Server Daemon Loaded: loaded (/usr/lib/systemd/system/slapd.se.. 더보기
[기타] Google 관리 콘솔 도구 상자(toolbox) - Dig Google 관리 콘솔 도구 상자(toolbox) - Dig https://toolbox.googleapps.com/apps/dig/ 더보기
[원도우] MobaXterm에서 파일 탐색기 및 vscode 열기 MobaXterm에서 파일 탐색기(디렉토리) 및 vscode 열기 MobaXterm에서 파일 탐색기 열기 open . (현재 디렉토리 열기) MobaXterm에서 Visual Studio Code(vscode) 열기 code . (현재 디렉토리 파일을 vscode로 열기) 더보기
[Ansible] setup 모듈(setup module) Ansible setup 모듈 : ansible facts를 수집하는 setup 모듈 ansible facts : ansible facts는 운영체제, IP주소, 연결된 파일시스템 등을 포함하여 원격시스템과 관련된 데이터 setup 모듈 사용 방법 ansible -i inventory/hosts -m setup localhost $ ansible -i inventory/hosts -m setup localhost bvm41 | SUCCESS => { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.56.11", "192.168.101.199" ], "ansible_all_ipv6_addresses": [ "fe80::a00:27ff:fe9d:ea.. 더보기
[리눅스] zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법(agnoster theme) zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법 vim .oh-my-zsh/themes/agnoster.zsh-theme $ vim .oh-my-zsh/themes/agnoster.zsh-theme ... # Dir: current working directory prompt_dir() { #prompt_segment blue $CURRENT_FG '%~' #prompt_segment blue $CURRENT_FG '%2~' #prompt_segment blue $CURRENT_FG ' %25 더보기
[명령어] sipcalc 명령어 리눅스 sipcalc 명령어 sipcalc 패키지 설치 $ yum install -y sipcalc sipcalc 사용 예제 ### 192.168.0.0/24 서브넷 정보 $ sipcalc 192.168.0.0/24 -[ipv4 : 192.168.0.0/24] - 0 [CIDR] Host address - 192.168.0.0 Host address (decimal) - 3232235520 Host address (hex) - C0A80000 Network address - 192.168.0.0 Network mask - 255.255.255.0 Network mask (bits) - 24 Network mask (hex) - FFFFFF00 Broadcast address - 192.168.0.255 .. 더보기
[명령어] curl 명령어 curl 명령어 : 원격 서버 (FTP, HTTP 등)에서 파일을 가져 오는 유틸리티 curl 패키지 설치 $ yum install -y curl $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-.. 더보기

728x90