我正在尝试在ubuntu 16.04上安装memcached。我需要手动安装它,因为我想修改文件。我也不想在本地安装它,因为我的更改可能不是其他人希望从其内存缓存中获取的内容。
我尝试按照github https://github.com/memcached/memcached/wiki/Install的指示进行操作(将前缀和libevent路径更改为位于我的主目录中)。
Libevent安装:
./ configure --prefix = / path / to / home / local_include
制作
进行安装
这似乎起作用,因为memcached配置没有抱怨。
memcached安装:
wget https://memcached.org/latest
tar -zxf memcached-1.5.13.tar.gz
./ configure --prefix = / path / to / home / local_include --with-libevent = / path / to / home / local_include
制作
进行测试
进行安装
这样做,我没有看到任何错误。这是我完成安装的结果:
make install-recursive
make[1]: Entering directory `/path/to/home/memcached-1.5.13'
Making install in doc
make[2]: Entering directory `/path/to/home/memcached-1.5.13/doc'
make install-am
make[3]: Entering directory `/path/to/home/memcached-1.5.13/doc'
make[4]: Entering directory `/path/to/home/memcached-1.5.13/doc'
make[4]: Nothing to be done for `install-exec-am'.
/usr/bin/mkdir -p '/path/to/home/local_includes/share/man/man1'
/usr/bin/install -c -m 644 memcached.1 '/path/to/home/local_includes/share/man/man1'
make[4]: Leaving directory `/path/to/home/memcached-1.5.13/doc'
make[3]: Leaving directory `/path/to/home/memcached-1.5.13/doc'
make[2]: Leaving directory `/path/to/home/memcached-1.5.13/doc'
make[2]: Entering directory `/path/to/home/memcached-1.5.13'
make[3]: Entering directory `/path/to/home/memcached-1.5.13'
/usr/bin/mkdir -p '/path/to/home/local_includes/bin'
/usr/bin/install -c memcached '/path/to/home/local_includes/bin'
/usr/bin/mkdir -p '/path/to/home/local_includes/include/memcached'
/usr/bin/install -c -m 644 protocol_binary.h '/path/to/home/local_includes/include/memcached'
make[3]: Leaving directory `/path/to/home/memcached-1.5.13'
make[2]: Leaving directory `/path/to/home/memcached-1.5.13'
make[1]: Leaving directory `/path/to/home/memcached-1.5.13'
当我运行ps ax | grep memcached,但是看不到正在安装的程序的踪影。
我还尝试了重新安装并将make install指令更改为:
进行安装--prefix = PREFIX
和
进行安装--prefix = / path / to / home / local_lib
尽管它们都没有被注册为可接受的参数(尽管INSTALL指令似乎表明它们是正确的)。
如果有人有任何想法,我将不胜感激。谢谢。
答案 0 :(得分:2)
您已构建二进制文件但尚未启动它。
尝试通过以下方式启动它:
stock_percent_change = stock_year_change / year_open
如果这不起作用,请运行以下命令:
sudo service memcached restart