WDCP installation memcached

Source: Internet
Author: User

memcached Installation

When we opened the Web Control Panel, the memcached was not installed, so we had to install the component manually.

The first step is to download the installation source code and execute it.

12 wget -c http://down.wdlinux.cn/in/memcached_ins.shsh memcached_ins.sh

But the installation of the time we found that the installation failed, I checked the reason is that the installation source code has a download project address to be modified under. We execute this command:

1 vimemcached_ins.sh

Change http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz to https://memcached.googlecode.com/files/. Memcached-1.4.15.tar.gz.

If the installation is unsuccessful, switch to the TMP directory to manually download the file, and then switch back to perform the installation.

The following is the successful installation interface.

The Web service needs to be restarted for normal use after the installation is successful.

Open the Web interface under the System management of the service restart interface, under the Web Restart button to execute a bit.

The following error occurred while installing memcached today (tar:libevent-1.4.14b-stable.tar.gz:cannot open:no such file or directory), (memcached)

The error is as follows:

  1. tar: libevent -1.4. 14b-stable.. Gz: cannot open : no such file  or directory
  2. tar: error  is not: exiting now
  3. memcached_ins.: line 35:  cd: libevent- 1.4. 14b-stable: No< Span class= "PLN" > such file or directory
  4. memcached_ins.: line 36:  ./configure:  no such file or  Directory
  5. Make: * * * no targets specified and no makefile found. Stop.

After viewing the. Sh script, find the following code

  1. CD /tmp
  2. wget -c https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
  3. wget -C http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
  4. wget -C http://pecl.php.net/get/memcache-2.2.7.tgz
  5. Tar XF libevent-1.4. 14b-stable. Tar. GZ
  6. CD libevent-1.4. 14b-stable
  7. ./Configure --prefix=/usr
  8. Make
  9. [ $? ! = 0 ] && exit
  10. Make install
  11. CD ..

Instantly understood, because the domestic network can not access Google so can not download libevent-1.4.14b-stable.tar.gz and memcached-1.4.15.tar.gz

Workaround:

Manually put

Https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz

Http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz

Download to this machine, and then upload it to the server/tmp directory.

Finally, run again:

    1. wget -C http://down.wdlinux.cn/in/memcached_ins.sh
    2. chmod 755 memcached_ins. SH
    3. ./memcached_ins. SH

The following page appears, indicating that the installation was successful

WDCP installation memcached

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.