본문 바로가기

전체 글

(88)
[리눅스] Ubuntu Server - nohup nohup 설명 - 로그아웃 후에도 종료되지 않고 계속 수행될 수 있게 하는 명령어. nohup 주의사항 - nohup 으로 실행할 파일은 퍼미션이 755 이상 상태여야 한다.$sudo chmod 755 shell.sh nohup 실행방법 - '&'는 백그라운드로 실행하라는 뜻입니다.​$sudo nohup java hello.js &​$sudo nohup nodejs hello.js & nohup 종료방법$sudo ps -ef | grep 파일명$sudo kill -9 번호
[Node.js] Beginner Source Code REF : www.nodebeginner.org server.jsvar http = require("http"); var url = require("url"); function start(route, handle) { function onRequest(request, response) { var pathname = url.parse(request.url).pathname; console.log("Request for " + pathname + " received."); route(handle, pathname, response, request); } http.createServer(onRequest).listen(8888); console.log("Server has started."); } export..
[OpenCV] Segmentation And Feature Extraction Reference : Segmentation and feature extraction. Contours and blob detection.
DMX512 프로토콜 설명 1. SPACE for BREAK 2. MARK after BREAK (MAB) 3. Slot Time 4. START bit 5. LEAST SIGNIFICANT Data BIT (LSB) 6. MOST SIGNIFICANT Data BIT (MSB) 7. STOP Bit 8. STOP bit 9. MARK time between slots 10. MARK before BREAK (MBB) 11. BREAK to BREAK time 12. RESET Sequence (BREAK, MAB, START Code) 13. DMX512 Packet 14. START CODE (SLOT 0 Data) 15. SLOT 1 Data 16. SLOT n DATA (Max = 512)
[리눅스] tar, gzip, tar.gz 압 축 풀 기1. tar.gz 압축풀기 $gunzip filename.tar.gz // tar.gz에서 gz을 풀어냅니다.$tar xvf filename.tar // tar를 풀어냅니다. ( x: 압축풀기 , v: 압축푸는 상태를 본다, f: 파일이름 ) 2. tar.gz 한번에 풀기 $tar xvzf filename.tar.gz 압 축 하 기3. tar.gz 압축하기 $tar cvf filename.tar file1... // file1의 폴더나 파일을 filename.tar로 묶는다 (압축아님)$gzip filename.tar // filename.tar을 filename.tar.gz로 압축한다 (이땐 압축) 4. tar.gz 한번에 압축하기 $tar cvzf filename.tar.gz file1...
[리눅스] error: no acceptable C compiler found in $PATH 컴파일러를 찾지 못해서 생기는 문제이다. 우선 컴파일러가 설치되어있는지 확인해 보자. 설치가 안되있다면 설치를 해보자. # apt-get install gcc
[PHP] IP에 따른 국가별 정보를 알려주는 GeoIP 환경 구축 IP에 따른 국가별 정보를 알려주는 GeoIP 환경 구축1. GeoIP C 라이브러리 설치http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz # ./configure –prefix=/usr/local/GeoIP# make# make install /usr/local/GeoIP 위치에 해당 라이브러리들이 생성된다. 2. geoip php extension 모듈 설치http://pecl.php.net/package/geoip # wget http://pecl.php.net/get/geoip-1.0.8.tgzgetip 의 압축을 푼 후 해당 폴더로 이동 하여 phpize 를 실행하면 빌드를 하기위한 config 파일들이 생성된다. # phpize# ./conf..
[리눅스] NGINX - bind() 문제 발생시 해결법. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use) nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) nginx: [emerg] still could not bind() 해당 문제는 시스템 데몬의 불완전 동작으로 인하여 발생하는 로깅문 입니다. 위와 같은 로그를 뿜을경우 아래의 명령어를 실행해 줍니다. sudo fuser -k 80/tcp sudo fuser -k 443/tcp