정책보기 ▼
프리미엄배너등록 광고
총 게시물 484건, 최근 0 건 안내 RSS
이전글  다음글  목록 글쓰기
[IT]

CentOS 에 Memcached 설치 하기

에듀고시넷 2019-10-29 (화) 03:27 4년전 1226
https://www.edugosi.net/b/free_board-299


CenOS Version : 7
PHP Version : 5.6

1. yum clean up
yum clean all
2. yum 업데이트
yum -y update
3. memcahced 설치
yum -y install memcahced
만약 버젼에 맞게 설치하고 싶다면 다음 처럼 검색 명령어를 쳐서 알맞는 버젼을 직접 입력해서 설치한다.
yum serach memcahced
4. memcahced 설치 확인
memcached -h
memcached 1.4.15-p       TCP port number to listen on (default: 11211)
-U       UDP port number to listen on (default: 11211, 0 is off)
-s      UNIX socket path to listen on (disables network support)
-a      access mask for UNIX socket, in octal (default: 0700)
-l      interface to listen on (default: INADDR_ANY, all addresses)
               may be specified as host:port. If you don't specify
              a port number, the value you specified with -p or -U is              used. You may specify multiple addresses separated by comma
              or by using -l multiple times
-d            run as a daemon
-r            maximize core file limit
-u  assume identity of  (only when run as root)
-m       max memory to use for items in megabytes (default: 64 MB)
-M            return error on memory exhausted (rather than removing items)
-c       max simultaneous connections (default: 1024)
-k            lock down all paged memory.  Note that there is a
              limit on how much memory you may lock.  Trying to
              allocate more than that would fail, so be sure you
              set the limit correctly for the user you started
              the daemon with (not for -u  user;
              under sh this is done with 'ulimit -S -l NUM_KB').
-v            verbose (print errors/warnings while in event loop)
-vv           very verbose (also print client commands/reponses)
-vvv          extremely verbose (also print internal state transitions)
-h            print this help and exit
-i            print memcached and libevent license
-P      save PID in , only used with -d option
-f    chunk size growth factor (default: 1.25)
-n     minimum space allocated for key+value+flags (default: 48)
-L            Try to use large memory pages (if available). Increasing
              the memory page size could reduce the number of TLB misses
              and improve the performance. In order to get large pages
              from the OS, memcached will allocate the total item-cache
              in one large chunk.
-D      Use  as the delimiter between key prefixes and IDs.
              This is used for per-prefix stats reporting. The default is              ":" (colon). If this option is specified, stats collection
              is turned on automatically; if not, then it may be turned on
              by sending the "stats detail on" command to the server.
-t       number of threads to use (default: 4)
-R            Maximum number of requests per event, limits the number of
              requests process for a given connection to prevent
              starvation (default: 20)
-C            Disable use of CAS
-b       Set the backlog queue limit (default: 1024)
-B            Binding protocol - one of ascii, binary, or auto (default)
-I            Override the size of each slab page. Adjusts max item size              (default: 1mb, min: 1k, max: 128m)
-o            Comma separated list of extended or experimental options
              - (EXPERIMENTAL) maxconns_fast: immediately close new
                connections if over maxconns limit
              - hashpower: An integer multiplier for how large the hash
                table should be. Can be grown at runtime if not big enough.
                Set this based on "STAT hash_power_level" before a
                restart.
5. memcached 에 대한 설정 변경을 원한다면 vi 로 /etc/sysconfig/memcached 들어가서 수정한다.
vi /etc/sysconfig/memcached
PORT=11211USER=”memcached”MAXConN=1024CACHESIZE=64OPTIonS=””
6. memcached 재시작
systemctl restart memcached

그외 명령어
- memcached 시작
systemctl start memcached
- memcached 자동으로 시작하고 종료 되도록 하는 명령어
systemctl enable memcached
- memcached 상태 확인
systemctl status memcached
- memcached 정지
systemctl stop memcached

...[더 보기]


hi
이전글  다음글  목록 글쓰기

총 게시물 484건, 최근 0 건 안내 RSS
번호 이미지 제목 날짜 조회
364  제주 모바일 할인권을 가장 이해하기 쉽게 설명합니다 10-30 2480
363  다이와 스토이스트 84M 에깅 로드 및 시마노 스텔라 C3000SDH 에깅 릴 영입 10-28 2737
362  10월 제주여행 렌터카 및 숙박 온라인예약 이벤트 10-14 977
361  제주 무늬오징어 포인트 공개 10-13 1655
360  10월 제주도 가볼만한곳 관광지 30선 (선불/후불/패키지/자유이용권) 할인권 10-12 882
359  제주 무늬오징어 포인트 1곳 공개합니다 10-07 958
358  청소전문업체 청소프로 추천 해드립니다 10-05 785
357  [등낚골] 제주 무늬오징어 에깅 낚시 둘째날 조과:) 09-16 892
356  [등낚골] 제주 무늬오징어 에깅 낚시 첫째날 조과:) 09-16 737
355  9월 14일 ~ 9월 25일 2주간의 제주루어낚시 (무늬오징어 낮,밤 에깅 출조) 09-13 909
354  서울,인천,경기 청소전문업체 이0 3204 2426 청소프로입니다. 09-13 760
353  제주관광지 입장료할인권 모바일할인쿠폰 안내 (선불/후불/패키지/자유이용권) 09-10 2149
352  아동한자지도사 인터넷강의 전문사이트 한자지도사 09-08 903
351  제주 바다 실시간 cctv 사이트 하르방투어 09-07 999
350  한달에 몸무게 10kg 빼는 방법은 :) 09-04 2465
349  그누보드 등 메일 테스트 에러가 나는 경우 조치 방법은? 08-31 882
348  네이버 밴드 SNS 공유 버튼 만들기 (글보내기 소스코드) 08-28 1058
347  네이버 블로그 SNS 공유 버튼 만들기 (글보내기 소스코드) 08-28 925
346  [비전스튜디오] 서울 수도권 출장촬영(영상편집) 가능합니다:) 08-27 863
345  apache 에서 mod_rewrite 활성화 안될때 (워드프레스 등에서 도메인 하위 경로명 오류 날때) 08-25 841
344  AAI CentOS8 - APM AUTO INSTALL V.1.0 08-24 1721
343  한국청소협회는 회원사들의 꾸준한 인터넷홍보 마케팅 진행해드리고 있습니다. 08-14 1716
342  한자지도사 인강사이트 네이버 아이디로 회원가입 및 로그인 가능 :) 08-06 876
341  자율신경 경영학 총론 - 임상실험 사례 강의 (이학박사 김선복 교수) 08-05 861
340  어문회한자급수시험기출문제 사이트 추천 08-02 1185
339  입주청소비용 청소업체 『청소프로』 08-01 976
338  제주여행할인몰 『제주도in 여행 제주닷컴』 07-19 2006
337  [청소프로] 신축주택 입주청소 시공해드립니다 07-13 1199
336  제주 한치 낚시 조황 (7월 10일 금요일 용담해안도로 갯바위) 07-10 2723
335  제주 자유여행 준비 『항공 숙박 렌터카 에어카텔 관광지할인권』 06-22 986
334  리눅스 서버 사용자별 하드디스크 공간 할당 명령어 쿼터(Quota) 06-20 836
333  제주 무늬오징어 한치 갯바위 루어 낚시대 『등낚골』 06-19 3212
332  청소업체 창업 후 몇년간 운영중인 업체의 월평균 수입은(2인 1팀 기준) 06-15 4829
331  [청소프로] 사무실 원상복구청소 시공해드립니다 06-11 805
330  [청소프로] 스크린골프장 청소시공 청소작업 해드립니다 06-07 868
329  교육닷넷 동영상강의 홈페이지 이러닝솔루션 판매 (소스코드 제공되며 자체 커스터마이징… 06-06 1506
328  6월 제주 가볼만한곳 베스트 인기관광지 『할인입장권』 선불 후불 패키지 모바일쿠폰 06-06 1062
327  SEO박사 연구소는 자영업자들의 매출을 극대화 시켜주고 있습니다 06-05 2102
326  [청소프로] 서울 아파트 리모델링후청소 시공해드립니다 06-04 866
325  제주 한치 에깅 루어낚시로 한마리 히트 했네요...^^ 06-03 1830
목록
처음  1  2  3  4  5  6  7  8  9  10  다음  맨끝

 
스폰서링크
edugroup.co.kr edume.co.kr vstudio.co.kr jejudoin.co.kr enuribook.co.kr 이니시스에스크로확인증 클릭하시면 이니시스 결제시스템의 유효성을 확인하실 수 있습니다.
대한민국 교육포털 커뮤니티 사이트 에듀고시넷 방문을 환영합니다. 문의는 질문게시판을 이용해주세요.
문의전화 : 032-661-6202 / H.P : 010-2037-1497 Copyright ⓒ www.edugosi.net. All rights reserved. Since 2014.