Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MemCache is installed under windows

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I. operating environment

Windows 7

MamCache.exe

Second, put the software in a fixed directory

I put it under disk C: C:\ mamcache.exe

III. Installation

"Ctrl + r" opens the run window, and "cmd / admin" enters the command line interface

Cd c:\

Mamcache-d install

IV. Start the service

The first startup method:

Enter "services.msc" in the "start"-> search box to open "Service"

Locate the mamcached Server service and start it

The second startup method:

Mamcache-d start

5. MamCache command parameters

MemCache installation: memcached.exe-d install

MemCache uninstall: memcached.exe-d uninstall

Service startup: mamcache-d start

Service stop: mamcache-d stop

Service restart: mamcache-d restart

Meaning of option parameter-p

Listen for TCP port number (default: 11211)

-U snooping UDP port number (default: 11211pc0 is off)-s

UNIX snooping socket path (disable network support)

-a

Access the UNIX socket mask in octal (default: 0700)

-l

Interface snooping (default: INADDR_ANY, all addresses)

May be specified as host:port. If you do not specify a port number, you specify the value and-p-u. You can specify multiple addresses separated by commas multiple times or use-l

-d

Run as a daemon

-r

Maximum number of core files

-u

Assumed identity (only when running as root user)

-m

Maximum memory usage items in megabytes (default: 64 MB)

-M

Return error memory exhaustion (instead of deleting entries)

-c maximum concurrent connection (default: 1024)-k setting locks all paged memory, for large cache application scenarios, use this option carefully-v

Detailed (print error / warning in event loop)

-vv

Very verbose (also print client commands / answers)

-vvv

Very detailed (also print internal state transitions)

-h

Print this help and exit

-I

Print memcached and libevent licen

-P

The save path of PID, using only the-d option

-f

Multiplier factor used to calculate the memory block size of cached data items (default: 1.25)

-n

Minimum space allocated to key+value+flags (default: 48)

-L

Try using large memory pages, if available.

Increasing the memory page size can reduce the number of TLB and improve performance.

In order to get a large page operating system, memcached allocates a large chunk of the total cache.

-D

Used for delimiters between Key prefix and ID in statistical reports. The default is the colon ":"

Use

< char >

Acts as a delimiter between the key prefix and the IDs. This is for per-prefix statistical reports. The default value is ":" (colon). If this option is specified, data collection is automatically turned on; if not, it may be sent a "data details" command to the server.

-t

Number of threads used (default: 4)

-R

The maximum number of requests / events that limit the number of process requests for a given connection to prevent hunger (default: 20)

-C

Disable the use of CAS

-b

Set queue limit backlog (default: 1024)

-B

Binding protocol. An ascii, binary or auto (default)

-I

Override the size of each board page. Resize the maximum project (default: 1mb, minimum: 1k, maximum: 128m)

-o

Specify comma-separated options, typically for extended or experimental options

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report