其实只要知道是32位或者64位就行,但是还是帖出来吧,这里用的是自己的虚拟机里的服务器,公司的就不贴出来了
[root@yuServer ~]# uname -a Linux yuServer.localdomain 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
yum -y install php-process
[root@yuServer ~]# php -m|grep posix posix
[root@yuServer workerman]# vi conf/conf.d/GameGateway.conf
[root@yuServer workerman]# vi conf/conf.d/GameWorker.conf
wget http://www.monkey.org/~provos/libevent-2.0.4-alpha.tar.gz tar xzvf libevent-2.0.4-alpha.tar.gz cd libevent-2.0.4-alpha ./configure --prefix=/usr make make install
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz tar xzvf memcached-1.4.5.tar.gz cd memcached-1.4.5 ./configure --with-libevent=/usr/ make make install
/sbin/ldconfig /usr/local/bin/memcached -d -m 200 -u root -l 127.0.0.1 -p 11211 -c 256 -P /var/memcache.pid
# ps -ef | grep memcached
checking for the location of zlib... configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located
yum install zlib-devel 或 rpm -ihv zlib-devel-1.2.3-3.x86_64.rpm
yum install libmemcached
wget -c http://pecl.php.net/get/memcache-3.0.8.tgz tar -zxvf memcache-3.0.8.tgz cd memcache-3.0.8 phpize ./configure - --enable-memcache --with-zlib-dir make && make install vim /usr/local/php/etc/php.ini extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/memcache.so session.save_handler = memcache session.save_path = "tcp://127.0.0.100:11211" service httpd restart
yum -y install libevent-devel
pecl install channel://pecl.php.net/libevent-0.1.0
vim /etc/php.ini #添加一行 extension=libevent.so