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:
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:
- tar: libevent -1.4. 14b-stable.. Gz: cannot open : no such file or directory
- tar: error is not: exiting now
- memcached_ins.: line 35: cd: libevent- 1.4. 14b-stable: No< Span class= "PLN" > such file or directory
- memcached_ins.: line 36: ./configure: no such file or Directory
- Make: * * * no targets specified and no makefile found. Stop.
After viewing the. Sh script, find the following code
- CD /tmp
- wget -c https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
- wget -C http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
- wget -C http://pecl.php.net/get/memcache-2.2.7.tgz
- Tar XF libevent-1.4. 14b-stable. Tar. GZ
- CD libevent-1.4. 14b-stable
- ./Configure --prefix=/usr
- Make
- [ $? ! = 0 ] && exit
- Make install
- 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:
- wget -C http://down.wdlinux.cn/in/memcached_ins.sh
- chmod 755 memcached_ins. SH
- ./memcached_ins. SH
The following page appears, indicating that the installation was successful
WDCP installation memcached