일회성으로 변경하는 방법terminal을 로그아웃해도 변경사항이 유지되지만, 재부팅하면 cloud 설정으로 인해 원래대로 복구됨. hostnamectl을 이용해 hostname 변경$ sudo hostnamectl set-hostname [new-hostname] 변경사항 확인$ hostnamectl 재부팅 후에도 계속 유지되도록 변경하는 방법./etc/cloud/cloud.cfg 의 마지막에 아래의 내용 추가 preserve_hostname: true ex)$ echo "preserve_hostname: true" | sudo tee --append /etc/cloud/cloud.cfg /etc/hostname 을 열어 원하는 호스트명으로 변경 후 재부팅 ex)$ echo "new_hostname" |..
$ man yum......updateIf run without any packages, update will update every currently installed package. If one or more packages or package globs are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. (See Specifying package names for more information) If the packages or globs specified match to packages which are not..
HTTP 502 Bad Gateway백엔드 인스턴스로부터 온 응답을 ELB가 받지 못할 경우 발생인스턴스의 WAS 로그를 참조, 응답이 제대로 갔는지 확인 HTTP 503 Service Unavailable - ELB에 인스턴스가 healthy한 인스턴스가 없는 경우 - health check 가 가능해지도록 처리 (security group 등) - 짧은 시간동안 Request가 급격히 증가하는 경우 - ELB의 auto-scaling 시간이 부족하여 발생. 수분 내에 자동으로 해결됨. 예상된 트래픽인 경우 pre-warming을 요청 HTTP 504 Gateway Timeout - 인스턴스가 request를 처리하는 시간이 ELB의 timeout 시간보다 짧아 발생 - HTTPCode_ELB_5xx ..
# ldapsearch \ -LLL \# result formatting -H ldapi:/// \# ldap uri -p 389 \# ldap port -D "cn=admin,dc=***" \# bindDN -W \# password -b cn=config \# searchbase olcRootDN=cn=admin,dc=****\# filter dn olcRootDN olcRootPW # attrs -L[L{[L]]Search results are display in LDAP Data Interchange Format detailed in ldif(5). Asingle -L restricts the output to LDIFv1.A second -L disables comments. A third -L..
admin 암호 변경1. olcRootDN 값 확인# slapcat -b cn=config | grep olcRootDN olcRootDN: cn=config olcRootDN: cn=admin, dc=*** 여기서 olcRootDN은 cn=admin,dc=**** 2. 암호의 encrypition type 확인# ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b cn=config olcRootDN=[olcRootDN의 값] dn olcRootDN olcRootPW 출력된 결과에서 olcRootPW 행을 확인{MD5} {SSHA} 등 중괄호로 묶인 부분이 encryption type 3. encryption된 암호 문자열 생성# slappasswd -h [encryption_..
position 'beforebegin' Before the element itself. 'afterbegin' Just inside the element, before its first child. 'beforeend' Just inside the element, after its last child. 'afterend' After the element itself.text the string to be parsed as HTML or XML and inserted into the tree. https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
CDPATH는 환경변수로 cd 명령을 통해 디렉토리를 이동할 때 기준이 되는 path를 지정할 수 있다.값이 지정되어 있지 않은 경우 현재 디렉토리가 기준이 된다.(당연히...) 터미널에서 아래처럼 입력해보면,$ export CDPATH=".:/usr" $ cd ~ $ pwd /home/[user-id] $ cd local /usr/local $ pwd /usr/localcd 명령어로 이동시 CDPATH에 지정된 순서대로 대상 디렉토리가 있는지 조회해보고,없는 경우 그 다음 순서의 디렉토리를 조회한다.결과적으로 홈 디렉토리에는 local 이라는 이름의 디렉토리가 없고,/usr 디렉토리에는 local 디렉토리가 있으므로 /usr/local 로 이동하였다. 적당한 곳이 디렉토리를 생성해서 CDPATH에 등록..