memcached download and installation configuration on the Windows environment

Source: Internet
Author: User

Version 1.Windows: http://download.csdn.net/detail/wyc_cs/7575375 compressed files to e:/memcached/, where the files are: "Memcached.exe" and " PthreadGC2.dll ", some versions only" Memcached.exe ". 2. Under CMD, enter the "e:/memcached/memcached.exe-d Install" installation. Note: Many beginners can not install this step, after executing the above command, the console will prompt the following error: "Failed to install service or service already installed". The reason is that the memcached service cannot be installed or the service already exists, but most of it is first installed, so there is no memcached service. The reason for this is that the CMD console is not opened with administrator privileges, because installing Windows Services requires Administrator privileges to install. The concrete solution is: Enter CMD in the beginning, find Cmd.exe program, right click on the above, select "Run as Administrator". Then the installation can be installed as a normal service. View computer-management-whether the service--memcached exists. If it exists, the installation is successful. In addition, the following console operation must be opened as an administrator 3. Re-enter: "E:/memcached/memcached.exe-d start" starts. Note: memcached will start automatically every time a service is turned on for Windows. This way the server side is already installed. 4. If-M is specified, the buffer size is the number after-m, the unit is M., for example: E:/memcached/memcached.exe–l 127.0.0.1–m 32-d start the following settings memcached use memory problems help: Follow the above installation After the step is installed, using memcached–m 200来 to adjust the maximum memory consumption will find no effect, always default 64MB of memory, search the Internet, because the registry does not write information, can be modified. 1, memcached–d shutdown first shut down the memcached service. 2. Enter the registry and locate Hkey_local_machine/system/currentcontrolset/services/memcached Server, where there is a ImagePath entry with a value of "E:/memcached/memcached.exe"-D runservice, followed by the-L 127.0.0.1-M 3000-c 2048. 3, memcached–d start memcached service, this will memcached the maximum memory modification in order to 3000MB. If you are downloading a binary version, you can run it directly, and you can add parameters to set it up. Common settings:-P Listening Port-l <ip_addr> connected IP address, default is native-D start memcached service-D Restart Restart memcached service-D Stop|shutdown close running m Emcached Service-D install memcached service-D Uninstall uninstall memcached service-U Run as identity (only valid when running as root)-m maximum memory usage, in megabytes. The default 64mb-m memory is exhausted when the error is returned, instead of deleting the item-C maximum number of simultaneous connections, the default is the 1024-F block size growth factor, default is 1.25-n minimum allocation space, key+value+flags default is 48-h display Help

memcached Download and installation configuration on a Windows environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.