Please assign a menu to the primary menu location under menu

Linux

Linux – How to use Logical Volume Management

Logical Volume Management LVM은 물리적 하드디스크를 논리 볼륨으로 관리 할수 있도록 해주는 녀석입니다. 기존의 데이터를 보존하면서 더 큰 용량을 확보 하고자 할 경우에 사용 합니다. 아래 예제에서는 용량 2TB의 하드디스크 2개를 가지고 LVM을 만들어 보았습니다. 1. Linux LVM 파티션 생성 fdisk로 새로 추가한 하드디스크 디바이스명 /dev/sdb, /dev/sdc에 LVM 파티션을 생성 합니다. (fdisk -l 명령어로 미리 디바이스명을 찾아 주시길 바랍니다.) # fdisk /dev/sdc 첫번째 파티션을 생성 하기 위해 n을 누르고 첫번째 파티션에 모든 용량을 할당 하도록 합니다. Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-267349, default 1): Using

Nutch-2.2.1 – ElasticWriter.java:104: error: cannot find sym

Nutch의 크롤링 결과값을 최신의 ElasticSearch를 이용해 사용하고자 할경우에 ivy/ivy.xml 파일에 아래 버전을 0.90.10를 변경하고 <dependency org=”org.elasticsearch” name=”elasticsearch” rev=”0.19.4″ conf=”*->default”/> ant로 빌드시 아래와 같은 에러가 나는 경우가 있습니다. resolve-default: :: Ivy 2.2.0 – 20100923230623 :: http://ant.apache.org/ivy/ :: :: loading settings :: file = /opt/apache-nutch-2.2.1/ivy/ivysettings.xml Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found. copy-libs: compile-core: Compiling 180 source files to /opt/apache-nutch-2.2.1/build/classes warning: bootstrap class path not set in conjunction with -source 1.6 /opt/apache-nutch-2.2.1/src/java/org/apache/nutch/indexer/elastic/ElasticWriter.java:104: error: cannot find symbol if (item.failed()) { ^ symbol: method failed() location: variable item of type BulkItemResponse 1 error 1 warning BUILD FAILED /opt/apache-nutch-2.2.1/build.xml:101: Compile

Apache2 – undefined symbol: unixd_config

Apache2에서 PHP 4.x 버전과 연동시 undefined symbol: unixd_config 에러가 나는 경우가 있습니다. root@ruo91:~# /usr/local/apache2/bin/apachectl httpd: Syntax error on line 132 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: undefined symbol: unixd_config 이 문제는 Apache가 버전업을 하면서 unixd_config 심볼을 ap_unixd_config 로 변경하였기 때문에 문제가 발생 된겁니다. 해당 php 소스 디렉토리에 sapi/apache2handler/php_functions.c 을 열어 unixd_config 를 ap_unixd_config로 수정 하고, php를 재컴파일 하여 연동 하면 됩니다. – php-4.4.9 버전 기준 /* static char *php_apache_get_version() { return (char *) ap_get_server_version(); } */ static char *php_apache_get_version() { #if MODULE_MAGIC_NUMBER_MAJOR >= 20060905 return (char *) ap_get_server_banner(); #else return (char *) ap_get_server_version(); #endif } PHP_MINFO_FUNCTION(apache) { char

How to install Redmine On CentOS 6.4

Redmine? Redmine은 오픈소스 프로그램으로 웹 기반의 프로젝트 관리와 버그 추적 기능을 제공하는 도구입니다. 프로젝트 관리에 도움이 되도록 달력과 간트 차트, 일정관리 기능, 통합된 프로젝트 관리 기능, 이슈추적, 여러가지 형상 관리 기능을 제공합니다. Ruby on Rails에 기반하여 작성 되었으며 Multi Platform을 지원하고 여러가지 종류의 데이터베이스를 지원 합니다. 본 글은 CentOS 6.4(x86_64)에서 테스트 되었으며 MySQL대신 MariaDB와 Nginx를 사용하여 Redmine을 설치하는 방법에 대해 기록하였습니다. 설치순서 : 필요 패키지 -> Nginx -> MariaDB -> Redmine 1. CentOS 설정 Selinux 비활성화 # sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/sysconfig/selinux iptables HTTP 80번 포트 허용 # nano /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this

How to install opsview on CentOS

opsview를 CentOS에서 설치 하는 방법입니다. ( tested CentOS 6.4 x86_64 ) opsview는 nagios를 기반으로 한 모니터링 관리툴입니다. core 버전의 경우 무료로 사용할수 있으며 모니터링 하고자 하는 시스템에 agent를 따로 설치해서 설정 해두면 관리가 수월해집니다. 1. SELINUX 비활성화 # sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/sysconfig/selinux 2. opsview 저장소 등록 RPMForge 저장소를 등록 합니다. # rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm opsview.repo라는 이름으로 저장소 파일을 하나 생성합니다. # nano /etc/yum.repos.d/opsview.repo name = Opsview baseurl = http://downloads.opsview.com/opsview-core/latest/yum/centos/6/$basearch enabled = 1 protect = 0 gpgcheck = 0 3. opsview 설치 # yum update -y ; yum install -y opsview perl-DBIx-Class 4. MySQL 설정 # mysqladmin -u root password ‘123456789’

1 2 3 4 18