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

CentOS 에 Memcached 설치 하기

에듀고시넷 2019-10-29 (화) 03:27 4년전 1244
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
이전글  다음글  목록 글쓰기

총 게시물 485건, 최근 0 건 안내 RSS
번호 이미지 제목 날짜 조회
325  제주 한치 에깅 루어낚시로 한마리 히트 했네요...^^ 06-03 1851
324  등낚골 여행 커뮤니티 사이트 신규오픈 시작합니다! 05-25 1507
323  제주형 재난긴급생활지원금 신청 안내 05-21 955
322  국가 긴급재난지원금 조회 및 신청 안내 05-17 835
321  평촌청소업체 [청소프로] 소개합니다 05-09 1174
320  [청소프로] 서울 원룸 입주청소 시공작업 04-11 2184
319  경기도 재난기본소득 신청 홈페이지 04-10 1070
318  ionCube 9 업그레이드 04-08 925
317  기업은행 소상공인 초저금리 코로나 사업자대출 서류제출 절차인내 04-07 3064
316  한자한문지도사 3급 인터넷강의 사이트 『에듀미랑』 04-06 931
315  제주 서귀포 산남 농어 포인트 알려드립니다 04-05 4409
314  4월 제주여행 베스트 관광지 30선 리스트 『제주할인권』 04-04 897
313  4월 2일 목요일 [김포-제주] 편도 항공권 초저가 12,000원 ~ 부터 시작 04-02 1045
312  한자시험 인터넷강의 사이트 『한공사』 03-29 1660
311  경기도 청소잘하는 업체 『청소프로』 03-27 997
310  3월 제주도 가볼만한곳 베스트 관광지 30선 그 세번째 리스트 [제주하르방투어] 03-22 841
309  청소프로에서 청소 쇼핑몰 링크제휴 받습니다 03-16 793
308  [청소프로] 인천 송도 이사청소 시공해드립니다 03-11 759
307  대한검정회준2급 인터넷강의 사이트 <에듀미랑> 03-11 1129
306  공인중개사 인강사이트 <에듀미랜드> 03-06 1002
305  공인중개사 시험준비 <에듀미랜드> 인터넷강의로 시작하세요 03-05 888
304  [한공사] 아동한자지도사 및 한자한문지도사3급 인강할인 이벤트(~3.8 까지) 03-04 972
303  [청소프로] 입주 청소 비용 안내해드립니다 03-02 908
302  입주청소전문 청소대행업체 <청소프로> 좋아요 03-01 1042
301  3월 제주여행준비 &lt;렌터카&gt; K5 및 LF소나타 LPG차량 즉시예약 렌트비 11,200원 완전… 02-29 1403
300  2월 제주도 가볼만한곳 인기 베스트 관광지 30선 (첫번째 리스트) 02-10 1048
299  집 사무실 내 바이러스 살균소독업체 <청소프로> 02-08 937
298  [청소프로] 안산 아파트 청소시공 해드립니다 02-06 1047
297  신종 코로나바이러스 실시간 상황판 홈페이지 02-03 2391
296  설연휴 기간 제주가볼만한곳 관광지 추천 <하르방투어> 01-26 903
295  2020년도 제주자유여행 "제주숙박예약" 이벤트 <제주도in 여행 제주닷컴> 01-16 1078
294  제주관광지 입장료 선불&후불&패키지 할인쿠폰의 할인율 비교<제주도in 여행 할인쿠폰> 01-15 1990
293  낚시용어정리 (A to Z) 01-15 841
292  2020 공인중개사 부동산중개사시험 일정 (31회) 01-12 6686
291  인터넷 노출 잘 되는 인강 이러닝 솔루션 홈페이지 <교육닷넷> 01-10 1027
290  2020 공인중개사 연회원종합반 프리패스(1년전체과정) 인터넷강의 입니다.. 01-10 1881
289  전국의 청소업체들은 한국청소협회에 홍보하세요 01-07 1082
288  에듀미랑 사이트 '네이버아이디'로 회원가입 및 로그인 가능합니다. 12-30 922
287  2020년도 새해 집안 대청소가 필요하시면 <청소프로> 전문가들에게 맡기세요! 12-29 871
286  1월 제주도 가볼만한곳 5곳 인기관광지 (후불할인입장권으로 할인결제 입장하세요) 12-24 2466
목록
처음  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.