728x90 개발298 스프링 mongodb 설정 1. 매이븐 설정 스프링 4.x org.springframework.data spring-data-mongodb-parent 2.0.8.RELEASE pom org.mongodb mongo-java-driver 3.8.0 2018. 7. 7. 우분투 Mongod 설치 방법 우분투1. 설치 확인#mongod --version2. 설치sudo apt-get install mongodb-server mongodb-clients3. 실행ubuntu@ibks-ifp-dev-com ~$ mongoMongoDB shell version: 2.6.10connecting to: testWelcome to the MongoDB shell.For interactive help, type "help".For more comprehensive documentation, see http://docs.mongodb.org/Questions? Try the support group http://groups.google.com/group/mongodb-user> 4. db 확인> show dbsadmi.. 2018. 7. 7. java.security.SecureRandom java.security.SecureRandom SecureRandom random = SecureRandom.getInstance("SHA1PRNG");System.out.println(random.generateSeed(16)); 속도가 느린 단점이 있기 대문에 java -Djava.security.egd=file:///dev/urandom Test옵셕을 주어서 해결을 한다. Tomcat에서 이용하는 거라면 아래 옵션을 준다. JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom" 또는 - rngd 데몬 프로그램은 /dev/random 디바이스에 신호를 지속적으로 전송해서 블로킹 문제를 해소한다. 2017. 12. 15. vim 라인 들여쓰기 설정 vi ~/.vimrc set ts=8set sw=4set sts=4set smartindentset cindent 2016. 9. 26. 이전 1 ··· 67 68 69 70 71 72 73 ··· 75 다음 728x90