centos软件安装

  1. rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
  2. vi /etc/yum.repos.d/utterramblings.repo
  3. [utterramblings]
  4. name=Jason's Utter Ramblings Repo
  5. baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
  6. enabled=1
  7. gpgcheck=1
  8. gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
  9.  
  10. yum install php php-mysql mysql-server php-gd php-mbstring php-pear php-pear-MDB2 php-pear-MDB2-Driver-mysql php-pecl-Fileinfo php-soap postgres ImageMagick ImageMagick-devel cachefilesd
  11.  
  12. chkconfig --level 2345 iptables off
  13. chkconfig --level 2345 ip6tables off
  14.  
  15. pecl install memcache
  16.  
  17. libevent以及memcache默认安装
  18.  
  19. vi /etc/ld.so.conf.d/memcache.conf
  20. /usr/local/lib
  21. ldconfig
  22.  
  23.  memcached -u apache -d -m 64 -l 127.0.0.1 -p 11211
  24.  
  25. 编辑/etc/php.d/memcache.ini
  26. 将Session设置用Memcache保存
  27.  
  28.  
  29. 编辑
  30. /etc/cachefilesd.conf
  31. 缓存目录位置
  32.  
  33. /etc/sysctl.conf
  34. net.ipv4.conf.default.arp_ignore = 1
  35. net.ipv4.conf.default.arp_announce = 2
  36. net.ipv4.conf.all.arp_ignore = 1
  37. net.ipv4.conf.all.arp_announce = 2
  38.  
  39.  
  40. chkconfig --level 2345 httpd on
  41. chkconfig --level 2345 cachefilesd on

一条评论 »

  1. catch said,

    十二月 10, 2008 at 12:29 上午

    还没有时间把这些的资料整理一下。

RSS feed for comments on this post · TrackBack URL

发表评论

You must be logged in to post a comment.