Chinaunix首页 | 论坛 | 博客
  • 博客访问: 330529
  • 博文数量: 53
  • 博客积分: 1132
  • 博客等级: 少尉
  • 技术积分: 451
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-18 14:22
文章分类

全部博文(53)

文章存档

2014年(1)

2013年(11)

2012年(17)

2011年(16)

2010年(8)

分类: LINUX

2011-07-11 13:56:16

  1. yum install gcc make gzip bzip2-devel.x86_64 openssl-devel.x86_64 libxml2-devel.x86_64 libpng-devel.x86_64 libjpeg-devel.x86_64 freetype-devel.x86_64 e2fsprogs-libs.x86_64 freetype.x86_64 krb5-libs openssl.x86_64 libpng.x86_64 libgcc.x86_64 zlib-devel.x86_64 libstdc++.x86_64 libtool-ltdl-devel.x86_64 perl.x86_64 curl-devel.x86_64 autoconf gd-devel.x86_64 wget gcc-c++.x86_64
  2. mkdir soft
  3. cd soft
  4. wget http://nginx.org/download/nginx-0.8.54.tar.gz
  5. wget http://cn.php.net/distributions/php-5.3.5.tar.bz2
  6. wget http://ncu.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.tar.bz2
  7. wget http://pecl.php.net/get/imagick-3.0.1.tgz
  8. wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz
  9. wget ftp://mirror.aarnet.edu.au/pub/imagemagick/ImageMagick-6.6.9-6.tar.gz
  10. wget http://ncu.dl.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz
  11. wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
  12. wget http://ncu.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
  13. wget http://pecl.php.net/get/memcache-2.2.6.tgz
  14. wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
  15. wget http://ncu.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.bz2
  16. wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz
  17. wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz
  18. wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz

  19. tar zxvf libevent-2.0.10-stable.tar.gz
  20. cd libevent-2.0.10-stable
  21. ./configure
  22. make
  23. make install
  24. cd ..

  25. tar zxvf libiconv-1.13.1.tar.gz
  26. cd libiconv-1.13.1
  27. ./configure --enable-fast-install --with-libiconv-prefix=/usr/local --enable-shared
  28. make
  29. make install
  30. cd ..

  31. tar zxvf libmcrypt-2.5.8.tar.gz
  32. cd libmcrypt-2.5.8
  33. ./configure --enable-dynamic-loading --enable-fast-install --enable-shared
  34. make
  35. make install
  36. #echo "/usr/local/libmcrypt/lib" >> /etc/ld.so.conf
  37. #echo "/usr/local/libiconv/lib" >> /etc/ld.so.conf
  38. #ldconfig /usr/local/libmcrypt/lib
  39. ldconfig -v | grep mcrypt
  40. cd libltdl/
  41. ./configure --enable-ltdl-install
  42. make
  43. make install
  44. make clean
  45. cd ../..

  46. bunzip2 mhash-0.9.9.9.tar.bz2
  47. tar xvf mhash-0.9.9.9.tar
  48. cd mhash-0.9.9.9
  49. ./configure --enable-fast-install --enable-static --enable-shared
  50. make
  51. make install
  52. cd ..

  53. #echo "/usr/local/lib" >> /etc/ld.so.conf
  54. ldconfig /usr/local/lib

  55. tar zxvf mcrypt-2.6.8.tar.gz
  56. cd mcrypt-2.6.8
  57. ./configure --enable-fast-install --enable-static --enable-shared \
  58. --with-libmcrypt-prefix=/usr/local --with-libiconv-prefix \
  59. --with-libintl-prefix=/usr/local/ LD_LIBRARY_PATH=/usr/local/lib
  60. make
  61. make install
  62. cd ..

  63. tar zxvf pcre-8.12.tar.gz
  64. cd pcre-8.12
  65. ./configure --enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-utf8
  66. make
  67. make install
  68. cd ..
  69. ldconfig

  70. bunzip2 -k php-5.3.5.tar.bz2
  71. tar xvf php-5.3.5.tar
  72. cd php-5.3.5
  73. ./configure \
  74. --prefix=/usr/local/php --with-zlib --disable-rpath \
  75. --enable-safe-mode --enable-sysvsem --with-curl \
  76. --with-curlwrappers --enable-mbregex --enable-fpm \
  77. --enable-mbstring --enable-zip --enable-soap --with-pear \
  78. --disable-phar --disable-tokenizer --disable-ftp \
  79. --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \
  80. --with-config-file-path=/usr/local/php/etc --with-openssl \
  81. --with-bz2 --with-curl --with-libxml-dir --with-jpeg-dir \
  82. --with-png-dir --with-zlib-dir --with-freetype-dir \
  83. --with-mhash --with-iconv-dir --enable-gd-native-ttf \
  84. --enable-gd-jis-conv --with-gd --with-mcrypt=/usr/local \
  85. --enable-sockets --with-pcre-dir --enable-zend-multibyte \
  86. --with-zend-vm=GOTO --enable-bcmath --enable-pdo
  87. make ZEND_EXTRA_LIBS='-liconv'
  88. make install
  89. cd ..

  90. tar jxvf eaccelerator-0.9.6.1.tar.bz2
  91. cd eaccelerator-0.9.6.1
  92.  /usr/local/php/bin/phpize
  93. ./configure --enable-eaccelerator --with-php-config=/usr/local/php/bin/php-config
  94. make
  95. make install
  96. cd ..

  97. tar zxvf ImageMagick-6.6.9-6.tar.gz
  98. cd ImageMagick-6.6.9-6
  99. ./configure --with-modules --with-included-ltdl --with-perl --enable-ltdl-install --enable-fast-install --enable-static --enable-shared --enable-hdri --with-autotrace
  100. make
  101. make install
  102. cd ..

  103. tar zxvf imagick-3.0.1.tgz
  104. cd imagick-3.0.1
  105. /usr/local/php/bin/phpize
  106. ./configure --with-php-config=/usr/local/php/bin/php-config --with-imagick=/usr/local
  107. make
  108. make install
  109. cd ..

  110. tar zxvf memcache-2.2.6.tgz
  111. cd memcache-2.2.6
  112. /usr/local/php/bin/phpize
  113. ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
  114. make
  115. make install
  116. cd ..

  117. tar zxvf memcached-1.4.5.tar.gz
  118. cd memcached-1.4.5
  119. ./configure --with-libevent=/usr/local
  120. make
  121. make install
  122. cd ..

  123. groupadd -g 102 nginx
  124. useradd -c "Nginx user" -u 100 -g 102 -s /bin/false -d /dev/null nginx

  125. tar zxvf nginx-0.8.54.tar.gz
  126. cd nginx-0.8.54
  127. ./configure \
  128. --user=nginx --group=nginx --with-http_stub_status_module \
  129. --with-http_ssl_module --with-http_gzip_static_module --with-http_perl_module \
  130. --with-http_realip_module --with-http_sub_module --with-perl=/usr/bin/perl \
  131. --with-pcre --with-http_secure_link_module \
  132. --http-client-body-temp-path=/var/log/nginx/client_temp \
  133. --http-proxy-temp-path=/var/log/nginx/proxy_temp \
  134. --http-fastcgi-temp-path=/var/log/nginx/fastcgi_temp \
  135. --error-log-path=/var/log/nginx/nginx.log \
  136. --without-http_geo_module --without-http_autoindex_module \
  137. --with-file-aio --with-http_image_filter_module --without-http_browser_module \
  138. --without-mail_pop3_module --without-mail_imap_module \
  139. --without-mail_smtp_module --pid-path=/var/run/nginx.pid
  140. make
  141. make install
  142. cd ..

  143. tar zxvf tokyocabinet-1.4.47.tar.gz
  144. cd tokyocabinet-1.4.47
  145. ./configure
  146. make
  147. make install
  148. cd ..

  149. tar zxvf tokyotyrant-1.1.41.tar.gz
  150. cd tokyotyrant-1.1.41
  151. ./configure
  152. make
  153. make install
  154. cd ..

  155. /usr/local/bin/ttserver -host {localhostIP} -port 11211 -thnum 8 -dmn -pid /tmp/ttserver.pid -log /var/log/ttserver.log -le -ulog /data/ttserver/ -ulim 128m -sid 1 -rts /data/ttserver/ttserver.rts /data/ttserver/database.tch
阅读(1942) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~