Skip to content
mahler83 blog v2

Pharmacology, IoT, LLMs

mahler83 blog v2

Pharmacology, IoT, LLMs

Category: Ubuntu

Ubuntu server maintenance technote

Server cpu load 그래프 – tload

mahler83, 2013-06-052023-07-19

tload 명령어를 통해 5초 간격으로 cpu load를 확인할 수 있다. 새로운 서비스를 만든 뒤 이용자가 몰리면서 서버 부하가 걸리는 것을 모니터링하기 위해 실행시켜서 창 한 구석에 띄워놓으면 좋을 것 같다. 참고로 cpu load 3개 의 수치는 최근 1분, 5분, 15분간 평균 실행되거나 실행되려고 한 process 개수이다. 듀얼코어 서버의 경우 2…

nginx+php+python

mahler83, 2013-01-182023-07-19

apt-get install nginxapt-get install -y mysql-server mysql-clientapt-get install python-software-propertiesadd-apt-repository ppa:l-mierzwa/lucid-php5apt-get updateapt-get install -y php5-fpm php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json /etc/nginx/sites-available/default에서 다음을 주석해제 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location…

apt-get 업데이트 자동 최신 설정

mahler83, 2012-10-062023-07-19

crontab으로 apt-get update, apt-get upgrade 명령어를 돌릴 수 있는 방법이 있어 소개한다. 우선 크론탭 수정 화면으로 들어가 # crontab -e 다음과 같이 항목을 하나 추가한다. 0 3 * * * (apt-get update && apt-get -y upgrade) > /dev/null 이렇게 하면 매일 새벽 3시00분에 설치된 프로그램들을 모두 업데이트시키게 된다. 내용 중 -y는…

Ubuntu에 APM 및 bind9 설치 & 세팅 practical manual

mahler83, 2012-09-222013-11-07

매번 찾아보기 귀찮아서 봇트윗 서버를 세팅하면서 단계별로 기록해봤다. 도메인 및 가상서버 결제 일단 업데이트부터 하고 # apt-get update # apt-get upgarde APM 설치 (phpmyadmin도 설치) # apt-get install apache2 # apt-get install libapache2-mod-auth-mysql # apt-get install mysql-server mysql-client # apt-get install php5-common php5 libapache2-mod-php5 # apt-get install php5-mysql # apt-get…

특정 프로세스의 CPU 사용량 제한

mahler83, 2012-07-192013-11-07

cronjob으로 서버 백업을 돌릴 때 gzip 때문에 사이트 전체가 먹통이 되는 경우에 사용할 수 있는 방법입니다. cpulimit이라는 녀석을 사용하면 됩니다. http://cpulimit.sourceforge.net/ 일회성으로 사용하는 경우에는 # apt-get install cpulimit 이렇게 설치한 다음, # cpulimit -e gzip -l 30 이렇게 실행시키면 gzip이라는 프로세스를 CPU 사용량 30% 이하로 제한하게 됩니다. 여기서 30%는 top에서…

Ubuntu font 설치 폴더

mahler83, 2012-07-102013-11-07

/usr/share/fonts/ 폴더를 이용하면 된다. 필자는 custom/ 폴더를 생성해 c:\windows\fonts 폴더에 있는 파일 중 필요한 것을 복사해 넣었다. (맑은고딕 같은 글씨체가 그 폴더에 들어있다.) 또한 다음 명령어를 실행하면 MS의 주요 폰트를 자동으로 설치할 수 있다. # apt-get install msttcorefonts

run php script as daemon

mahler83, 2012-03-192013-11-07

http://stackoverflow.com/questions/2036654/run-php-script-as-daemon-process

apache to nginx htaccess converter

mahler83, 2012-03-022013-11-07

아파치와 엔진엑스 사이에 .htaccess 파일을 전환해주는 툴입니다. http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

iptables를 이용한 DDoS 방어법

mahler83, 2012-02-272013-11-07

http://goo.gl/321iB 설명을 잘 써놔서 특히나 마음에 드는 글.

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  1. mahler83 on 공부 잘하는 과학적 방법 – Weinstein 2018.12023-07-30

    접속자가 갑자기 늘어서 홈페이지가 오동작을 했습니다. 시간이 지나면 나아질 것 같습니다.

  2. SkyHigh on 공부 잘하는 과학적 방법 – Weinstein 2018.12023-07-30

    PC에선 잘 보이는데 모바일(아이폰)에선 한번 보이고 이후부턴 계속 나오질 않네요. 뭔가 문제가 있어보입니다. 한번 확인해봐주세요

  3. mahler83 on DadGPT 한자능력검정시험 교재 4급II (자체제작)2023-07-19

    참고로 이번 주가 어문회 시험 신청 기간입니다. 좋은 결과 있으시길!

  4. Jin on DadGPT 한자능력검정시험 교재 4급II (자체제작)2023-07-19

    감사합니다~ 어이 말고 재가 해야 겠어요~

  5. mahler83 on GPT에게 한의사 국시를 풀게 했더니 57% 정답률 – 2023.32023-06-14

    안녕하세요, 댓글이 스팸필터에 걸려있어 뒤늦게 확인했습니다. 트위터에서 멘션이나 DM주셔도 되는데 번거로운 방식을 선택하신 이유가 궁금하네요. 일단 메일 드리겠습니다.

  • 3D Printing
  • Academic writing
  • Adsense
  • AI
  • AWS
  • Creativity
  • DIY
  • favorites
  • Gaming
  • Generative AI
  • hands-on
  • Home Assistant
  • Ideas
  • IT
  • Lab Stuff
  • Large language model
  • Law
  • Machine Learning
  • Medical Education
  • Medicine
  • My Thoughts
  • Neuroscience
  • Parenting
  • Pedagogy
  • Pharmacology
  • PHP
  • PokemonGo
  • Precision medicine
  • Reasoning
  • Science
  • Social studies
  • Statistics and Math
  • Tips & Techs
  • Twitter API
  • Ubuntu
  • Uncategorized
  • Web development
  • Web News
©2023 mahler83 blog v2 | WordPress Theme by SuperbThemes