$ tar -xvf memcached-1.5.12.tar.gz
$ cd memcached-1.5.12/
$ sudo dnf install libevent-devel -y
$ $ ./configure
$ make
$ sudo make install
在后台启动服务
$ /usr/local/bin/memcached &
查看服务端口是否正常启动起来
[xuzhen@localhost memcached-1.5.12]$ netstat -lnetp | grep 11211
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 1000 27457422 6082/memcached
tcp6 0 0 :::11211 ::? LISTEN 1000 27457423 6082/memcached