How to install multiple Memcached services under Windows

Updated on technology 2024-03-27
2 answers
  1. Anonymous users2024-02-07

    It is easier to install the memcached software, because you only need the ** mutated binary file and install it directly. Decompress the software package memecached and store it in a disk partition, for example, in the c: memcached directory, there is only one binary executable file after decompression.

    Because you need to specify some parameters for the naming, you can't double-click to install it. You need to open a terminal (i.e. cmd command line), go to the c: memcached directory, and then execute the command and provide "-d".

    install

    parameters: Install the memcached software.

    2.After the above command is successfully executed, the server side has been installed, and Memcached will be automatically started as a Windows service every time it is booted. You can view the newly installed Memcached software in the "Services" managed by your Windows computer.

    If you uninstall the memached software, you need to replace the "install" command with "uninstall" for the same command value. After the installation is complete, you need to start it before you can access it, and as with the installation, you can also use commands to start the server. But you need to use "-d

    start" parameter.

    3.After this command is executed, you can check whether port 11211 is enabled or whether any memcached processes exist to determine whether memcached is enabled. You can also check whether the service is started through the Windows system service.

    If you want to stop the memcached server, you only need to change the parameter to "-d".

    stop" can also be used to turn on and off the Memcached server through Windows system services.

  2. Anonymous users2024-02-06

    Many phpers don't know how to build a development and debugging environment for memcache under Windows, and recently they have been studying memcache and recording their own installation and building process.

    In fact, when I started to study memcache, I didn't know that there was still memcached for win32, which caused me to toss under cnetos for 1 day to get it, and today I suddenly found that there is no problem with memcache development and debugging under windows, so I wrote a document on memcache to share with you.

    Memcache installation under Windows:

    2.Enter 'c: memcached install' in the terminal (i.e. cmd command interface) to install.

    3.Then type: 'c:

    memcached start'. Note: In the future, Memcached will be automatically started every time you boot up as a service in Windows.

    This is where the server side is installed.

    5.Add the line 'Extension=PHP) to C: Winnt

    6.Restart Apache and check phpinfo and if there is memcache then the installation is successful!

    Basic settings for memcached:

    p The port on which it listened.

    l The IP address of the connection, which is recognized as the local machine.

    d start to start the memcached service.

    d restart to restart the memcached service.

    d stop|shutdown Shut down the running memcached service.

    d install to install the memcached service.

    d uninstall uninstall the memcached service.

    u runs as (only works when running as root).

    m Maximum memory usage, in MB. The default is 64MB

    m Returns an error when memory is exhausted, not deleting the item.

    c The maximum number of simultaneous connections, the default is 1024

    f block size growth factor, which is default.

    n Minimum allocated space, key+value+flags is 48 by default

    h Show Help.

    Memcache Environment Test:

    Run the php file below if there is output this is a test!, it means that the environment is set up successfully. Start appreciating the charm of memcache!

    phpmem = new memcache;

    mem->connect(”,11211);

    mem->set(’key’, this is a test!’,0,60);

    val = mem->get(’key’);

    echo $val;

Related questions
3 answers2024-03-27

This is just a piece of software, what's there!

5 answers2024-03-27

If it's not compatible, it won't work, it's only limited to vista

6 answers2024-03-27

1.**Packages, compiled and installed (.)configure,make,make install). I believe that the masters are installed like this. >>>More

8 answers2024-03-27

Use ghost to put two systems on two different disks.

4 answers2024-03-27

1 Unzip W2KSP4 and you should be able to get an ISO file, burn it to a CD, put it into the optical drive and install it directly. >>>More