본문 바로가기

All

(70)
Apache HttpClient로 SSL 쓸 때 validation 안하기 http://www.virtualzone.de/2011-02-27/how-to-use-apache-httpclient-with-httpsssl-on-android/
대용량 서버 ulimit 체크 ubuntu에서 최대 open file 갯수는 기본으로 1024 네트워크 요청이 많은 서버는 이걸 늘려줘야 함 조회는 ulimit -a늘리는건... 검색.. -_- 여튼 잊어버리지 않고 늘려줘야 함.
우분투 서버 파워 버튼 누르면 시스템 정상 종료 모니터 없이 파워와 랜선만 연결해서 리눅스 서버 사용하면서 파워 버튼을 누르면 시스템이 정상 종료하도록 하고 싶었다. sudo apt-get install acpid
우분투 보안 업데이트 딴건 냅두고 보안 업데이트만 하고 싶을 때 sudo apt-get updatesudo apt-get install unattended-upgrade sudo unattended-upgrade 참고 링크http://linuxaria.com/article/enable-automatic-security-update-in-debianubuntu?lang=en http://askubuntu.com/questions/194/how-can-i-install-just-security-updates-from-the-command-line
시스템 모니터링 툴 nmon 콘솔에서 나름 비쥬얼하게 시스템 상태를 파악할 수 있다. CPU, Network, Memory, IO 등 한눈에 파악하게 편함 sudo apt-get install nmon
Nginx에서 x-forwarded-for 사용하려면 그냥 환경설정만 하면 되는건 아니고./configure할 때 다음 모듈 사용하도록 추가해 줘야 함 http://wiki.nginx.org/HttpRealIpModule
time 명령어의 real, user, sys의 의미 http://stackoverflow.com/questions/556405/what-do-real-user-and-sys-mean-in-the-output-of-time1
memcached overhead 이상하게 내가 set한 값보다 훨씬 큰 chunk에 할당되는게 이상했다.데이터 사이즈를 다양하게 해서 연립방정식-_-을 풀어본 결과, 모든 item에 대해서 65~66byte 정도가 추가로 붙고 있었다. memcached 문서들을 봐도 100byte data는 132byte chunk처럼 비슷하게 맞아 떨어지는 곳에 들어간다고 써있어서 의아했으나의문을 해결해 줄 문답 스레드 하나 발견 http://stackoverflow.com/questions/8129068/memcached-item-overhead