This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
redis { | |
host => "127.0.0.1" | |
port => "6379" | |
data_type => "list" | |
key => "logstash" | |
codec => json | |
} | |
} | |
output { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to install own private git server on Ubuntu 12.04 LTS | |
1. 필요 패키지 설치 | |
root@ruo91:~# apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev \ | |
libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server \ | |
checkinstall libxml2-dev libxslt1-dev libcurl4-openssl-dev libicu-dev | |
2. Ruby 설치 | |
기존 패키지 방식으로 설치시 버전이 낮으므로 최신버전으로 함. | |
make install시 SSH 원격이 끊어질수 있으므로 tmux나 screen으로 세션을 유지하는걸 추천. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ruo91 ~]# nano /etc/named.conf | |
// | |
// named.conf | |
// | |
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS | |
// server as a caching only nameserver (as a localhost DNS resolver only). | |
// | |
// See /usr/share/doc/bind*/sample/ for example named configuration files. | |
// | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- BIND 설치 | |
[root@ruo91 ~]# yum install bind* -y | |
- named.conf 설정 | |
[root@ruo91 ~]# nano /etc/named.conf | |
// | |
// named.conf | |
// | |
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS | |
// server as a caching only nameserver (as a localhost DNS resolver only). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Problem | |
root@ruo91:~# cd /opt | |
root@ruo91:~# wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz | |
root@ruo91:~# tar xzvf vsftpd-3.0.2.tar.gz && cd vsftpd-3.0.2 | |
root@ruo91:~# make | |
sysdeputil.o: In function `vsf_sysdep_has_capabilities': | |
sysdeputil.c:(.text+0x1da): undefined reference to `cap_get_proc' | |
sysdeputil.c:(.text+0x1e5): undefined reference to `cap_free' | |
sysdeputil.o: In function `vsf_sysdep_adopt_capabilities': | |
sysdeputil.c:(.text+0x219): undefined reference to `cap_init' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ruo91:~# grep query.log /etc/bind/named.conf.options | |
channel query_logging { | |
file "/var/log/named/query.log" versions 3 size 10m; | |
query_logging; | |
root@ruo91:~# mkdir /var/log/named && chown -R bind:bind /var/log/named | |
root@ruo91:~# nano /etc/apparmor.d/usr.sbin.named | |
# vim:syntax=apparmor | |
# Last Modified: Fri Jun 1 16:43:22 2007 | |
#include <tunables/global> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache Nutch 2.x - Elasticsearch issue | |
--- src/java/org/apache/nutch/indexer/elastic/ElasticWriter.java.orig 2014-06-03 14:14:25.290594999 +0900 | |
+++ src/java/org/apache/nutch/indexer/elastic/ElasticWriter.java 2014-06-03 14:14:32.000000000 +0900 | |
@@ -101,7 +101,7 @@ | |
BulkResponse actionGet = execute.actionGet(); | |
if (actionGet.hasFailures()) { | |
for (BulkItemResponse item : actionGet) { | |
- if (item.failed()) { | |
+ if (item.isFailed()) { | |
throw new RuntimeException("First failure in bulk: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm ERR! error installing express@3.4.4 | |
npm ERR! error rolling back express@3.4.4 Error: UNKNOWN, unknown error '/usr/local/lib/node_modules/express' | |
npm ERR! Unsupported | |
npm ERR! Not compatible with your version of node/npm: connect@2.11.0 | |
npm ERR! Required: {"node":">= 0.8.0"} | |
npm ERR! Actual: {"npm":"1.1.4","node":"0.6.12"} | |
npm ERR! | |
npm ERR! System Linux 3.8.0-39-generic | |
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "express" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@hadoop:/opt/apache-nutch-2.2.1/runtime/deploy/bin# ./nutch inject urls | |
14/06/07 16:19:24 INFO crawl.InjectorJob: InjectorJob: starting at 2014-06-07 16:19:23 | |
14/06/07 16:19:24 INFO crawl.InjectorJob: InjectorJob: Injecting urlDir: urls | |
14/06/07 16:19:24 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable | |
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT | |
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:host.name=hadoop | |
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.version=1.8.0_05 | |
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation | |
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.home=/usr/local/jdk/jre | |
14/06/07 16:19:25 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/opt/hadoop-2.4.0/etc/hadoop:/opt/hadoop-2.4.0/share/hadoop/common/lib/jetty-ut |