728x90 Programming68 [CentOS] Maria DB 설치 / 마리아 DB 설치 공식사이트에 보면 설치하는 방법이 OS별, 버전별로 아주 잘 나와있는데요 한번 설치해보도록 하겠습니다. 1) mariadb 설치(저는 centos7로 설치하였습니다) cd /etc/yum.repos.d/ sudo vi /etc/yum.repos.d/MariaDB.repo vi 편집기로 열면 새 파일로 생성될텐데요 이때 아래내용을 집어넣으면 됩니다. # MariaDB 10.1 CentOS repository list - created 2018-01-11 06:41 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpg.. 2019. 4. 3. [Linux] 리눅스에서 CPU 정보 확인 리눅스에서 CPU 정보 및 코어 개수, 물리 CPU 수 확인하는 방법 자주 잊어버리는 정보라 다시 한번 상기할 겸 정리.... 1. CPU 정보 확인 cat /proc/cpuinfo 2. CPU 코어 전체 개수 grep -c processor /proc/cpuinfo 3. 물리 CPU 수 grep "physical id" /proc/cpuinfo | sort -u | wc -l 4. CPU 당 물리 코어 수 grep "cpu cores" /proc/cpuinfo | tail -l 2019. 4. 3. Putty 접속 에러[expected key exchange group packed from server] Putty 접속 시 Putty 치명적 에러 -expected key exchange group packet from server 에러가 뜬다면 Putty 설정에서 분류 - 접속 - SSH - 키 교환으로 이동 암호 알고리즘 선택 정책 순서를 바꿔준다. * 기존 순서 디피-헬만 그룹 교환 디피-헬만 그룹 14 디피-헬만 그룹 1 * 변경 순서 디피-헬만 그룹 14 디피-헬만 그룹 1 디피-헬만 그룹 교환 변경하면 접속이 잘 되는 걸 확인할 수 있다 2019. 4. 3. 자바 디렉토리 내 특정 파일 리스트 출력 / 디렉토리 전체 목록 가져오기 1. 디렉토리 파일 특정 패턴으로 된 목록만 가져오기 File path = new File("D:/workspace_example/Data/"); final String pattern = "2019" ; String fileList[] = path.list(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.startsWith(pattern); // pattern 형식으로 시작하는(여기서는 2019로 시작하는 이름) } }); // file list 출력 if(fileList.length > 0){ for(int i=0; i < fileList.length; i++){ System.out.pr.. 2019. 4. 3. 이전 1 ··· 12 13 14 15 16 17 다음 728x90