-1

このマニュアルで memcache をインストールしていました 。しかし、私は後にエラーが発生しました

echo "stats settings" | nc localhost 11211

エラー

localhost [127.0.0.1] 11211 (?) : Connection refused

私はいくつかの答えを見つけましたが、次のように機能しません

/etc/init.d/memcache start | restart
4

1 に答える 1

0

memcache をインストールします。

apt-get install memcached

構成を作成します。

vim /etc/memcached.conf

[...]
# Specify which IP address to listen on. The default is to listen on all IP addresses
# This parameter is one of the only security measures that memcached has, so make sure
# it's listening on a firewalled interface.
# -l 12.34.56.78
-l 127.0.0.1
[...]

サービスを再起動します:

/etc/init.d/memcache restart

ステータスとリッスン ポートを確認します。

netstat -tap | grep memcached

お役に立てば幸いです。

于 2013-03-17T19:39:25.250 に答える