Linux 21

[nginx] https 적용하기

키 파일 생성openssl req -new -newkey rsa:2048 -nodes -keyout foobar.key -out foobar.csr 인증서 생성openssl x509 -req -days 365 -in foobar.csr -signkey foobar.key -out foobar.crt 키 파일과 인증서 복사chmod 666 foobar.*cp foobar.key foobar.crt /var/www nginx 설정vi /etc/nginx/sites-enabled/myconf──────────────────────server { listen 8443; ssl on; ssl_certificate /var/www/foobar.crt; ssl_certificate_key /var/www/foobar..

Linux 2018.06.22

[nginx] digest 인증 적용하기

ubuntu 16.04 기준으로 작성 nginx 소스코드 내려받기 sudo apt-get install build-essential sudo apt-get build-dep nginx sudo apt-get source nginx digest 모듈 내려받고 압축풀기 wget https://github.com/samizdatco/nginx-http-auth-digest/tarball/master -O - | tar zxvf - cp -r samizdatco-nginx-http-auth-digest-* nginx-*/debian/modules/nginx-http-auth-digest 빌드 옵션에 digest 모듈 추가 cd nginx-* vim debian/rules full_configure_flags :..

Linux 2018.06.22

crontab 사용법

출처 : https://mytory.net/archives/601 # crontab -e───────0 5 * * * /home/mytory/svn_export.sh 0 5 * * * : 매일 5시 0분에 실행.5 * * * * : 매시 5분이 될 때마다 실행. 즉, 한 시간 간격으로 실행.* * * * * : 1분에 한 번씩 실행.0 5 1 * * : 매달 1일 새벽 5시에 실행.*/5 * * * * : 5분에 한 번씩0 */5 * * * : 5시간에 한 번씩0 5,11 * * * : 새벽 5시와 밤 11시.0 5,11 * * 0,3 : 매주 일요일과 수요일 새벽 5시와 밤 11시.

Linux 2017.08.31

rabbitmq-c arm cross complie

1. 요구환경autoconf v2.59+automake v1.9+libtool v2.2+pkg-config 2. 다운로드wget https://github.com/alanxz/rabbitmq-c/archive/v0.7.0.tar.gztar -zxvf v0.7.0.tar.gzcd rabbitmq-c 3. 라이브러리 설치할 디렉토리 생성mkdir ./build 4. configure 생성autoreconf -i 5. Makefile 생성: 크로스컴파일된 openssl 라이브러리 경로 바라보도록 설정./configure CC=arm-hisiv400-linux-gnueabi-gcc \ AR=arm-hisiv400-linux-gnueabi-ar \ RANLIB=arm-hisiv400-linux-gnueabi-ra..

Linux 2017.01.10