본문 바로가기
728x90
반응형
SMALL

IT279

Java ProcessBuilder cd 로 이동 Java 에서 특정 shell script 를 실행해야 할 일이 생겨 ProcessBuilder 를 이용했다. ProcessBuilder pb = new ProcessBuilder("/bin/sh", command); try { pb.redirectErrorStream(true); Process proc = pb.start(); try (BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()))){ String line = null; while ((line = br.readLine()) != null) { rtnStr = line; log.debug("shell script return data: {}", rtn.. 2021. 7. 23.
Windows 10 Update - 장치에 중요한 보안 및 품질 수정이 누락되어 있습니다. 보안문제로 PC 를 포맷하고 Windows 를 새로 설치 했다. Windows 업데이트 시 아래와 같은 붉은색 메시지가 나오는 경우가 있다. "장치에 중요한 보안 및 품질 수정이 누락되어 있습니다." 그래서 업데이트 확인 버튼을 여러번 눌러도 제대로 업데이트가 진행되지 않는다. 이런 경우 수동 업데이트를 하면 되는데 아래 링크로 접속해서 https://www.microsoft.com/ko-kr/software-download/windows10 Windows 10 다운로드 Windows 10용 ISO 파일을 다운로드한 경우, 해당 파일은 선택한 위치에 로컬로 저장됩니다.컴퓨터에 타사 DVD 굽기 프로그램이 설치되어 있으며 해당 프로그램을 사용하여 설치 DVD를 만들려는 경우, www.microsoft.co.. 2021. 7. 21.
public key retrieval is not allowed (MYSQL 8.0) mysql 8.0 이후 접속 시 dbms 설정에 따라 이런 오류가 발생할 수 있다. 접속 시 public key retrieval is not allowed 오류가 발생한다면 jdbc url option에 allowPublicKeyRetrieval=true 을 추가 해 주면 된다. ​ mysql 접속 시 많이 사용하는 옵션 useUnicode=true characterEncoding=utf8 zeroDateTimeBehavior=convertToNull serverTimezone=UTC useSSL=false allowPublicKeyRetrieval=true ​ 2021. 5. 28.
YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Centos6 에서 yum 사용 시 All mirror URLs are not using ftp, http[s] or file 오류가 발생한다면 Error: All mirror URLs are not using ftp, http[s] or file. Invalid release/repo/arch combination/ CentOS6 보안 업데이트 지원이 2020.11.30 부터 종료되면서 나오는 문제이다. 아래 명령어 수행 후 yum update 하면 해결 된다. echo https://vault.centos.org/6.10/os/x86_64/ > /var/cache/yum/x86_64/6/base/mirrorlist.txt echo http://vault.centos.org/6.10/extras/x86.. 2021. 5. 26.
728x90
반응형
LIST