프로그래밍
-
elasticsearch - shard 개수와 replica 개수 정하기프로그래밍/검색 2016. 8. 5. 21:11
엘라스틱 서치 권장 사항 저장용 https://www.elastic.co/guide/en/elasticsearch/guide/current/scale.html https://www.elastic.co/guide/en/elasticsearch/guide/current/shard-scale.html https://www.elastic.co/guide/en/elasticsearch/guide/current/overallocation.html PUT /my_index { "settings": { "number_of_shards": 2, "number_of_replicas": 0 } } This time, when we add a second node, Elasticsearch will automatically ..
-
elasticsearch 2.3 - server ip 주소에 Connection refused 에러프로그래밍/검색 2016. 8. 3. 23:33
localhost:port에는 접속이 되면서 ip address:port로는 접속이 되지 않는 이슈 발생 # curl real_IP_Address:9200curl: (7) Failed to connect to real_IP_Address port 9200: Connection refused# curl localhost:9200{ "name" : "Wrath", "cluster_name" : "****", "version" : { "number" : "2.3.2", "build_hash" : "****", "build_timestamp" : "2016-04-21T16:03:47Z", "build_snapshot" : false, "lucene_version" : "5.5.0" }, "tagline" : "..
-
ubuntu 에서 유저 생성과 관리자 권한 주기프로그래밍/Linux 2016. 7. 2. 22:57
사용자를 생성시에는 useradd 명령어를 사용한다. 옵션 -m : 홈 디렉토리 생성-s : 쉘 환경 설정 useradd 계정명 -m -s /bin/bash 사용자 확인은 아래와 같다. cat /etc/passwd | grep username 새로 생성한 사용자에게 암호를 설정할 경우에는 paswd 명령어를 사용한다. echo 'Password' | passwd --stdin username 사용자에게 root 권한을 부여하기 위해서는 /etc/sudoers 파일에 아래 라인을 추가하면 된다. echo 'username ALL=(ALL:ALL) ALL' >> /etc/sudoers