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

CentOS 에 Memcached 설치 하기

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

총 게시물 487건, 최근 0 건 안내 RSS
번호 이미지 제목 날짜 조회
247  PC견적서 10-01 942
246  제주도관광지도출력 (A4) 프린트 출력 『제주도in 여행 할인쿠폰』 09-26 1106
245  제주도 10월 특가 여행 상품 『제주도in 여행 할인쿠폰』 09-21 741
244  제주도 9월 가볼만한곳 10곳 (제주할인쿠폰_할인입장) 09-18 852
243  인강사이트제작 『비전스튜디오』 09-10 974
242  제주 해뜨는식당 고등어조림 (갈치국/오분자기죽/해물뚝배기) 09-09 2092
241  강원도 속초 가볼만한곳 『하르방투어』 09-05 3035
240  [제주관광공사] 9월에 가볼만한곳 제주관광지 10곳 여행지 추천 08-25 1312
239  공인중개사 강의 『인강랜드』 08-20 1156
238  8월 제주 가볼만한곳 인기베스트 관광지 (후불할인입장권제공) 08-16 1498
237  9월 제주도 가볼만한곳 10곳 여행지 『후불제할인쿠폰제공』 08-15 1717
236  제주 레일바이크 관광지 입장료 할인권 (후불제모바일쿠폰제공) 08-13 1706
235  제주도in 여행 할인쿠폰 홈페이지 08-11 1616
234  제주도 8월 가볼만한곳 2박3일 여행코스 (후불제할인권제공) 08-10 1330
233  제주도 남쪽 갈만한곳 『중문관광단지』 후불할인 입장권 제공 08-10 894
232  네이버 애드포스트 리뷰 활용 동의 08-10 933
231  제주 갈치조림 맛집 추천 08-09 993
230  제주항공 8월 제이데이(J-Day) 이벤트 시작 08-07 791
229  제주하르방투어 띠링쿠폰 (3초 할인쿠폰) 추가 신규오픈 08-06 689
228  오늘 8월 6일 화요일 부터 계리직 공무원시험 원서접수 하세요→[원서접수 바로가기] 08-06 883
227  8월 제주도 가볼만한곳 10곳 『카멜리아힐』 입장료 할인권 제공 08-02 1782
226  인천 사무실 청소대행업체 『청소프로』 (크린프로) 08-01 1779
225  8월 제주도 인기 베스트 관광지 안내 (입장료 할인권 제공) 07-30 1591
224  7월 제주도 가볼만한곳 『에코랜드』 입장료할인권 무료다운 07-13 1335
223  제주여행정보블로그 추천합니다. 07-11 1667
222  제주도 여행코스 가볼만한곳 추천 블로그 07-07 1325
221  제주숙박사이트 『제주도in 여행 제주닷컴』 ( jeju.jejudoin.co.kr ) 07-04 1329
220  인천 입주청소업체 『청소프로』 청소가격 06-19 2894
219  집청소업체 가격 『청소프로』 이사청소 거주청소 입주청소 청소업체 06-16 1221
218  6월 제주도 가볼만한곳 『야간』 관광지 06-15 1017
217  제주 폴리파크 폴리ATV (체험코스, 세미코스, A코스, B코스) 06-13 1520
216  6월 제주도 가볼만한곳 『잠수함 유람선 요트』 관광지 06-11 1005
215  6월 제주도 가볼만한곳 『신규관광상품 및 단독할인판매 관광상품』 관광지 안내 06-08 1174
214  제주도 여행하시면 "모바일할인쿠폰" 반드시 무료로 챙기세요~★ 05-28 2069
213  제주도 비올때 가볼만한곳 『실내관광지』 05-26 9654
212  5월 제주도 가볼만한곳 여행지 [ATV 체험 관광지] 05-23 1222
211  5월 제주도 가볼만한곳 여행지 추천 (5.13) 『제주하르방투어』 05-12 1089
210  5월 제주도 가볼만한곳 여행지 『아이들이 가볼만한곳』 04-30 1850
209  디지털마케팅전문가 2급문제 (샘플) 04-21 1045
208  한국청소협회 홈페이지 안내 04-19 2680
목록
처음  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.