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

CentOS 에 Memcached 설치 하기

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

총 게시물 60건, 최근 1 건 안내 RSS
번호 이미지 제목 날짜 조회
60
 서버에 문제가 생겼을 경우 자동 재부팅 되게 하는 방법? 04-29 43
59  카카오톡 아이디를 사용하여 사이트(홈페이지) 회원가입 및 로그인 안될 때 조치방법 (ft.… 02-16 174
58  Lets’ Encrypt certbot-auto 사용한 인증서 갱신 02-03 174
57  크롬 브라우저 북마크 간격 줄이기 (23.12.22) 성공함 #크롬 #북마크 #간격줄이기 #대성공 12-22 310
56  강의촬영스튜디오, 비전스튜디오 인터넷강의 사이트 무료구축 이벤트 #동영상홈페이지 #… 07-10 487
55  (교육닷넷) 인강홈페이지 구축 이러닝솔루션 계약시, 전자칠판 강의촬영비 할인(-50%) #전자… 05-28 638
54  ITQ 자격증 시험 인터넷강의(동영상강의) 한글/엑셀/파워포인트 #ITQ한글 #ITQ엑셀 #ITQ파워포… 04-29 319
53  워드프레스 SMTP 플러그인 없이 이메일 보내기 #워드프레스 #이메일보내기 #SMTP #플러그인 02-23 508
52  저렴한 비용의 동영상강의 홈페이지 만들기 추천 #교육닷넷 #동영상강의홈페이지구축 #동… 09-25 1429
51  강의홈페이지 구축시 동시접속자 트래픽 비용은 발생하는가요? #교육닷넷 #이러닝솔루션 #… 07-22 1801
50  이러닝호스팅이 무엇인가요? 01-26 840
49  교육닷넷 이러닝 인강 호스팅 홈페이지 솔루션안내 및 신청방법안내 #교육닷넷 12-07 3405
48  그누보드 등 메일 테스트 에러가 나는 경우 조치 방법은? 08-31 878
47  네이버 밴드 SNS 공유 버튼 만들기 (글보내기 소스코드) 08-28 1054
46  네이버 블로그 SNS 공유 버튼 만들기 (글보내기 소스코드) 08-28 918
45  apache 에서 mod_rewrite 활성화 안될때 (워드프레스 등에서 도메인 하위 경로명 오류 날때) 08-25 837
44  AAI CentOS8 - APM AUTO INSTALL V.1.0 08-24 1718
43  리눅스 서버 사용자별 하드디스크 공간 할당 명령어 쿼터(Quota) 06-20 831
42  교육닷넷 동영상강의 홈페이지 이러닝솔루션 판매 (소스코드 제공되며 자체 커스터마이징… 06-06 1500
41  인터넷 노출 잘 되는 인강 이러닝 솔루션 홈페이지 <교육닷넷> 01-10 1007
40  인터넷 동영상강의 인강 홈페이지 [데모사이트] 오픈은 11월 초!! 10-30 1216
39  CentOS 에 Memcached 설치 하기 10-29 1221
38  CentOS7에 Php 삭제 후 Php5.6 설치 (호환성 관련 모듈 전체 설치방법) 및 (php56-imap 개별설치 방… 10-24 1196
37  Centos 7 - phpMyAdmin 설치 10-24 894
36  [centos] php-mcypt 설치 (각 php 모듈 yum 설치의 기본방법) 10-24 986
35  CentOS 7 방화벽 해제 10-23 721
34  [리눅스] mailx 설치 10-23 761
33  [리눅스] mailx 사용법/명령어 10-23 2016
32  Centos7 Sendmail 설치 및 설정 10-23 1119
31  방화벽 firewall-cmd 설치 실행 10-23 953
30  리눅스 centos7 - telent 원격지 접속을 해보자 10-23 802
29  CentOS7.x 에서 php7.x 에서 php5.6.x 버전으로 다운그레이드하는 방법 10-23 655
28  리눅스에서 Apache, PHP, MySQL 등 제거 방법 10-23 866
27  [CentOS 7] MariaDB 10.1.21 삭제 10-23 636
26  centos 7 mariadb 설치 10-22 958
25  동영상 인코딩용 PC 견적사양 10-02 751
24  PC견적서 10-01 913
23  네이버 애드포스트 리뷰 활용 동의 08-10 906
22  크롬 7.2버전 플래시 항상 허용하는 방법이 있네요..ㅋㅋ 03-21 1146
21  [Apache]exit signal Segmentation fault (11) 오류 03-19 1102
목록
 1  2  맨끝

 
스폰서링크
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.