Category224

MySQL 컴파일 옵션 ./configure --prefix=/usr/local/mysql \ --with-mysqld-user=mysql \ --with-innodb \ --without-debug \ --with-client-ldflags=-all-static \ --with-mysqld-ldflags=-all-static \ --localstatedir=/usr/local/mysql/data \ --with-extra-charsets=complex \ --with-charset=euc_kr \ --enable-assembler \ --enable-thread-safe-client \ --with-pthread \ --enable-local-infile \ --disable-shared \ --with-linuxthread.. 2008. 2. 26.
패스설정, make, gcc bash-3.00# find / -name make /usr/share/lib/make /usr/ccs/bin/make /usr/xpg4/bin/make bash-3.00# bash-3.00# $PATH bash: /usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sbin:/usr/bin: 해당 파일이나 디렉토리가 없음 bash-3.00# PATH=$PATH:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/sfw/bin:/usr/sbin:/usr/bin bash-3.00# export PATH bash-3.00# 2008. 2. 26.
유닉스 사용 중 파일 찾기 기능 프로그램을 하다보면 유닉스 상에서 작업을 하는 경우가 종종 있는데요.. 작업을 하면서 파일 찾기, 파일내 텍스트 찾기 기능이 필요한 경우가 많은데... 명령어를 몰라 하나하나 폴더나 파일을 뒤지는 수고를 덜 수 있는 명령어 입니다. * 파일 찾기(현재 이하 폴더에서 찾아라) find . -name "파일명" -print * 파일 내 문자열 찾기 find . -type f -print |xargs grep -i "찾을문자열" /dev/null 2008. 2. 26.
아파치 1.x 에서 2.x 버젼으로 올리기 . 기존 아파치 서비스 중지 2. 아파치 2.x 다운로드(http://apache.org) 및 적당한 곳에 압축풀기 3. ./configure \ --prefix=/usr/local/apache2 \ ← 중요!! --enable-module=so \ --enable-shared=max \ --enable-rule=SHARED_CORE --enable-module=info 4. make make install 5. php 재컴파일한다. ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ ← 중요!! --with-mysql=/usr/local/mysql \ --with-mssql=/usr/local/freetds \ --with-zlib-dir \ --wit.. 2008. 2. 26.
아파치 버젼확인 # pwd /usr/apache2/bin # ./httpd -v Server version: Apache/2.0.61 Server built: Nov 15 2007 10:36:22 2008. 2. 26.
솔라리스 포맷 열심히 시스템을 운영하며 이것 저것 설치하다보면 디스크 남은 용량이 얼마 남지 않았음을 깨닫게 된다. 해서 새로이 디스크를 장만하여 시스템에 추가하고 싶을 때... 이번에는 IDE 방식의 디스크를 사용하던 사용자가 시스템에 SCSI방식의 디스크를 추가하는 것을 예로 들어본다. 1. 하드디스크와 SCSI 컨트롤러 선택 : 이제껏 여러종류의 하드디스크 (삼성, IBM, 후지쓰, 퀀텀) 를 사용하여 왔으나 Solaris에서 문제가 발생한 경우는 없었다. 아래 설치방법은 ADAPTEC 2940 UW SCSI Card 및 후지쓰 UW2 (LVD방식) 하드디스크 (용량 8.37 GB) 를 사용한 예이다. 2. 시스템을 정지시키고 새로운 SCSI 콘트롤러 카드 및 디스크를 장착한다. 3. 시스템을 켠후 (필요하다면 .. 2008. 2. 26.
유닉스 $PATH 설정 사용자가 명령어를 실행시키면 쉘은 해당 명령어를 찾기위해서 PATH 라는 환경변수를 사용합니다. PATH 에는 명령어를 검색할 디렉토리들이 등록되어 있는데 앞에서부터 순서대로 검색하는데 PATH에 등록된 디렉토리들에서 해당 명령어를 찾지 못하면 그런 명령어 없다고 에러를 출력합니다. 그런데 사용자가 패키지나 소스를 컴파일해서 프로그램을 설치하게 되면 정해진 디렉토리로 설치가 됩니다. 대부분이 기본값으로 /usr/local 이하로 설치가 되며 실행파일은 /usr/local/bin 으로 설치되는것이 일반적인 경우입니다. 그런데 /usr/local/bin 디렉토리가 기본적으로 PATH 에 등록되어 있지가 않습니다. 그래서 프로그램을 분명히 설치를 했는데도 아래와 같이 실행하면 그런 명렁어 없다고 나오죠.. #.. 2008. 2. 25.
mysql설치시 에러... 저기요.. whereis명령으로 확인해서 있는 것 뿐이지.. PATH가 걸려 있다고는 볼수 없는데요.. 일단 솔라리스에서는 c컴파일러는 보통은 쓸수 없을테니.. gcc가 있는 곳을 찾아야 겠죠.. find / -name gcc 찾으신다면 그곳을 PATH걸어주세요.. echo $PATH 이렇게 하면 PATH 걸려 있는 상태를 볼수 있습니다.. 패키지를 설치하면 보통은 /usr/local/bin 이죠... 2008. 2. 25.
Trapezoidal Rule2 The trapezoidal rule is a method for finding an approximate value for a definite integral. Suppose we have the definite integral First the area under the curve is divided into strips, each of equal width . The area under the curve is divided into strips of thickness . The area of each strip is then approximated to be that of a trapezium. The sum of these trapezoidal areas gives an approximation .. 2008. 2. 25.
Trapezoidal Rule Trapezoidal Rule The 2-point Newton-Cotes formula where , is the separation between the points, and is a point satisfying . Picking to maximize gives an upper bound for the error in the trapezoidal approximation to the integral. SEE ALSO: Boole's Rule, Hardy's Rule, Newton-Cotes Formulas, Simpson's 3/8 Rule, Simpson's Rule, Weddle's Rule. [Pages Linking Here] REFERENCES: Abramowitz, M. and Stegu.. 2008. 2. 25.
default router(gateway) 설정하기 # # default router(gateway) 설정하기 # Solaris 2.x에서 default router를 설정하기 위해서는 "/etc/defaultrouter" 화일을 이용하는 방법(Static routing)과 "in.rdisc" daemon을 이용하는 방법(dynamic routing) 2가지가 있다. 1. /etc/defaultrouter 화일을 이용한 방법(Static Routing) /etc/defaultrouter 화일을 만들어 그 안에 default router의 IP address를 적어 놓는다. 이렇게 하면 시스템이 부팅하면서 /etc/defaultrouter 화일의 내용을 읽 어서 routing 을 잡는다. i /etc/defaultrouter 129.158.153.1 2. .. 2008. 2. 25.
Introducing BootPROM 모든 SUN_System의 BootPROM은 HardWare_Testing과 부팅을 위한 초기화를 제공한다. * BootPROM : BootPROM의 주기능은 하드웨어를 테스트하고 부트환경을 만들어 주는 것이다. 즉, 시스템이 부트되고 Kernel이 메모리에 올라기기전까지 시스템을 컨트롤 한다는 말이다. BootPROM 사용자에게 Command_Line Interface를 제공한다. # /usr/platform/`uname -n`/sbin/prtdiag -r // OpenBootPROM 정보를 볼수 있다. // I86PC 환경에서는 구현 되지 않는다. * NVRAM : EEPROM이 포함된 NVROM은 사용자 설정 변수를 저장하고 있 는 NVROM에는 중요한 정보 두가지가 있는데, hostID와 Ethe.. 2008. 2. 24.